Am 11.02.2010 17:00, schrieb Dominik Seichter:
Hi all!Hi, If you _would_ like to add this to PoDoFo, you would have to adapt the PdfFontMetrics constructor (that one that gets a PdfObject) so that PdfFontMetrics can create a FreeType FT_Face from embedded (or not embedded) font data. Since we like to use PoDoFo more widely in our software, I consider to contribute code to the sources. There are some issues I stumbled upon that maybe are faster to fix when I can change the code directly, for example: - the mentioned missing embedded font feature. - an exception is thrown when I use "PdfAcroForm *form = _doc.GetAcroForm(false);" with an OpenOffice exported form-PDF. As a work around I use "PdfObject *formObj = _doc.GetCatalog()->GetIndirectKey("AcroForm");" - Some strings in OpenOffice PDFs are UTF-16 encoded. PoDoFo does not recongize these by now. - The PdfPainter is missing functions for "BMC" und "EMC". I did not find generic functions to emulate these. So now I'm writing directly into a stream. - Some variable names are confusing. A pPage is actually a PdfCanvas and a pCanvas is actually a PdfStream. - Three different string types are used (char *, PdfString, std::string) which is confusing. We are additionally using QT with QString as string type. So I found the style guide for PoDoFo. Is there an issue tracker? And is updating in trunk actually open or protected? Maybe a general "contribution guide" is helpful. Ulrich --
Ulrich Simon |
------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users

