Quantcast

Missing text when printing FOP 2.1 PDF documents in Mac OSX's Preview App

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Missing text when printing FOP 2.1 PDF documents in Mac OSX's Preview App

Tobias Fischer | pagina GmbH
hi all,

we're using latest FOP version 2.1 to generate book PDFs.
While testing, we noticed that printing the generated PDF's in Mac OS
X's "Preview" app (their default pdf viewer) will result in missing
texts on the printed page.
This does not happen with Acrobat Reader on Windows nor in Acrobat on
Mac OS X – only the Preview App seems to get it wrong.

Fonts:
- "Minion Pro" OTF fonts (loaded from local folder via fop.xconf ->
font-triplets)

Printer:
- Lexmark M5155
- Konica Minolta Bizhub C452

fop.xconf:

> <?xml version="1.0" encoding="UTF-8"?>
> <fop version="1.0">
>   <renderers>
>     <renderer mime="application/pdf">
>       <filterList>
>         <!-- Compression using zlib flate (default is on). -->
>         <value>flate</value>
>       </filterList>
>
>       <fonts>
>         <auto-detect/>
>
>         <font embed-url="fonts/MinionPro-Regular.otf">
>           <font-triplet name="Minion Pro" style="normal" weight="normal"/>
>         </font>
>         <font embed-url="fonts/MinionPro-It.otf">
>           <font-triplet name="Minion Pro" style="italic" weight="normal"/>
>         </font>
>         <font embed-url="fonts/MinionPro-Bold.otf">
>           <font-triplet name="Minion Pro" style="normal" weight="bold"/>
>         </font>
>         <font embed-url="fonts/MinionPro-BoldIt.otf">
>           <font-triplet name="Minion Pro" style="italic" weight="bold"/>
>         </font>
>         <!-- ... and some others ... -->
>       </fonts>
>     </renderer>
>   </renderers>
> </fop>
Attached you will find the first two pages from an example PDF as well
as a photography of 2 printed pages (left: printed from windows, ignore
the scale factor; right: printed from Preview on Mac OS X).
The cover image get's printed, the other text isn't printed. The link
underline gets printed as well.

Does anyone have an idea what we did wrong? Or what FOP is doing wrong?

Thanks!

Best regards,
Tobias

--
Tobias Fischer
Senior Software Engineer
(XML/EPUB/PrintCSS)

Telefon: +49 (0)7071 9876-44 · Fax: -22
Mail: [hidden email]

pagina GmbH - Publikationstechnologien
Herrenberger Straße 51 | D-72070 Tübingen
www.pagina.gmbh | www.parsx.de

Handelsregister Stuttgart - HRB 380249
Geschäftsführer: Tobias Ott



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

example.pdf (189K) Download Attachment
example-print.jpg (110K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Missing text when printing FOP 2.1 PDF documents in Mac OSX's Preview App

Frank Hirsch
Hi Tobias,

My guess would be for the font itself…
Maybe try to create a document with this font manually (InDesign) and try to reproduce the issue.

I printed on OS X 10.10
- Apple Preview: missing text
- Acrobat Pro DC: OK

So it’s a clear Apple Preview issue.
Maybe changing the font is the quickest solution?

lg,
Frank


Am 18.08.2016 um 15:38 schrieb Tobias Fischer | pagina GmbH <[hidden email]>:

hi all,

we're using latest FOP version 2.1 to generate book PDFs.
While testing, we noticed that printing the generated PDF's in Mac OS X's "Preview" app (their default pdf viewer) will result in missing texts on the printed page.
This does not happen with Acrobat Reader on Windows nor in Acrobat on Mac OS X – only the Preview App seems to get it wrong.

Fonts:
- "Minion Pro" OTF fonts (loaded from local folder via fop.xconf -> font-triplets)

Printer:
- Lexmark M5155
- Konica Minolta Bizhub C452

fop.xconf:
<?xml version="1.0" encoding="UTF-8"?>
<fop version="1.0">
 <renderers>
   <renderer mime="application/pdf">
     <filterList>
       <!-- Compression using zlib flate (default is on). -->
       <value>flate</value>
     </filterList>

     <fonts>
       <auto-detect/>

       <font embed-url="fonts/MinionPro-Regular.otf">
         <font-triplet name="Minion Pro" style="normal" weight="normal"/>
       </font>
       <font embed-url="fonts/MinionPro-It.otf">
         <font-triplet name="Minion Pro" style="italic" weight="normal"/>
       </font>
       <font embed-url="fonts/MinionPro-Bold.otf">
         <font-triplet name="Minion Pro" style="normal" weight="bold"/>
       </font>
       <font embed-url="fonts/MinionPro-BoldIt.otf">
         <font-triplet name="Minion Pro" style="italic" weight="bold"/>
       </font>
       <!-- ... and some others ... -->
     </fonts>
   </renderer>
 </renderers>
</fop>

Attached you will find the first two pages from an example PDF as well as a photography of 2 printed pages (left: printed from windows, ignore the scale factor; right: printed from Preview on Mac OS X).
The cover image get's printed, the other text isn't printed. The link underline gets printed as well.

Does anyone have an idea what we did wrong? Or what FOP is doing wrong?

Thanks!

Best regards,
Tobias

--
Tobias Fischer
Senior Software Engineer
(XML/EPUB/PrintCSS)

Telefon: +49 (0)7071 9876-44 · Fax: -22
Mail: [hidden email]

pagina GmbH - Publikationstechnologien
Herrenberger Straße 51 | D-72070 Tübingen
www.pagina.gmbh | www.parsx.de

Handelsregister Stuttgart - HRB 380249
Geschäftsführer: Tobias Ott

<example.pdf><example-print.jpg>
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Missing text when printing FOP 2.1 PDF documents in Mac OSX's Preview App

Tobias Fischer | pagina GmbH

Hi Frank,

the issue has been fixed by Simon Steiner in latest trunk:
https://issues.apache.org/jira/browse/FOP-2702

Thanks Simon!

Cheers,
Tobias

    
Am 18.08.2016 um 16:14 schrieb Frank Hirsch:
Hi Tobias,

My guess would be for the font itself…
Maybe try to create a document with this font manually (InDesign) and try to reproduce the issue.

I printed on OS X 10.10
- Apple Preview: missing text
- Acrobat Pro DC: OK

So it’s a clear Apple Preview issue.
Maybe changing the font is the quickest solution?

lg,
Frank


Am 18.08.2016 um 15:38 schrieb Tobias Fischer | pagina GmbH <[hidden email]>:

hi all,

we're using latest FOP version 2.1 to generate book PDFs.
While testing, we noticed that printing the generated PDF's in Mac OS X's "Preview" app (their default pdf viewer) will result in missing texts on the printed page.
This does not happen with Acrobat Reader on Windows nor in Acrobat on Mac OS X – only the Preview App seems to get it wrong.

Fonts:
- "Minion Pro" OTF fonts (loaded from local folder via fop.xconf -> font-triplets)

Printer:
- Lexmark M5155
- Konica Minolta Bizhub C452

fop.xconf:
<?xml version="1.0" encoding="UTF-8"?>
<fop version="1.0">
 <renderers>
   <renderer mime="application/pdf">
     <filterList>
       <!-- Compression using zlib flate (default is on). -->
       <value>flate</value>
     </filterList>

     <fonts>
       <auto-detect/>

       <font embed-url="fonts/MinionPro-Regular.otf">
         <font-triplet name="Minion Pro" style="normal" weight="normal"/>
       </font>
       <font embed-url="fonts/MinionPro-It.otf">
         <font-triplet name="Minion Pro" style="italic" weight="normal"/>
       </font>
       <font embed-url="fonts/MinionPro-Bold.otf">
         <font-triplet name="Minion Pro" style="normal" weight="bold"/>
       </font>
       <font embed-url="fonts/MinionPro-BoldIt.otf">
         <font-triplet name="Minion Pro" style="italic" weight="bold"/>
       </font>
       <!-- ... and some others ... -->
     </fonts>
   </renderer>
 </renderers>
</fop>

Attached you will find the first two pages from an example PDF as well as a photography of 2 printed pages (left: printed from windows, ignore the scale factor; right: printed from Preview on Mac OS X).
The cover image get's printed, the other text isn't printed. The link underline gets printed as well.

Does anyone have an idea what we did wrong? Or what FOP is doing wrong?

Thanks!

Best regards,
Tobias

--
Tobias Fischer
Senior Software Engineer
(XML/EPUB/PrintCSS)

Telefon: +49 (0)7071 9876-44 · Fax: -22
Mail: [hidden email]

pagina GmbH - Publikationstechnologien
Herrenberger Straße 51 | D-72070 Tübingen
www.pagina.gmbh | www.parsx.de

Handelsregister Stuttgart - HRB 380249
Geschäftsführer: Tobias Ott

<example.pdf><example-print.jpg>
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Loading...