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

Tilman Hausherr edited comment on PDFBOX-5466 at 6/27/22 3:49 PM:
------------------------------------------------------------------

Yes we convert it into vector graphics or raster graphics for printing. 1.8.* 
used the java font API but this didn't work well enough so we do our own 
rendering. There is a JIRA issue where Alexandr Scherbatiy, a (former oracle 
java developer) guy pointed to some code modification in PDFBox itself to 
revert it to the old behavior.


was (Author: tilman):
Yes we convert it into vector graphics or raster graphics for printing. 1.8.* 
used the java font API but this didn't work well enough so we do our own 
rendering. There is a JIRA issue where a (former oracle java developer) guy 
points to some code modification in PDFBox itself to revert it to the old 
behavior. I don't remember which issue but his name was something with 
"Alexander Sch..." and he also helped us fix a problem with hidpi screens in 
PDFBOX-3665. (He has probably a second id).

> Print to PDF printer results in large PDF + text content is not selectable 
> anymore
> ----------------------------------------------------------------------------------
>
>                 Key: PDFBOX-5466
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5466
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.24
>            Reporter: Katja Sondermann
>            Priority: Minor
>
> When printing a PDF to Pdf Printer, the resulting PDF is much larger than the 
> original (e.g. 140 KB original vs 955 KB printed with PDFBox to a PDF 
> printer), furthermore the text content of the original can no longer be 
> selected in a viewer (e.g. Acrrobat Reader), content seems to be rendered as 
> image.
>  
> Is there a chance to solve this? 
>  
> The priting is called with the following code:
> int dpi = 600; // tested various values here, also 0
> PDDocument document = loadMyPdDocument();
> PDFPageable pdfPageable = new PDFPageable(document, Orientation.AUTO, false, 
> dpi);
> PrinterJob.getPrinterJob().setPageable(pdfPageable);



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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

Reply via email to