Examples of PDFDocument


Examples of org.apache.fop.pdf.PDFDocument

     * @param cfg the configuration
     * @throws ConfigurationException if an error occurs while configuring the object
     */
    public void configure(PDFDocumentGraphics2D graphics, Configuration cfg)
            throws ConfigurationException {
        PDFDocument pdfDoc = graphics.getPDFDocument();

        //Filter map
        pdfDoc.setFilterMap(
                PDFRendererConfigurator.buildFilterMapFromConfiguration(cfg));

        //Fonts
        try {
            FontInfo fontInfo = createFontInfo(cfg);
View Full Code Here

Examples of org.apache.fop.pdf.PDFDocument

            FontSetup.setup(fontInfo, this.pdfContext.getFontList(), null);
            //FontState fontState = new FontState("Helvetica", "normal",
            //                          FontInfo.NORMAL, 12, 0);
        }

        this.pdfDoc = new PDFDocument("Apache FOP: SVG to PDF Transcoder");

        if (this.cfg != null) {
            this.pdfDoc.setFilterMap(
                PDFFilterList.buildFilterMapFromConfiguration(cfg));
        }
View Full Code Here

Examples of org.apache.fop.pdf.PDFDocument

    public void startRenderer(OutputStream stream) throws IOException {
        if (userAgent == null) {
            throw new IllegalStateException("UserAgent must be set before starting the renderer");
        }
        ostream = stream;
        this.pdfDoc = new PDFDocument(
                userAgent.getProducer() != null ? userAgent.getProducer() : "");
        this.pdfDoc.setPDFAMode(this.pdfAMode);
        this.pdfDoc.setCreator(userAgent.getCreator());
        this.pdfDoc.setCreationDate(userAgent.getCreationDate());
        this.pdfDoc.getInfo().setAuthor(userAgent.getAuthor());
View Full Code Here

Examples of org.apache.fop.pdf.PDFDocument

    public void startRenderer(OutputStream stream) throws IOException {
        if (userAgent == null) {
            throw new IllegalStateException("UserAgent must be set before starting the renderer");
        }
        ostream = stream;
        this.pdfDoc = new PDFDocument(
                userAgent.getProducer() != null ? userAgent.getProducer() : "");
        this.pdfDoc.setCreator(userAgent.getCreator());
        this.pdfDoc.setCreationDate(userAgent.getCreationDate());
        this.pdfDoc.getInfo().setAuthor(userAgent.getAuthor());
        this.pdfDoc.getInfo().setTitle(userAgent.getTitle());
View Full Code Here

Examples of org.apache.fop.pdf.PDFDocument

    public void startRenderer(OutputStream stream) throws IOException {
        if (userAgent == null) {
            throw new IllegalStateException("UserAgent must be set before starting the renderer");
        }
        ostream = stream;
        this.pdfDoc = new PDFDocument(
                userAgent.getProducer() != null ? userAgent.getProducer() : "");
        this.pdfDoc.setCreator(userAgent.getCreator());
        this.pdfDoc.setCreationDate(userAgent.getCreationDate());
        this.pdfDoc.getInfo().setAuthor(userAgent.getAuthor());
        this.pdfDoc.getInfo().setTitle(userAgent.getTitle());
View Full Code Here

Examples of org.apache.fop.pdf.PDFDocument

            FontSetup.setup(fontInfo, this.pdfContext.getFontList());
            //FontState fontState = new FontState("Helvetica", "normal",
            //                          FontInfo.NORMAL, 12, 0);
        }

        this.pdfDoc = new PDFDocument("Apache FOP: SVG to PDF Transcoder");

        if (this.cfg != null) {
            this.pdfDoc.setFilterMap(
                PDFFilterList.buildFilterMapFromConfiguration(cfg));
        }
View Full Code Here

Examples of org.axsl.pdf.PdfDocument

            renderer = new SVGRenderer(logger, outputOptions, graphicServer);
            break;
        }
        default: {
            final PsServer psServer = new PsServer4a();
            final PdfDocument document = new org.foray.pdf.object.PDFDocument(outputStream, logger, psServer);
            renderer = new PDFRenderer(logger, outputOptions, document);
            break;
        }
        }
        return renderer;
View Full Code Here

Examples of railo.commons.pdf.PDFDocument

  }
 
  private PDFDocument getDocument() {
    //SerialNumber sn = pageContext.getConfig().getSerialNumber();
    if(_document==null){
      _document=new PDFDocument();
    }
    return _document;
  }
View Full Code Here

Examples of railo.commons.pdf.PDFDocument

      PDFPageMark footer = _document.getFooter();
      boolean hasHeader=header!=null;
      boolean hasFooter=footer!=null;
      if(hasFooter || hasHeader) {
        Iterator<PDFDocument> it = documents.iterator();
        PDFDocument doc;
        while(it.hasNext()){
          doc=it.next();
          if(hasHeader && doc.getHeader()==null) doc.setHeader(header);
          if(hasFooter && doc.getFooter()==null) doc.setFooter(footer);
        }
      }
      doBookmarks=_document.getBookmark();
      doHtmlBookmarks=_document.getHtmlBookmark();
    }
View Full Code Here

Examples of railo.commons.pdf.PDFDocument

    this._document=null;
  }
 
  private PDFDocument getPDFDocument() {
    //SerialNumber sn = pageContext.getConfig().getSerialNumber();
    if(_document==null)_document=new PDFDocument();
    return _document;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.