On Tue, 2014-10-28 at 09:32 +0100, Sebastian Haag wrote:
> 
> I create a PDF document using PdfMemDocument (podofo 0.9.2). It 
> contains just a few words but is around 420KB in size. I think the 
> "oversize" comes from the Filter/FlateDecode part. How can I reduce 
> the output filesize?
> 

        Hi,
the size is caused by the font being embedded in the document. The 
FlateDecode is a compression, it makes things smaller.

You might want to not embed the font, or embed only subset (used 
letters). Better to use 0.9.3, where the related things were improved.

See the PdfDocument::CreateFont() variants, each of them has 
  bool bEmbedd = true
argument. Set it to false to not embed the font. But beware, some PDF 
viewers may fail to show the text when the font is not embedded.

Yet another option is to use one of the built-in fonts, instead of 
system fonts, for example instead of Arial use Helvetica. The names of 
base 14 (standard) fonts can be found at the end of 
PdfFontFactoryBase14Data.h.
        Hope it helps,
        zyx

-- 
http://www.litePDF.cz                                 i...@litepdf.cz


------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to