[jira] [Commented] (PDFBOX-4123) PDF will only print rasterized

2022-04-28 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-4123:
--

Slight update, with some help from the PDFBOX team, we can fix the 
transparency-related quality issues by removing the transparent layers.  
Working class is here: 
https://github.com/qzind/tray/blob/2a275bb729a3cf4b909fd683fbe23f7c1f8d4c2b/src/qz/printer/action/pdf/OpaquePDFRenderer.java

> PDF will only print rasterized
> --
>
> Key: PDFBOX-4123
> URL: https://issues.apache.org/jira/browse/PDFBOX-4123
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: PDFBOX-4123-no-transparency.pdf
>
>
> [This PDF|https://github.com/qzind/tray/files/1749977/test.pdf] will only 
> print rasterized.  It looks fine in Adobe Reader, but once printed using 
> PDFBOX, it will always print rasterized.
> Information about how the PDF was created (reported by a 3rd party, can get 
> more details if needed):
>  * Created with Adobe Illustrator
>  * Form-filled programmatically using using FPDI
>  * The PDF before FPDI does not experience this issue.
> Expected results (zoomed 24x):
> [!https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png!|https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png]
>  
> Actual results:
> [!https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png!|https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png]
>  Command used for testing:
>  
>  
> {noformat}
> java -jar /Users/owner/Downloads/pdfbox-app-2.0.8.jar PrintPDF -silentPrint 
> -defaultPrinter PDFCreator -dpi 0 ~/Downloads/test.pdf{noformat}
> Also reproduced on CUPS-PDF, Microsoft Print To PDF
> The symptom from the business area was "slow printing", but this symptom was 
> a side effect of a high resolution rasterization, causing the PDF to spool to 
> about 800MB.
>  
>  



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

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



[jira] [Commented] (PDFBOX-4123) PDF will only print rasterized

2018-02-25 Thread Tres Finocchiaro (JIRA)

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

Tres Finocchiaro commented on PDFBOX-4123:
--

Thanks.  Agreed, I'll relay this information along.

> PDF will only print rasterized
> --
>
> Key: PDFBOX-4123
> URL: https://issues.apache.org/jira/browse/PDFBOX-4123
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: PDFBOX-4123-no-transparency.pdf
>
>
> [This PDF|https://github.com/qzind/tray/files/1749977/test.pdf] will only 
> print rasterized.  It looks fine in Adobe Reader, but once printed using 
> PDFBOX, it will always print rasterized.
> Information about how the PDF was created (reported by a 3rd party, can get 
> more details if needed):
>  * Created with Adobe Illustrator
>  * Form-filled programmatically using using FPDI
>  * The PDF before FPDI does not experience this issue.
> Expected results (zoomed 24x):
> [!https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png!|https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png]
>  
> Actual results:
> [!https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png!|https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png]
>  Command used for testing:
>  
>  
> {noformat}
> java -jar /Users/owner/Downloads/pdfbox-app-2.0.8.jar PrintPDF -silentPrint 
> -defaultPrinter PDFCreator -dpi 0 ~/Downloads/test.pdf{noformat}
> Also reproduced on CUPS-PDF, Microsoft Print To PDF
> The symptom from the business area was "slow printing", but this symptom was 
> a side effect of a high resolution rasterization, causing the PDF to spool to 
> about 800MB.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4123) PDF will only print rasterized

2018-02-25 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-4123:
-

I did it with NOTEPAD++.

There is no direct simple technique with PDFBox, but you could go through each 
dictionary (page, but also resources like XObject forms and patterns) and then 
remove it on the COS level.

For PDF files like the one attached it makes no difference (or I can't see it), 
but for "nice" PDFs (e.g. illustrations) the result would be very different.

The better solution would be not to use transparency groups when creating the 
PDF. Your PDF is just an average looking form.

> PDF will only print rasterized
> --
>
> Key: PDFBOX-4123
> URL: https://issues.apache.org/jira/browse/PDFBOX-4123
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: PDFBOX-4123-no-transparency.pdf
>
>
> [This PDF|https://github.com/qzind/tray/files/1749977/test.pdf] will only 
> print rasterized.  It looks fine in Adobe Reader, but once printed using 
> PDFBOX, it will always print rasterized.
> Information about how the PDF was created (reported by a 3rd party, can get 
> more details if needed):
>  * Created with Adobe Illustrator
>  * Form-filled programmatically using using FPDI
>  * The PDF before FPDI does not experience this issue.
> Expected results (zoomed 24x):
> [!https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png!|https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png]
>  
> Actual results:
> [!https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png!|https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png]
>  Command used for testing:
>  
>  
> {noformat}
> java -jar /Users/owner/Downloads/pdfbox-app-2.0.8.jar PrintPDF -silentPrint 
> -defaultPrinter PDFCreator -dpi 0 ~/Downloads/test.pdf{noformat}
> Also reproduced on CUPS-PDF, Microsoft Print To PDF
> The symptom from the business area was "slow printing", but this symptom was 
> a side effect of a high resolution rasterization, causing the PDF to spool to 
> about 800MB.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4123) PDF will only print rasterized

2018-02-25 Thread Tres Finocchiaro (JIRA)

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

Tres Finocchiaro commented on PDFBOX-4123:
--

 
{quote}I just did, by replacing /Group with /Xroup which makes it inactive, 
i.e. just an ordinary XObject form and no  
{quote}
 Is there a PDFBOX technique that can quickly do this, or did you change within 
the file directly, e.g. on a binary level?

> PDF will only print rasterized
> --
>
> Key: PDFBOX-4123
> URL: https://issues.apache.org/jira/browse/PDFBOX-4123
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: PDFBOX-4123-no-transparency.pdf
>
>
> [This PDF|https://github.com/qzind/tray/files/1749977/test.pdf] will only 
> print rasterized.  It looks fine in Adobe Reader, but once printed using 
> PDFBOX, it will always print rasterized.
> Information about how the PDF was created (reported by a 3rd party, can get 
> more details if needed):
>  * Created with Adobe Illustrator
>  * Form-filled programmatically using using FPDI
>  * The PDF before FPDI does not experience this issue.
> Expected results (zoomed 24x):
> [!https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png!|https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png]
>  
> Actual results:
> [!https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png!|https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png]
>  Command used for testing:
>  
>  
> {noformat}
> java -jar /Users/owner/Downloads/pdfbox-app-2.0.8.jar PrintPDF -silentPrint 
> -defaultPrinter PDFCreator -dpi 0 ~/Downloads/test.pdf{noformat}
> Also reproduced on CUPS-PDF, Microsoft Print To PDF
> The symptom from the business area was "slow printing", but this symptom was 
> a side effect of a high resolution rasterization, causing the PDF to spool to 
> about 800MB.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4123) PDF will only print rasterized

2018-02-25 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-4123:
-

Re 1) yes (although there isn't PostScript only, most printers use other 
languages), and you and I could reproduce the problem by printing to PDF
Re 2) I just did, by replacing /Group with /Xroup which makes it inactive, i.e. 
just an ordinary XObject form and no longer a transparency group: 
[^PDFBOX-4123-no-transparency.pdf] 
Re 3) I don't know, and you should rather ask this in the user mailing list or 
on stackoverflow.

> PDF will only print rasterized
> --
>
> Key: PDFBOX-4123
> URL: https://issues.apache.org/jira/browse/PDFBOX-4123
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: PDFBOX-4123-no-transparency.pdf
>
>
> [This PDF|https://github.com/qzind/tray/files/1749977/test.pdf] will only 
> print rasterized.  It looks fine in Adobe Reader, but once printed using 
> PDFBOX, it will always print rasterized.
> Information about how the PDF was created (reported by a 3rd party, can get 
> more details if needed):
>  * Created with Adobe Illustrator
>  * Form-filled programmatically using using FPDI
>  * The PDF before FPDI does not experience this issue.
> Expected results (zoomed 24x):
> [!https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png!|https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png]
>  
> Actual results:
> [!https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png!|https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png]
>  Command used for testing:
>  
>  
> {noformat}
> java -jar /Users/owner/Downloads/pdfbox-app-2.0.8.jar PrintPDF -silentPrint 
> -defaultPrinter PDFCreator -dpi 0 ~/Downloads/test.pdf{noformat}
> Also reproduced on CUPS-PDF, Microsoft Print To PDF
> The symptom from the business area was "slow printing", but this symptom was 
> a side effect of a high resolution rasterization, causing the PDF to spool to 
> about 800MB.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4123) PDF will only print rasterized

2018-02-24 Thread Tres Finocchiaro (JIRA)

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

Tres Finocchiaro commented on PDFBOX-4123:
--

Thanks kindly for the reference document.  I'm quoting the text for historical 
purposes: 
{quote}_[...] "PostScript is the grandaddy of PDF, and if you're reading about 
printing you've already heard of it. It can represent text, vector graphics and 
images, so if your PDF contains a vector shape it's going to be reproduced 
almost exactly in PostScript. *Other graphics operations (like transparency) 
can't be done in PostScript, and the Java print layer handles this by 
rasterizing the page to a bitmap and including that bitmap in the spool file." 
- © 2012 Jonathan Cookson, bfo.com*_
{quote}
Some questions:
 # Is it safe to assume any Java/PostScript operations are upstream/wontfix?
 # Has anyone successfully used PDFBOX to remove transparency for documents 
(such as that attached in this bug report) to work around this issue?
 # The attached document is using FPDI for the overlay operation.  Has anyone 
else experienced this problem with FPDI?

I'll have the original bug reporter on our side reach out to FPDI for some 
assistance.  Thanks kindly for the information.  I understand if this bug will 
be closed as the above evidence shows the issues lies outside of the PDFBOX 
library however any assistance for creating a workaround is greatly appreciated.

 

 

> PDF will only print rasterized
> --
>
> Key: PDFBOX-4123
> URL: https://issues.apache.org/jira/browse/PDFBOX-4123
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: Tres Finocchiaro
>Priority: Major
>
> [This PDF|https://github.com/qzind/tray/files/1749977/test.pdf] will only 
> print rasterized.  It looks fine in Adobe Reader, but once printed using 
> PDFBOX, it will always print rasterized.
> Information about how the PDF was created (reported by a 3rd party, can get 
> more details if needed):
>  * Created with Adobe Illustrator
>  * Form-filled programmatically using using FPDI
>  * The PDF before FPDI does not experience this issue.
> Expected results (zoomed 24x):
> [!https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png!|https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png]
>  
> Actual results:
> [!https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png!|https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png]
>  Command used for testing:
>  
>  
> {noformat}
> java -jar /Users/owner/Downloads/pdfbox-app-2.0.8.jar PrintPDF -silentPrint 
> -defaultPrinter PDFCreator -dpi 0 ~/Downloads/test.pdf{noformat}
> Also reproduced on CUPS-PDF, Microsoft Print To PDF
> The symptom from the business area was "slow printing", but this symptom was 
> a side effect of a high resolution rasterization, causing the PDF to spool to 
> about 800MB.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (PDFBOX-4123) PDF will only print rasterized

2018-02-24 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-4123:
-

Your PDF has transparency, this results in Java printing it as a Bitmap... 
Here's a link from a competitor that mentions this:

http://bfo.com/blog/2012/02/15/using_java_to_print_pdf_documents/

> PDF will only print rasterized
> --
>
> Key: PDFBOX-4123
> URL: https://issues.apache.org/jira/browse/PDFBOX-4123
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.8
>Reporter: Tres Finocchiaro
>Priority: Major
>
> [This PDF|https://github.com/qzind/tray/files/1749977/test.pdf] will only 
> print rasterized.  It looks fine in Adobe Reader, but once printed using 
> PDFBOX, it will always print rasterized.
> Information about how the PDF was created (reported by a 3rd party, can get 
> more details if needed):
>  * Created with Adobe Illustrator
>  * Form-filled programmatically using using FPDI
>  * The PDF before FPDI does not experience this issue.
> Expected results (zoomed 24x):
> [!https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png!|https://user-images.githubusercontent.com/6345473/36575790-d730b36e-181a-11e8-8eea-855b05383b2e.png]
>  
> Actual results:
> [!https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png!|https://user-images.githubusercontent.com/12505463/36571015-c1ea7d5e-1802-11e8-8bfb-84983dd0479a.png]
>  Command used for testing:
>  
>  
> {noformat}
> java -jar /Users/owner/Downloads/pdfbox-app-2.0.8.jar PrintPDF -silentPrint 
> -defaultPrinter PDFCreator -dpi 0 ~/Downloads/test.pdf{noformat}
> Also reproduced on CUPS-PDF, Microsoft Print To PDF
> The symptom from the business area was "slow printing", but this symptom was 
> a side effect of a high resolution rasterization, causing the PDF to spool to 
> about 800MB.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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