Issue with converted PDF documents

Greetings,

We are currently using Aspose.Words to convert Word documents to PDF. Afterwards we add a marker to the resulting PDF using the Expert PDF libraries, this is something that we are re-using as it was already set up. The “marker” consists of 7 dots (…) that are added to the lower-right corner of the PDF documents using X, Y coordinates with ExpertPDF.

This works fine for any PDF we use except for PDFs converted using Aspose.Words. When adding the 7 dots to the document instead of adding them to the lower-right corner they end up in the upper-right corner. We did a test by adding the 7 dots to the 0x,0y coordinates on multiple PDF files and the end result is that the 0y coordinate is in the lower part of the document for the Aspose.Words converted documents while any other PDF has it in the upper section. So this explains why we end up having the 7 dots in the upper right corner of the document.

The PDFs we used in the tests were the following:

  1. Converted Word to PDF document using Aspose.Words.
  2. Converted Word to PDF document using Microsoft Word
  3. Converted HTML to PDF document using ExpertPdf
  4. Converted random document to PDF using PDFCreator.

Is there any way to change this behavior using Aspose.Words?

Hello Edwin,
Thanks for your request. Have you tried adding the mark using another tool? For instance, you can achieve the same using Aspose.Pdf.Kit.
Maybe there is something wrong with ExpertPdf, but not with PDFs produced by Aspose.Words.
Best regards,

Hi,

Thanks for the response. For the time being we are going to stick with using ExpertPDF for the 7 dot mark since we already invested in a license for it plus there are quite a few things that depend on it, not to mention we don’t have the time for such modifications and testing right now. In the future, however, we would like to consolidate all these internal services we have setup so they are done using a single tool, Aspose is looking good so far for this.

My apologies if what I said earlier came out as an insult to Aspose.Words, it’s not what I was looking for. Aspose.Words is a great tool and it has done great during the testing I’ve performed. Now, the reason I think there’s a problem with the PDF produced by Aspose it’s because of the tests that we performed using PDFs from different sources. As I mentioned, when we specify our web service to add the 7 dot mark to the documents in the 0,0 coordinates 3 out of 4 documents get the mark added in the same location while the PDF document that was converted using Aspose.Words gets the mark in a different location. So this is why I believe there is/was an issue with the converted PDF documents from Aspose.Words.

I just did a quick test using Aspose.Pdf.Kit and the 7 dot mark at 0,0 came in the same location for all PDF that I processed so that’s a good thing. But, as I mentioned earlier we are not planning on modifying our internal services just yet so I might have to do a work-around when handling Aspose.Words converted documents in the mean time.

Thanks.

Hi Edwin,
Thank you for additional information. Could you please also attach your test documents and code you are using to insert the mark? I will take a closer look to the issue and try to help you to resolve the issue.
Best regards,

Hello, I have attached the test files, libraries and code. I just noticed something very curious when using ExpertPDF on an Aspose.Words converted PDF document. The text that ExpertPDF inserts it’s…backwards. I didn’t noticed this previously since I was using a licensed copy of ExpertPDF, for this example I’m not using the license and the ExpertPDF library is inserting a “Demo Version” text.

The test app will find every PDF on a specific folder and add the 7 dot mark using both Aspose.Pdf.Kit and ExpertPDF. The output will be saved in a different directory. Pay attention to the “ExpertPDF Marked - AsposeDocxToPDF.pdf” output file (attached) and compare it with the other “ExpertPDF Marked…” files.

You’ll find an External References directory with all the libraries needed to run the test.

Thanks for the help.

Hi
Thanks for your request. I managed to observe the problem on my side. However, the strange thing is that due to PDF specification (0,0) point is in lower left corner of the page. It is strange that ExpertPDF always inserts text in the upper left corner. Unfortunately, I did not find any way to resolve the problem with ExpertPDF. Have you tried to contact with ExpertPDF support. Maybe they will be able to help you. Please let me know if you get some useful information from them.
Best regards,

I contacted ExpertPdf. I’ll post back when I get an answer.

Thanks for you help.

Hi
Thank you. I will wait for your inputs.
Best regards,