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 khalid <kh...@indussoftware.net> on 2006/04/10 16:28:41 UTC

Urgent:Special characters in PDF

Hi,
In our webapplication java-servlet-jsp based we are using fop to generate
PDF.We are using "ArialUnicodeMS" font for generating the PDF with special
characters by loading it through the Options.every thing is fine we are able
to get the required special characters.

 but the problem is when we are using the above described font we are not
able to save it in MS-Word format or copy from the generate PDF to word
which is serious concern for us(As our client needs copying it to word
format) any body having idea to solve this please help 

we are eagerly waiting for response
Regards
Khalid
--
View this message in context: http://www.nabble.com/Urgent%3ASpecial-characters-in-PDF-t1425258.html#a3842960
Sent from the FOP - Users forum at Nabble.com.

Re: Urgent:Special characters in PDF

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 10.04.2006 17:55:17 Chris Bowditch wrote:
> khalid wrote:
> 
> > Hi, In our webapplication java-servlet-jsp based we are using fop to 
> > generate PDF.We are using "ArialUnicodeMS" font for generating the PDF 
> > with special characters by loading it through the Options.every thing is 
> > fine we are able to get the required special characters. but the problem 
> > is when we are using the above described font we are not able to save it 
> > in MS-Word format or copy from the generate PDF to word which is serious 
> > concern for us(As our client needs copying it to word format) any body 
> > having idea to solve this please help we are eagerly waiting for 
> > response Regards Khalid
> 
> This is a known problem. It is caused by fact FOP doesn't create the 
> ToUnicode Table in the PDF. This is needed for embedded fonts if C&P is 
> to work inside PDF. One workaround is to use -enc ansi when generating 
> the font metrics. However, I believe this only works if code points < 
> 255 are used in the PDF.
> 
> If you need this urgently you will need to fix the code yourself. 
> Patches are always most welcome :)

Actually, we do have a patch but it has IP problems (stuff copied from
FOray) which I was not keen on pursuing because of the work on FOrayFont.

http://issues.apache.org/bugzilla/show_bug.cgi?id=5335


Jeremias Maerki


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


Re: Urgent:Special characters in PDF

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

> Hi, In our webapplication java-servlet-jsp based we are using fop to 
> generate PDF.We are using "ArialUnicodeMS" font for generating the PDF 
> with special characters by loading it through the Options.every thing is 
> fine we are able to get the required special characters. but the problem 
> is when we are using the above described font we are not able to save it 
> in MS-Word format or copy from the generate PDF to word which is serious 
> concern for us(As our client needs copying it to word format) any body 
> having idea to solve this please help we are eagerly waiting for 
> response Regards Khalid

This is a known problem. It is caused by fact FOP doesn't create the 
ToUnicode Table in the PDF. This is needed for embedded fonts if C&P is 
to work inside PDF. One workaround is to use -enc ansi when generating 
the font metrics. However, I believe this only works if code points < 
255 are used in the PDF.

If you need this urgently you will need to fix the code yourself. 
Patches are always most welcome :)

Chris

> ------------------------------------------------------------------------
> View this message in context: Urgent:Special characters in PDF 
> <http://www.nabble.com/Urgent%3ASpecial-characters-in-PDF-t1425258.html#a3842960>
> Sent from the FOP - Users <http://www.nabble.com/FOP---Users-f353.html> 
> forum at Nabble.com.




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