Am 10.04.2017 um 19:56 schrieb Роман Лебедев:
Dear colleagues!

I want to resize pdf page with PDFBox 2.0. How should I do that? Is there some method which allows this kind of job with versions 2.0 or 1.8?
Example of my code is attached.

Prepend a content stream that does your scaling. I.e. (in 2.0) create a PDPageContentStream with prepend option, there call

|contentStream.transform(Matrix.getScaleInstance(0.5,0.5)); |

and don't forget to close.

Tilman

Reply via email to