Limitations for PDF stamps through bindPDF()?

I am using the following code for evaluation purposes for stamping a PDF file (a half-page add)
into a single-page PDF file. Neither the positioning nor the rotation of stamped PDF file
is working. Is this a limitation or a bug? In general I must be able to stamp a PDF at arbitrary positions inside a PDF file? Doable?



from com.aspose.pdf.kit import PdfFileStamp, Stamp

stamp = PdfFileStamp('1.pdf', 'out.pdf')

pdf = Stamp()
pdf.bindPdf("anzeige.pdf", 1)
pdf.setOrigin(-50000,-50000)
pdf.isBackground(True);
pdf.setOpacity(0.5);
pdf.setRotation(180)

stamp.addStamp(pdf);

stamp.close()

Hi Andreas,

It looks like the problem is occurring due to the way you’re setting the origin. Please note that in the PDF file the origin starts from bottom left corner and it starts from (0,0). So, you may set the origin value from (0,0) to PDF width and height.

Please try to change the setOrigin value and see if it helps. If it doesn’t resolve your issue then please do let us know.

We’re sorry for the inconvenience.
Regards,

setOrgin(0,0) does not make a difference.

Hi Andreas,

We’re investigating this issue at our end and you’ll be updated with the results the earliest possible.

We’re sorry for the inconvenience.
Regards,

Hi Andreas,

This issue seems dependent on the other issue you already reported, which was logged as PDFKITJAVA-32320. The files used in both of these scenarios are same and we’re getting the same exception. So, we’ll have to fix the other issue before moving forward with this one.

However, if you have some other set of files which doesn’t give the above exception but can help us reproduce the issue mentioned in this thread then please share that with us as well.

We’re sorry for the inconvenience and looking forward to help you out.
Regards,