简体   繁体   中英

iText: add images with projective transform

I'm trying to add an image to a PDF using iText. This image must be included with a projective transformation. I was able to find a way to include images with affine transformation but I couldn't find a way to add images that require projective transformation, such as the following example:

before => after

Does anyone know if it is possible to do that and how to do it?

That's not possible to do using the transformation capabilities of the PDF format. As you already found out there are are mechanisms to do affine transforms but that as far as it goes. You'll have to process the images before including them in the PDF.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM