Examples of useHiResScreenDisplay()


Examples of org.jpedal.PdfDecoder.useHiResScreenDisplay()

          /** instance of PdfDecoder to convert PDF into image */
          PdfDecoder decodePdf = new PdfDecoder(true);

          /** set mappings for non-embedded fonts to use */
          PdfDecoder.setFontReplacements(decodePdf);
          decodePdf.useHiResScreenDisplay(true);
          decodePdf.getDPIFactory().setDpi(2 * 72);
          decodePdf.setPageParameters(1, 1);
          try {
            decodePdf.openPdfArray(baos.toByteArray());
            /** get page 1 as an image */
 
View Full Code Here

Examples of org.jpedal.PdfDecoder.useHiResScreenDisplay()

    return createPdfDecoder(IOUtil.toBytes(res));
  }
  
  private static PdfDecoder createPdfDecoder(byte[] input) throws PageException  {
     PdfDecoder decoder = new PdfDecoder(true);
     decoder.useHiResScreenDisplay(true);
     try {
      decoder.openPdfArray(input);
    } catch (PdfException e) {
      throw Caster.toPageException(e);
    }
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.