Convert PDF is messing with content - Overlapping text

When the pdf is converted suing aspose, it is overlapping text inside the pdf. How to correct this. Earlier this was occurring in Linux only and when fonts were installed it was corrected for other pdf’s. Now again we have encountered similar issue for other pdf’s both in wondows and linux as well. How to fix this?

Original:

image.png (13.3 KB)

Converted:

image.png (13.7 KB)

@venkata.veerubhotla

Would you please share the sample PDF document and sample code snippet with us. We will test the scenario in our environment and address it accordingly.

Sample code used is
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(sourceFile);

Sourcefile being the pdf.
TestFIle.pdf (47.3 KB)

Any update on this as our Customer is waiting on this.

@venkata.veerubhotla

Since, you did not mention in which format you are converting the PDF. We tested the scenario while converting your PDF into PNG using Aspose.PDF for Java 21.2 and did not notice any issue. Please check the attached output image for your kind reference.

Converted_Image_1.png (126.2 KB)

Could you please try using the latest version of the API and in case issue still occurs, please share some more details with us so that we can again try to replicate the issue.

With latest version of pdf - it is working as expected. Thank you. Earlier we were using 20.6 version.

@venkata.veerubhotla

It is good to know that your issue has been resolved. Please keep using our API and let us know in case you face any issues.

Asad Ali, we got a new license in October 2020. When i am trying to use this latest jar, it is throwing evaluation error. Do you know the reason?

@venkata.veerubhotla

Please make sure that the older license is properly removed from the application and is not being used by any chance. You can also test the scenario in a simple console application by using your new license with the latest version of the API and share that application with us in case the issue still persists. We will further proceed to assist you accordingly.

PS: Please check following instructions to send a license file to the support team in order to share the requested information.


  • Click on the name of support team member to whom you want to send the private information like license file, propriety data, user credentials, passwords etc.

  • A popup will appear. Click Message option to share the information privately

  • A new window will appear where you can add details and share attachments as you do in normal public forums. But this time, it will be private and will only be accessible to you, the user whom you have sent this to and administrator

  • Please remove the “RE:” keyword from the title of the private message, because it is a reserved keyword of Discourse

  • Please don’t remove the default forum thread link as it specifies to which forum thread this private message is linked with

  • Add details and press Message button. Private information will be sent to concerned support team member

  • Once you have sent a private message, notify the support team member in related forum thread from where you spawned this private message so that it is not missed

For single thread, it is working fine. but for a scheduled job based multithreaded program, the license is not being picked.

If we are moving the license logic to each thread, then as the license file is common, the tool is getting hung reading those licenses.

We need to apply license to all mimetypes - pdf,excel,word,image,msg in a multithreaded quartz based scheduling program.
How can this be achieved. We tried to add license at the first initial step, but somehow the internal quartz job thread is not picking the license and giving evaluation water mark.
Any option to read license file once for all mime types and then use it across the tool?

@venkata.veerubhotla

You can please try using the License file as an Embedded Resource in your application. Furthermore, you can please try to read the license file first and can load the obtained string into MemoryStream and then used it for initializing the license. If problem still persists, please share a sample console application with us which is able to reproduce the error. We will test the scenario in our environment and address it accordingly.