You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Arthur Vuijk (JIRA)" <ji...@apache.org> on 2016/03/15 22:28:33 UTC

[jira] [Created] (PDFBOX-3274) Unreadable PDF print

Arthur Vuijk created PDFBOX-3274:
------------------------------------

             Summary: Unreadable PDF print
                 Key: PDFBOX-3274
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3274
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
    Affects Versions: 1.8.11
         Environment: Windows (7 and 10), Eclipse Mars
            Reporter: Arthur Vuijk
             Fix For: 1.8.11


Newby to PDFBox!!

public static void main(String[] args) { 
	  printername = "HP Photosmart 6510 series";

      PDDocument document = null;
      try
      {
    	  PrinterJob Printjob4 = PrinterJob.getPrinterJob();
    	  document = PDDocument.load ("E:\\1062542195549019.pdf");
    	  PrintService[] printService = PrinterJob.lookupPrintServices();
    	  boolean printerfound=false;
    	  for (int i = 0; !printerfound && i < printService.length; i++)
    	  {
    		  if(printService[i].getName().indexOf(printername)!= -1)
    		  {
    			  Printjob4.setPrintService(printService[i]);
    			  printerfound = true;
    		  }
    	  }
    	  document.silentPrint( Printjob4 );
    	  document.close();
      } catch (IOException e)
      {	System.out.println("Fout bij printen");
      
      } catch (PrinterException e) {
    	  System.out.println("Fout bij printen");
		e.printStackTrace();
	}
   }
}

Returns:

mrt 15, 2016 10:01:25 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
INFO: unsupported/disabled operation: BDC
mrt 15, 2016 10:01:25 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
INFO: unsupported/disabled operation: EMC
mrt 15, 2016 10:01:25 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
INFO: unsupported/disabled operation: BDC
mrt 15, 2016 10:01:25 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
INFO: unsupported/disabled operation: EMC
mrt 15, 2016 10:01:25 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
INFO: unsupported/disabled operation: BDC
mrt 15, 2016 10:01:26 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
INFO: unsupported/disabled operation: EMC
mrt 15, 2016 10:01:26 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
INFO: unsupported/disabled operation: BDC
mrt 15, 2016 10:01:26 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
INFO: unsupported/disabled operation: EMC

PDF File contains CID font types!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org