Doc.convert. not working on the server

doc.convert(convertErrorPath , PdfFormat.PDF_A_1B, ConvertErrorAction.None) is not embedding font information when we are running the program on Linux server. It works perfectly fine on eclipse running on windows machine. Java version is same on both the machines.

After discussing with the technical support chat, I am also attaching the source code and the sample files that we are using.

It seems that Aspose when run on local windows, is puling the font information from the windows path while the same is not present on the Unix server that I am using. I have attached two sample PDFs for testing. "in.pdf" throws an outright exception and does not even generate an ISO compliant file. "Merged.PDF" generates an ISO compliant file but it is not embedding any font information.

I have also attached logs from server and local. The one from local has <Problem Convertable="True" whereas the one on the server has <Problem Convertable="Flase" for the 12 fonts that are missing in the final output.

Hi Steve,


Thanks for contacting support.

I have tested the scenario and have managed to notice following issues.

  • in.pdf - When trying to convert this document to PDF/A_1b format, an exception is being generated. I have logged it as PDFNEWJAVA-35674 in our issue tracking system.
  • Merged.pdf - When trying to convert this document to PDF/A_1b format, the contents of document get garbled and also the file is failing PDF/A compliance. I have logged it as PDFNEWJAVA-35675 in our issue tracking system.

I have managed to reproduce these issues on Windows platform but while resolving these issues, the product team will consider investigating these problems on Linux environment. We are sorry for this inconvenience.

Thanks for looking into this. While trying to resolve this, I focused on the font information that I saw was missing on the Unix server. I got the MS true type fonts from the windows machine and copied them over to the following location on the server - /usr/share/fonts/[folder name]… After I logged out and logged back on the server, and ran the program. the font issue was resolved.


However, there are other issue that are there in the log.xml which are not font related and not pressing either at this time being. Can you please see why they exist and if they can be resolved.

Thanks,
-Shiv

Hi Steve,


Thanks for your patience.

We are glad to hear that font related issue is resolved. However as shared earlier, I encountered exception while converting in.pdf and when converting merged.pdf to PDF/A, the contents become garbled and resultant file looses PDF/A compliance. Can you please share some details regarding other issues you are facing.

We are sorry for your inconvenience.

The issues you have found earlier (filed as PDFJAVA-35675) have been fixed in Aspose.Pdf for Java 17.4.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

@SOFTWARELICENSEMANAG

Thanks for your patience.

We are pleased to inform you that earlier logged issue PDFJAVA-35674 has been resolved in Aspose.PDF for Java 18.1. Please try with latest version of the API and in case of any issue, please feel free to contact us.