You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by kennardconsulting <ri...@kennardconsulting.com> on 2008/04/17 06:44:07 UTC

0.95BETA Regression: ZapfDingbatsEncoding in final PDF output?

Dear All,

There seems to have been a change from 0.94 to 0.95BETA. I'm not sure if
this is intentional, but the encoding 'ZapfDingbatsEncoding' (which I
understand to be some kind of FOP-specific workaround) is making it into the
final PDF output:

128 0 obj
<<
  /Type /Font
  /Subtype /Type1
  /BaseFont /ZapfDingbats
  /Encoding /ZapfDingbatsEncoding
>>

I believe 0.94 also used ZapfDingbatsEncoding, but final PDFs produced by
0.94 don't include it:

127 0 obj
<< /Type /Font
/Subtype /Type1
/Name /F14
/BaseFont /ZapfDingbats >>

As far as I understand, ZapfDingbatsEncoding is not a 'standard' encoding
like WinAnsiEncoding, and so this causes problems for PDF processing tools.
For example, PDFBox (http://www.pdfbox.org) balks at stripping text from
0.95BETA PDFs because of it, whereas it works fine with 0.94 PDFs.

Is there any guidance for this issue?

Your help is much appreciated,

Richard.

-- 
View this message in context: http://www.nabble.com/0.95BETA-Regression%3A-ZapfDingbatsEncoding-in-final-PDF-output--tp16738796p16738796.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: the effectiveness of Open Source software (was: 0.95BETA Regression: ZapfDingbatsEncoding in final PDF output?)

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Thanks. You were lucky because it's a topic that is important to me. ;-)
Other issues take much much longer to resolve (years sometimes!). BTW,
the effectiveness of OSS can even be improved if more people who are
successfully using it think about contributing something back in one
form or another. This is not directed at you in particular, Richard
(sorry to single you out), but at everyone on this list and on fop-dev.
Contributing is very easy and a number of people demonstrate that
already (Thanks!!!). There are various ways to do that:
- Post detailed information on problems that makes it quick and easy for
fop-devs to fix them (like Richard did in the present case).
- Answer questions on fop-users (Helps fop-devs concentrate on improving
the code)
- Write Wiki pages with examples, tips and lessons learned.
- Improve project documentation and FAQ entries.
- Review old Bugzilla entries (updates, cleanup)
- Take time (or give a developer time) to improve something in FOP's
codebase and write tests. [1]

[1] I know, FOP's source code can be scary at first. Some parts (like
the layout engine) really are due to the complexity of XSL-FO. But there
are so many other parts where it is not nearly as difficult to dive into.
Of course, the fop-devs are always happy to give pointers and advice.

                             - o -

In both FOP and Batik we face an increasingly difficult situation:
XSL-FO and SVG have lost their hype-factor. They are considered a
readily available commodity but still, there's so much left to do. For
the Apache XML Graphics project the discrepancy between the size of the
user base and the development teams has been growing over the years.

If you look at other projects inside the ASF, you can see that some are
practically exploding with activity (all the SOA-related projects, but
also Harmony and others). Not so in XML Graphics, unfortunately.

A few companies and organizations are investing in Batik and FOP through
individual developers (in-house and external) which is probably what
made the renewed life at least of FOP possible after the 0.20.5 release
and today allows us to publish very cool software packages. And from
what I hear they have really profited from their initiative.

Developers change projects, jobs, interests. People come and go. So we
have to make sure we get new blood from time to time. While open source
is free (with free almost commercial-grade support ;-) ) it doesn't
write itself. We need help! Everyone is invited to participate!

To all those who are bundling FOP with their (commercial) products: It's
great that you do that! That's why the ASF created the Apache License
V2.0 and does not use a copy-left license (GPL-family). But please keep
in mind that you can only influence the direction of the project if you
play an active part in it (whatever this part looks like).

Thanks for listening, everyone!


On 18.04.2008 03:08:08 kennardconsulting wrote:
> 
> Wow - what a turn around time! You guys are a complete testament to the
> effectiveness of Open Source software. I can't thank you enough for all your
> hard work. FOP is awesome, and makes a massive difference to my ability to
> sell XSL-FO based solutions to my clients (eg. I don't have to ask them to
> stump up enormous  per CPU license fees).
> 
> Yes, I can confirm this is now fixed in the 0.95 branch.
> 
> Thanks again!
> 
> Richard.
> 
> -- 
> View this message in context: http://www.nabble.com/0.95BETA-Regression%3A-ZapfDingbatsEncoding-in-final-PDF-output--tp16738796p16758722.html
> Sent from the FOP - Users mailing list archive at Nabble.com.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: 0.95BETA Regression: ZapfDingbatsEncoding in final PDF output?

Posted by kennardconsulting <ri...@kennardconsulting.com>.
Wow - what a turn around time! You guys are a complete testament to the
effectiveness of Open Source software. I can't thank you enough for all your
hard work. FOP is awesome, and makes a massive difference to my ability to
sell XSL-FO based solutions to my clients (eg. I don't have to ask them to
stump up enormous  per CPU license fees).

Yes, I can confirm this is now fixed in the 0.95 branch.

Thanks again!

Richard.

-- 
View this message in context: http://www.nabble.com/0.95BETA-Regression%3A-ZapfDingbatsEncoding-in-final-PDF-output--tp16738796p16758722.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: 0.95BETA Regression: ZapfDingbatsEncoding in final PDF output?

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Actually, this IS a bug. The PDF specification is pretty clear about the
encodings on symbolic fonts. I seem to have missed this as this only
affects text extraction but not the display. I've just fixed it in the
0.95 branch:
http://svn.apache.org/viewvc?rev=649006&view=rev

Richard, would you please retest with PDFBox using the 0.95 branch?
https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95

Thanks for catching that, Richard.

On 17.04.2008 10:01:14 Chris Bowditch wrote:
> kennardconsulting wrote:
> 
> > Dear All,
> > 
> > There seems to have been a change from 0.94 to 0.95BETA. I'm not sure if
> > this is intentional, but the encoding 'ZapfDingbatsEncoding' (which I
> > understand to be some kind of FOP-specific workaround) is making it into the
> > final PDF output:
> > 
> > 128 0 obj
> > <<
> >   /Type /Font
> >   /Subtype /Type1
> >   /BaseFont /ZapfDingbats
> >   /Encoding /ZapfDingbatsEncoding
> > 
> > 
> > I believe 0.94 also used ZapfDingbatsEncoding, but final PDFs produced by
> > 0.94 don't include it:
> > 
> > 127 0 obj
> > << /Type /Font
> > /Subtype /Type1
> > /Name /F14
> > /BaseFont /ZapfDingbats >>
> > 
> 
> I don't believe this is a bug. This change was introduced to allow 
> support for Type 1 Font embedding using non WinAnsi encoding. See the 
> changes log for details of changes to the Font sub system:
> 
> http://xmlgraphics.apache.org/fop/changes.html#Changes+to+the+Font+Subsystem
> 
> > As far as I understand, ZapfDingbatsEncoding is not a 'standard' encoding
> > like WinAnsiEncoding, and so this causes problems for PDF processing tools.
> > For example, PDFBox (http://www.pdfbox.org) balks at stripping text from
> > 0.95BETA PDFs because of it, whereas it works fine with 0.94 PDFs.
> 
> That seems odd. It could be a problem in PDF Box. Did you try using 
> another PDF tool such as iText? Perhaps Jeremias will have some 
> additional thoughts.
> 
> > 
> > Is there any guidance for this issue?
> > 
> > Your help is much appreciated,
> 
> Chris
> 



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: 0.95BETA Regression: ZapfDingbatsEncoding in final PDF output?

Posted by Chris Bowditch <bo...@hotmail.com>.
kennardconsulting wrote:

> Dear All,
> 
> There seems to have been a change from 0.94 to 0.95BETA. I'm not sure if
> this is intentional, but the encoding 'ZapfDingbatsEncoding' (which I
> understand to be some kind of FOP-specific workaround) is making it into the
> final PDF output:
> 
> 128 0 obj
> <<
>   /Type /Font
>   /Subtype /Type1
>   /BaseFont /ZapfDingbats
>   /Encoding /ZapfDingbatsEncoding
> 
> 
> I believe 0.94 also used ZapfDingbatsEncoding, but final PDFs produced by
> 0.94 don't include it:
> 
> 127 0 obj
> << /Type /Font
> /Subtype /Type1
> /Name /F14
> /BaseFont /ZapfDingbats >>
> 

I don't believe this is a bug. This change was introduced to allow 
support for Type 1 Font embedding using non WinAnsi encoding. See the 
changes log for details of changes to the Font sub system:

http://xmlgraphics.apache.org/fop/changes.html#Changes+to+the+Font+Subsystem

> As far as I understand, ZapfDingbatsEncoding is not a 'standard' encoding
> like WinAnsiEncoding, and so this causes problems for PDF processing tools.
> For example, PDFBox (http://www.pdfbox.org) balks at stripping text from
> 0.95BETA PDFs because of it, whereas it works fine with 0.94 PDFs.

That seems odd. It could be a problem in PDF Box. Did you try using 
another PDF tool such as iText? Perhaps Jeremias will have some 
additional thoughts.

> 
> Is there any guidance for this issue?
> 
> Your help is much appreciated,

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org