PDF Stamp in wrong position with small files

Hi,

Issue we have encountered while using Aspose for updating stamps in PDF documents. While providing the correct coordinates for the stamp position, we have noticed that the stamp’s placement is inconsistent across different documents. In some cases, the stamp appears in the correct position, aligning horizontally as expected. However, in other documents, we have observed that the stamp is displayed vertically, which is not the intended behavior.

Please let us know if there are any specific settings or configurations that need to be adjusted or if there are any known issues with stamp positioning in Aspose.

Thanks.

@appuelex

It is quite possible that pages are rotated in the PDFs where stamps are not being displayed on correct positions. Therefore, you can set Rotation property to none and add stamps to render them on correct positions. Rotation can be applied again after adding stamp.

Regarding the rotation of the pages, I have checked and there are no issues with it. The document where the stamp is incorrectly placed has the same rotation as the document where the stamp is correctly placed. However, the stamp update is still incorrect.

document get rotated when set Rotation property to none but now we need to add the stamp in the certain rotation angle of the PDF.

@appuelex

Would you please share the sample PDF along with complete sample code snippet that can be used to replicate the issue? Please also share your expected output for our better understanding. We will test the scenario in our environment and address it accordingly.

ConsoleApp.zip (3.9 MB)

Hi Ali,
Have added the sample console application with all actual(normal) input , output pdf with stamp and also added the pdf which have issue.

stamp should be in same position for all document regardless of the pdf rotation.

@appuelex

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-54714

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.