In ‘Paper size’ choose ‘Postscript Custom Page Size’ and edit page size as needed. Click ‘Properties’ at the top next to ‘Printer’. PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(RESULT)) įor (int i = 1 i <= reader. move your mouse near to the top-left of the PDF preview panel use the pop-up buttons to zoom in or out. In ‘Page Sizing & Handling’ > Disable ‘Choose paper source from PDF page size’.Use an online converter: Visit a website like Smallpdf or Zamzar and upload your PDF file. Then, click on the Resize button and choose the desired size from the drop-down menu. PdfReaderContentParser parser = new PdfReaderContentParser(reader) In fact, adding a single font to a PDF document can sometimes increase the file size substantially. Use a PDF editor: Open the PDF in a program like Adobe Acrobat or Foxit PhantomPDF and select the Edit tab. In this example, taken from my book "iText in Action - Second Edition", I use this class to draw a rectangle: public void addMarginRectangle(String src, String dest) With AvePDF, you will be able to change the height and width of your document to a standard or custom paper size, in millimeters, inches, or according to a percentage. It uses the TextMarginFinder class to find the margins within which text is found. Follow these easy steps to compress a large PDF file online: Click the Select a file button above, or drag and drop files into the drop zone. Online PDFresize helps you change the page size of your PDF and, at the same time, maintain the proportions by scaling the contents as well. Take a look at the ShowTextMargins example.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |