I’m using aspose pdf in our .NET app to convert pdf to pdf/x. But it converts to pdf/x4 which results in abnormal behavior (converts lines, borders and fonts from black to green color). I ran a preflight check on Adobe and it fails to conform to the proper rules. In Adobe, I changed to pdf/x3 and everything seems to work. I’m assuming this could be a bug or some setting that I’m not aware of. Any suggestions would be greatly appreciated.
Can you please share the below information with us?
- input and output PDF documents
- sample code snippet for conversion
- screenshots of compliance results in Adobe Reader
Please also make sure to test the scenario with 22.2 version before sharing the requested information.
Thank you for replying. As suggested I updated version to 22.2 and it worked. Thanks again.
It is good to know that your issue has been resolved. Please feel free to create a new post in case you need further assistance.
Hello,
This issue with the font color came back. I updated Aspose.PDF to the latest 22.7.0. But it didn’t resolve the issue. Here’s code snippet.
Document pdfDocument = new Document(tempReportPath);
pdfDocument.Convert(new MemoryStream(), PdfFormat.PDF_X_3, ConvertErrorAction.Delete);
pdfDocument.Save(reportPath);
PDFX Conversion Issue.pdf (982.8 KB)
Can you please share the screenshot of the issue as well that you have noticed in your environment? Also, please confirm if the file shared by you is an input or output? We will further proceed to assist you accordingly.
The pdf file shared is an output file, that would be the screenshot of the issue (on 1st page). Attaching excel input file as well.350506_350371_350520_9999.7z (203.9 KB)
Here’s a pdf generated from SSRS right before the conversion (technically this would be the input file).AssayReportMode.pdf (482.6 KB)
We have checked both input and output PDF files but we could not notice the issue of lines/borders and fonts turning into green color. Could you please share how you are viewing the PDF so that we can also try to observe the color change issue. Furthermore, please also check the attached PDF output. It was generated using 22.7 version of the API. Please check it using Adobe Preflight and share the screenshot of results with us.AssayReportMode_out.pdf (1.1 MB)
I’m using 22.7 version as well. Report is created through SSRS and PDF/x conversion is done through app built on C#. While running preflight, none of the PDFs we are generating with Aspose are failing the rules. But somehow something is converting the color. Version 22.5 was generating green font but 22.7 is printing navy blue font. Out of 2 pages on the report, only one of the page is affected. For the output pdf file you’ve attached, which file and code are you using to convert the PDF?
Sharing screenshots of the font colors on 1st and 2nd page.1st page Navy Blue font color.JPG (61.8 KB)
2nd page black font color.JPG (87.6 KB)
We are using the PDF document as input that you shared in the above post.
Furthermore, the output file that you shared in your previous post is generated using 22.5 version of the API as we noticed in the document properties.
Please check the below code snippet that we used for the conversion using 22.7 version of the API:
Document doc = new Document(dataDir + "AssayReportMode.pdf");
doc.Convert(new MemoryStream(), PdfFormat.PDF_X_3, ConvertErrorAction.Delete);
doc.Save(dataDir + "AssayReportMode_out.pdf");
The font in the output file was slightly changed but as you can see in the output (shared by us), the text color was not changed.
I’m attaching couple more files, one is after Aspose conversion to pdf/x and the other is without the conversion. You can see after Aspose conversion, we’re seeing change in font color on the 1st page of the report but the 2nd page is fine. This issue is not present when report is created through app/SSRS and saved as pdf. I have no idea what’s causing this change in font color.AssayReport_9999_Aspose.pdf (1.1 MB)
AssayReport_9999_temp_SSRS.pdf (494.1 KB)
It looks strange because we again tested the files that you just shared and could not notice the color change issue in the generated output. AssayReport_9999_temp_SSRS_out.pdf (1.1 MB)
Nevertheless, we have logged an investigation ticket as PDFNET-52234 in our issue tracking system to analyse this case. We will try to determine the issue cause and let you know once the issue is resolved. Please be patient and spare us some time.
We apologize for the inconvenience.
Is there any progress on this?
We are afraid that the ticket could not get resolved due to other issue in the queue. However, we have recorded your concerns and will surely inform you as soon as we make some progress towards ticket resolution. Please be patient and spare us some time.
We are sorry for the inconvenience.