On Monday 13 Apr 2009, Sankarshan Mukhopadhyay wrote:
> On Fri, Apr 10, 2009 at 9:48 AM, Raj Mathur <[email protected]> 
wrote:
> > On Friday 10 Apr 2009, Sankarshan Mukhopadhyay wrote:
> >> On Fri, Apr 10, 2009 at 8:33 AM, Raj Mathur <[email protected]>
> >
> > 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 Mathur                [email protected]      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 -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[email protected]/

Reply via email to