X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fpdf%2Fpdf.cc;h=d3f8b4da4f698efbb3d197f371be13cf56434b49;hp=840a8dae11ba4e608111ae38c23d2978687ea221;hb=36a061ee38719c1f4968fc22188086b98f9da716;hpb=ed72cffe2ac3abeac86859102b126753cf093b62 diff --git a/lib/pdf/pdf.cc b/lib/pdf/pdf.cc index 840a8da..d3f8b4d 100644 --- a/lib/pdf/pdf.cc +++ b/lib/pdf/pdf.cc @@ -437,6 +437,12 @@ static void pdf_set_parameter(gfxsource_t*src, const char*name, const char*value } } +void pdf_doc_prepare(gfxdocument_t*doc, gfxdevice_t*dev) +{ + pdf_doc_internal_t*i= (pdf_doc_internal_t*)doc->internal; + i->info->dumpfonts(dev); +} + static gfxdocument_t*pdf_open(gfxsource_t*src, const char*filename) { gfxsource_internal_t*isrc = (gfxsource_internal_t*)src->internal; @@ -513,8 +519,8 @@ static gfxdocument_t*pdf_open(gfxsource_t*src, const char*filename) pdf_doc->set_parameter = pdf_doc_set_parameter; pdf_doc->getinfo = pdf_doc_getinfo; pdf_doc->getpage = pdf_doc_getpage; - - + pdf_doc->prepare = pdf_doc_prepare; + return pdf_doc; }