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 "Singhal, Ramneek (Exchange)" <rs...@Bear.com> on 2006/08/11 21:37:55 UTC

Problem searching text in FOP generated PDF file

 hi all,

I have generated a tabular PDF report using Apache-FOP-0.20.5. if I try
to search a String(ctrl-f) in generated PDF report, it never finds it,
tough string exists in the document.

Attaching generated PDF. Try searching "BSC" or "Number".


Also when I try to copy some text from this pdf reports and try pasting
it in some text editor instead of text it shows ?????????.

Please help......








Re: Problem searching text in FOP generated PDF file

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Singhal, Ramneek (Exchange) wrote:
> I have generated a tabular PDF report using Apache-FOP-0.20.5. if I try
> to search a String(ctrl-f) in generated PDF report, it never finds it,
> tough string exists in the document.

You've used non-standard (custom) fonts. FOP 0.20.5 doesn't
generate the data structures which are necessary for proper searching
contents displayed with non-standard fonts.

Your options:
a) Use predefined fonts only, don't use non-standard fonts.
b) Generate the metrics using ansi encoding (use the -enc ansi command
   line option when starting the TTF reader)

> Also when I try to copy some text from this pdf reports and try pasting
> it in some text editor instead of text it shows ?????????.

Same problem.

J.Pietschmann

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