[poppler] Extracting clip paths for SVG generation

So srgh2008-forums1 at yahoo.co.in
Thu Jun 6 02:20:25 PDT 2013


Hi all,
 I am using SVGOutputDev (https://github.com/immateriel/pdf2svg/blob/master/SVGOutputDev.cc), which depends on Poppler or xpdf, to extract vector graphics from PDFs and generate SVG files out of them. Unfortunately, SVGOutputDev hasn't implemented clipping (clip, eoclip and clipToStrokePath methods are just dummy in that code) and due to lack of sufficient documentation, I am unable to figure out how to implement those methods. I did refer to SplashOutputDev which implements clipping but I am unable to understand the logic there and besides it converts the clipping path to bitmap. Can someone provide me some pointers or a sample code demonstrating how to extract clip path commands in PDF as SVGs?

Thanking you,
So



More information about the poppler mailing list