Bug 492959 - Using specific font breaks PDF generation
Summary: Using specific font breaks PDF generation
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 4.4.2   Edit
Hardware: PC Windows 7
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-04 04:43 EDT by Anthony Ogier CLA
Modified: 2016-05-04 05:11 EDT (History)
0 users

See Also:


Attachments
The non working rptdesign (1.04 KB, application/octet-stream)
2016-05-04 04:43 EDT, Anthony Ogier CLA
no flags Details
The problematic font (47.14 KB, application/zip)
2016-05-04 04:44 EDT, Anthony Ogier CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Ogier CLA 2016-05-04 04:43:58 EDT
Created attachment 261445 [details]
The non working rptdesign

In my Birt report (blank one with a single label containing the string "Test"), I'm trying to use a new font for a label.

That font was not bundled with Windows, so I installed it manually on my system.

As soon as I change the font of my label to this specific one, the PDF generation is broken: my browser gives me that error instead of displaying the PDF:
> "Caractères non autorisés dans un nom. Local\EWH-4196-0"

which I can translate in english to:
> "Unauthorized character in a name. Local\EWH-4196-0"

The number in the message always change at each PDF generation.

If I generate it to a PDF and try to open it with Adobe Acrobat Reader, I've got that message:
> Une erreur est survenue lors de l'ouverture de ce document. Une erreur est survenue à la lecture de ce document (129).

which in english is:
> There was an error processing a page. There was a problem reading this document(129)

I've tested to make Word export to PDF a .docx containing "Test" with this font and got no problem to open it with Adobe Reader.

I will attach the `.rptdesign` & the problematic font.

This bugzilla was suggested by Clement Wong after opening a [question on Stackoverflow](http://stackoverflow.com/questions/36220511/defining-a-font-on-a-label-breaks-pdf-generation) and a [question on Birt dev forum](http://developer.actuate.com/community/forum/index.php?/topic/39080-defining-a-font-on-a-label-breaks-pdf-generation/).
Comment 1 Anthony Ogier CLA 2016-05-04 04:44:47 EDT
Created attachment 261446 [details]
The problematic font
Comment 2 Anthony Ogier CLA 2016-05-04 05:11:29 EDT
I've tried to create my own PDF emitter handling PDF/A like proposed in https://bugs.eclipse.org/bugs/show_bug.cgi?id=362282#c2 (after consulting http://www.eclipse.org/forums/index.php/t/259539/) without any success (still have the same Adobe Reader 129 error).