Open bebu259 opened 4 years ago
use true
as a third param to PDFPageModifer
constructor to cancel any existing transformation. i reckon this would be a shorter route then attempting to parse the transformation (though, yeah. it possible). see the text parsing sample for parsing page content - https://github.com/galkahana/HummusJSSamples/tree/master/text-extraction
That works great, thank you.
Hi,
I am using the code below to add an image to a PDF:
This works well, but for some PDFs the image is mirrored on the x-axis. This can be fixed by adding a transform:
It looks like some input PDFs have some internal transformation that is causing this mirroring. So I need to inspect the PDFs for that. I use
parsePage()
to get information about the original PDF, but there is no transformation info in it.Is there a way to inspect a PDF to see if it has some internal transformations?
Thanks!