Package org.geomajas.plugin.printing.document

Examples of org.geomajas.plugin.printing.document.SinglePageDocument


    }

    if (request.getPageSize() != null) {
      page.setSize(request.getPageSize(), true);
    }
    SinglePageDocument pdfDoc = new SinglePageDocument(page, null);
    // layout the document
    pdfDoc.layout(Format.PDF);
    // Add document to container
    String documentId = printService.putDocument(pdfDoc);
    response.setDocumentId(documentId);
  }
View Full Code Here


  }

  public PrintTemplate createDefaultTemplate(String pagesize, boolean landscape) throws PrintingException {
    PrintTemplate template = createTemplate(pagesize, landscape);
    // calculate the sizes (if not already calculated !)
    SinglePageDocument document = new SinglePageDocument(template.getPage(), null);
    try {
      document.layout(Format.PDF);
    } catch (PrintingException e) {
      // should not happen !
      log.warn("Unexpected problem while laying out default print template", e);
    }
    return template;
View Full Code Here

TOP

Related Classes of org.geomajas.plugin.printing.document.SinglePageDocument

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.