I applied the PdfFontFactory refactoring and PdfFontSubsettedCID patches. After running, the subsetted font is referenced but is not embedded (missing) in the resulting PDF document. Are there any specific instructions/steps to get the 'precise' subsetted font into the PDF document? Date: Sat, 20 Apr 2013 22:05:21 +0300 From: cybe...@gmail.com To: malcolmga...@hotmail.com CC: podofo-us...@lists.sf.net Subject: Re: [Podofo-users] Embedding partial font
Hi! You can control what characters will be embedded in a document using PdfFontTTFSubset API, but you should know the characters set in advance. AFAIK 'precise' subsetting can't be done with current podofo API, but I've posted patch for doing that to this mailing list recently (you can find it in March posts). I didn't received any feedback on it, but maybe you'll find it usefull (as whole or as source for ideas). Don't sure if I did the job right, but the patch worked pretty well for me. Little copy-paste from patch: /** * CID font which performs "precise" subsetting, i.e. only actually used in the * document characters embedded. */ class PdfFontSubsettedCID : public PdfFontCID { ... } Regards, cybevnm On 04/19/2013 09:40 PM, Malcolm Gates wrote: Hello, Using the podofo library, how does one unmap glyphs for characters that are not present in the final PDF document? Thanks, Malcolm Gates From: Gates, Malcolm Sent: Monday, April 08, 2013 10:53 To: 'podofo-us...@lists.sf.net' Subject: Embedding partial font Hello, I know about embedding a TTF font in a PDF. Is there a method to embed only that portion of the font for the characters present in the PDF? For example, a PDF document comprising the text “Hello, world.” would have the font subset including only those letters, the space, the comma and the period. Doing so should reduce the size of the resulting PDF. Is that correct? Many thanks, Malcolm Gates Professional Services Contractor NCR Corporation Telephone: 770.623.7330 ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users
<<inline: ATT00001>>
------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users