[ 
https://issues.apache.org/jira/browse/PDFBOX-4709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17000383#comment-17000383
 ] 

Tres Finocchiaro commented on PDFBOX-4709:
------------------------------------------

Providing the DPI only seems to make it worse.

I've found a way to emulate this issue... 

The steps are fairly complex so please bear with me... 
 # Using Windows 10, install the latest ZDesigner driver from Zebra's website.  
The driver chosen was "ZDesigner TLP 2884-Z" although any ZPL driver should 
technically work.
 # Using Google Chrome, install the Zpl Printer plugin.  If not already, open 
the Zpl Printer application and click it to "On".
 # Manually add a new Standard TCP/IP printer port to the system with an IP 
address of 127.0.0.1 (the OS took a long time to timeout and allow me to finish 
the port addition, but it does eventually let you.
 # Manually add a new printer to the system pointing it to the newly added 
TCP/IP port.
 # Select the ZPL driver (eg. TLP 2884-Z)
 # From the newly added printer properties, go to  Preferences, Options and 
change the size to 4x6 inches (otherwise our example will throw 
PrinterException("Paper's imageable height is too small.");
 # Set the printer as the system's default printer.

Now you can print a virtual Zebra printer (this technique will technically work 
on Linux or macOS, but the driver is written by Michael Sweet – not Zebra – so 
it's not a great unit test).

Observe the printing quality difference between the unit tests provided in 
Lite's code snippet.  In my case, I'm using a font size of 8.  Using 24 in the 
code example hides the issue, you really need to use a smaller font to see it 
with the naked eye.

 

 

> PDFBox prints text poorly in comparison to Adobe, Chrome, other apps
> --------------------------------------------------------------------
>
>                 Key: PDFBOX-4709
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4709
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.14
>         Environment: Windows 10
> AdoptOpenJDK 11
> PDFBox 2.0.14
>            Reporter: Lite M Finocchiaro
>            Priority: Major
>         Attachments: Adoberesult.jpg, Drug-print.pdf, Drug-print.pdf, 
> IMG_20191219_130048_2.jpg, PDFBoxVSgraphicsobj.jpg, PDFBoxresult.jpg
>
>
> When printing a PDF from PDFBox to a Zebra GK420d thermal label printer, the 
> text from the PDF is blurry and appears to have the top and bottom cut off 
> compared to printing the same file through Adobe Acrobat.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to