Package com.lowagie.text.pdf

Examples of com.lowagie.text.pdf.PdfImportedPage


                        writer = new PdfCopy(document, new FileOutputStream(outFile));
                        // step 3: we open the document
                        document.open();
                    }
                    // step 4: we add content
                    PdfImportedPage page;
                    for (int i = 0; i < n; ) {
                        ++i;
                        page = writer.getImportedPage(reader, i);
                        writer.addPage(page);
                        System.out.println("Processed page " + i);
View Full Code Here


        // step 2: we create a writer that listens to the document
        PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(args[1]));
        // step 3: we open the document
        document.open();
        PdfContentByte cb = writer.getDirectContent();
        PdfImportedPage page;
        int rotation;
        int i = 0;
        int p = 0;
        // step 4: we add content
        while (i < n) {
View Full Code Here

      int len = reader.getNumberOfPages();
        PdfStamper stamp = new PdfStamper(reader, os);
       
        if(len >0){
          if(x==UNDEFINED || y==UNDEFINED) {
            PdfImportedPage first = stamp.getImportedPage(reader, 1);
            if(y==UNDEFINED)y=(first.getHeight()-img.getHeight())/2;
            if(x==UNDEFINED)x=(first.getWidth()-img.getWidth())/2;       
          }
          img.setAbsolutePosition(x, y);
          //img.setAlignment(Image.ALIGN_JUSTIFIED); ration geht nicht anhand mitte
         
        }
View Full Code Here

        // step 2: we create a writer that listens to the document
        PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(args[1]));
        // step 3: we open the document
        document.open();
        PdfContentByte cb = writer.getDirectContent();
        PdfImportedPage page;
        int rotation;
        int i = 0;
        int p = 0;
        // step 4: we add content
        while (i < n) {
View Full Code Here

        int size,totalPage=0;
        Map parent;
        for(int doc=0;doc<pdfReaders.length;doc++) {
          size=pdfReaders[doc].getNumberOfPages();
         
          PdfImportedPage ip;
         
          // bookmarks
          if(doBookmarks) {
            name=pdfDocs[doc].getName();
            if(!StringUtil.isEmpty(name)) {
View Full Code Here

        // step 3: we open the document
        document1.open();
        PdfContentByte cb1 = writer1.getDirectContent();
        document2.open();
        PdfContentByte cb2 = writer2.getDirectContent();
        PdfImportedPage page;
        int rotation;
        int i = 0;
        // step 4: we add content
        while (i < pagenumber - 1) {
          i++;
View Full Code Here

                        writer = new PdfCopy(document, new FileOutputStream(outFile));
                        // step 3: we open the document
                        document.open();
                    }
                    // step 4: we add content
                    PdfImportedPage page;
                    for (int i = 0; i < n; ) {
                        ++i;
                        page = writer.getImportedPage(reader, i);
                        writer.addPage(page);
                        System.out.println("Processed page " + i);
View Full Code Here

    Document document = null;
    PdfCopy  writer = null;
    PdfReader reader;
    Set pages;
    boolean isInit=false;
    PdfImportedPage page;
    try {
      int pageOffset = 0;
      ArrayList master = new ArrayList();
     
      for(int i=0;i<docs.length;i++) {
View Full Code Here

    PdfCopy writer = new PdfCopy(document, os);
    if(encryption!=ENCRYPT_NONE)writer.setEncryption(user, owner, permissions, encryption);
    document.open();
   
   
    PdfImportedPage page;
    for (int i = 1; i <= n; i++) {
      page = writer.getImportedPage(pr, i);
      writer.addPage(page);
    }
    PRAcroForm form = pr.getAcroForm();
View Full Code Here

            document.open();
            final BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA,
                    BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
            final PdfContentByte cb = writer.getDirectContent(); // Holds the
            // PDF data
            PdfImportedPage page;
            int currentPageNumber = 0;
            int pageOfCurrentReaderPDF = 0;
            final Iterator<PdfReader> iteratorPDFReader = readers.iterator();

            // Loop through the PDF files and add to the output
View Full Code Here

TOP

Related Classes of com.lowagie.text.pdf.PdfImportedPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.