I have custom PDF files. Files are usually created using Word, but they can simply be any valid PDF files. I would like to convert the file to PDF-1.2 if they have a higher version number. Functions that are available only in a higher version (for example, in multimedia) should be removed, and the result should be reasonably reasonable and readable.
How to do this programmatically, without interactive tools like Adobe Acrobat? Preferably with Java and iText -library, but I will be interested in other solutions too.
One way would be to create a bunch of images from the original PDF and then pack them as a PDF-1.2 file, but is this a more elegant way?
source share