Skip to main content
Skip table of contents

Scaling and rotating pages

These examples were written in answer to questions such as:

rotate90degrees

We've encountered an issue exporting this macro. Please try exporting again later.

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/stamper/Rotate90Degrees.cs##

scalerotate

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/develop/src/main/java/com/itextpdf/samples/sandbox/stamper/ScaleRotate.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/stamper/ScaleRotate.cs##

shrinkpdf

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/develop/src/main/java/com/itextpdf/samples/sandbox/stamper/ShrinkPdf.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/stamper/ShrinkPdf.cs##

shrinkpdf2

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/develop/src/main/java/com/itextpdf/samples/sandbox/stamper/ShrinkPdf2.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/stamper/ShrinkPdf2.cs##

scaledown

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/develop/src/main/java/com/itextpdf/samples/sandbox/events/ScaleDown.java##

We've encountered an issue exporting this macro. Please try exporting again later.

Resources

https://github.com/itext/i7js-examples/blob/develop/src/main/resources/pdfs/hello.pdf

https://github.com/itext/i7js-examples/blob/develop/src/main/resources/pdfs/orientations.pdf

https://github.com/itext/i7js-examples/blob/develop/src/main/resources/pdfs/pages.pdf

Results

https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/events/cmp_scale_down.pdf

https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/stamper/cmp_rotate90degrees.pdf

https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/stamper/cmp_scale_rotate.pdf

https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/stamper/cmp_shrink_pdf.pdf

https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/stamper/cmp_shrink_pdf2.pdf

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.