Re: [ilugd] PDF Urdu font problem
On Fri, Apr 10, 2009 at 9:48 AM, Raj Mathur r...@linux-delhi.org wrote: On Friday 10 Apr 2009, Sankarshan Mukhopadhyay wrote: On Fri, Apr 10, 2009 at 8:33 AM, Raj Mathur r...@linux-delhi.org wrote: The characters are all here, because if you select and copy the PDF text (e.g. in Kpdf) and paste it into an editor it displays the complete Urdu text beautifully. If you use the same font to write something in a standard editor/word processor and output it to PDF, does it render b0rked or as_expected? Interesting diagnostic! Yes, if I paste the text from the PDF into OOo writer, convert all to Nafees font and generate a fresh PDF it looks just fine. Umm.. I was looking at whether - if you use a new OOo writer document and, with the same font selected input randomly using appropriate layout whether it gets rendered. Maybe I should get Joomla to just use OOo to generate PDFs from pages (j/k :) Well, on the face of it, turns out that Joomla seems to be pushing out a PDF that does not seem to render alright. Might be worth poking at the internals to see how Joomla does generate the PDF. And, the original post would be a good puzzle on indlinux list :) -- http://www.gutenberg.net - Fine literature digitally re-published http://www.plos.org - Public Library of Science http://www.creativecommons.org - Flexible copyright for creative work Sent from Mumbai, MH, India ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] PDF Urdu font problem
On Monday 13 Apr 2009, Sankarshan Mukhopadhyay wrote: On Fri, Apr 10, 2009 at 9:48 AM, Raj Mathur r...@linux-delhi.org wrote: On Friday 10 Apr 2009, Sankarshan Mukhopadhyay wrote: On Fri, Apr 10, 2009 at 8:33 AM, Raj Mathur r...@linux-delhi.org wrote: The characters are all here, because if you select and copy the PDF text (e.g. in Kpdf) and paste it into an editor it displays the complete Urdu text beautifully. If you use the same font to write something in a standard editor/word processor and output it to PDF, does it render b0rked or as_expected? Interesting diagnostic! Yes, if I paste the text from the PDF into OOo writer, convert all to Nafees font and generate a fresh PDF it looks just fine. Umm.. I was looking at whether - if you use a new OOo writer document and, with the same font selected input randomly using appropriate layout whether it gets rendered. That works out of the box anyway. Maybe I should get Joomla to just use OOo to generate PDFs from pages (j/k :) Well, on the face of it, turns out that Joomla seems to be pushing out a PDF that does not seem to render alright. Might be worth poking at the internals to see how Joomla does generate the PDF. And, the original post would be a good puzzle on indlinux list :) Joomla uses a library called TCPDF, whose author I'm in communication with. Unfortunately TCPDF requires the fonts to be in some special format, for which tools are provided along with the library itself. I'd used the tools and instructions for converting NafeesWebNaskh (the font I'm using) into TCPDF-compatible form, and that's what seems to be b0rk. I can use the Arabic font that ships with TCPDF for generating PDFs, which look fine but also have characters missing (not as many missing as with NafeesWebNaskh though). Regards, -- Raju -- Raj Mathurr...@kandalaya.org http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F PsyTrance Chill: http://schizoid.in/ || It is the mind that moves ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] PDF Urdu font problem
Hi, Using the TCPDF component to generate PDF files from Urdu articles in a Joomla site. With a fair amount of googling managed to get the Debian NafeesWebNaskh font embedded into the document. However, the generated PDFs only display a few characters from the font, the rest are consistently displayed as blanks. The characters are all here, because if you select and copy the PDF text (e.g. in Kpdf) and paste it into an editor it displays the complete Urdu text beautifully. Would someone who has some experience with PDF be able to figure out what's wrong here? Sample file (97K) is available at: http://images.kandalaya.org/urdu.pdf Regards, -- Raju -- Raj Mathurr...@kandalaya.org http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F PsyTrance Chill: http://schizoid.in/ || It is the mind that moves ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] PDF Urdu font problem
On Fri, Apr 10, 2009 at 8:33 AM, Raj Mathur r...@linux-delhi.org wrote: The characters are all here, because if you select and copy the PDF text (e.g. in Kpdf) and paste it into an editor it displays the complete Urdu text beautifully. If you use the same font to write something in a standard editor/word processor and output it to PDF, does it render b0rked or as_expected ? -- http://www.gutenberg.net - Fine literature digitally re-published http://www.plos.org - Public Library of Science http://www.creativecommons.org - Flexible copyright for creative work ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] PDF Urdu font problem
On Friday 10 Apr 2009, Sankarshan Mukhopadhyay wrote: On Fri, Apr 10, 2009 at 8:33 AM, Raj Mathur r...@linux-delhi.org wrote: The characters are all here, because if you select and copy the PDF text (e.g. in Kpdf) and paste it into an editor it displays the complete Urdu text beautifully. If you use the same font to write something in a standard editor/word processor and output it to PDF, does it render b0rked or as_expected? Interesting diagnostic! Yes, if I paste the text from the PDF into OOo writer, convert all to Nafees font and generate a fresh PDF it looks just fine. Maybe I should get Joomla to just use OOo to generate PDFs from pages (j/k :) Regards, -- Raju -- Raj Mathurr...@kandalaya.org http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F PsyTrance Chill: http://schizoid.in/ || It is the mind that moves ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/