> > > > And podofo cannot handle such situation. > > Hi, > I do not have any knowledge or opinion on the matter, but I'm > wondering: in what way PoDoFo cannot handle such situation, please? As > long as PoDoFo does not render the content (which it doesn't), then the > validity or completeness of the font descriptions doesn't matter, as > long as the library user can get to the objects/dictionaries on his/her > own, no? The only affected part would be when opening such a PDF file > and trying to check some string widths or anything like that, which I, > personally, consider in the same bucket as PDF content rendering. > > I always understood PoDoFo as a library to read and manipulate PDF > files, with some higher API for some common parts, but which are > optional, because the library user can always use the low level API and > do all of that on its own. I never understood PoDoFo as a library for > easier rendering of the PDF content. >
Is text extraction considered rendering? This is actually not about missing widths. PdfMemDocument::GetFont throws exception on such font: PODOFO_RAISE_ERROR_INFO( ePdfError_NoObject, "Font object defines neither Widths, nor MissingWidth values!" ); So if such font is used on some page podofo text extractor would throw (I did not check whether mentioned pdf uses this font on page, but it uses it with acroforms). Podofo refuses to "load" such font which is needed to decode text which uses this font. Of course almost everything what is podofo doing wrong can be fixed using podofo low level api and do these things better. Anyone can create own better PdfMemDocument based on rest of project. But this will not fix podofo text extractor tool for example. > Bye, > zyx > > > > _______________________________________________ > Podofo-users mailing list > Podofo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/podofo-users >
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users