Support for PDF/A buggy

  • Recently I wanted to make some minor changes to an application that uses WPTools to generate reports.

    Doing that I stumbled over a problem in WPDF.
    It seems the PDF/A support of WPTools has a bug.
    Clipping is not handled properly when using a metafile and GDI+
    (It's not clipped at all)

    1) A WPRichText object is created and a metafile with clipping and a gdi + polyline inserted.
    2) PDFA is set as a print option
    3) -> clipping does not seem to be working. If I don't use pdfa it works!
    4) A standard GDI polyline works! (I suppose the GDI+ metafile is written in 2 versions, a gdi and a gdi+ compatible version).

    Help!!!

    I have created a small demo-application that shows the problem.
    I've uploaded it here:


    (btw: The URL-Link-function of the forum seems not to work. And why can't I attach anything here in the forum? Would be handy.)

    I use WPTools 6 and the last wPDF version[/url]

    • Offizieller Beitrag

    Hi, thanks for your mail.

    The wptools output is not clipped to the current page - the PDF mode adds tags to the PDF text which changes the PDF text a bit.

    You are using this kind of clipping:
    IntersectClipRect(metaCanv.handle, 300, 300, 600, 600);

    instead of GDI+ clipping paths.