• Offizieller Beitrag

    Hi,

    please quote the code you actually use.

    The standard code is this:

    It is from the manual "VCL: Add text draw object to all pages".

    Please note that you need to "render" the objects into the pages before they are saved.

    Command(COMPDF_RenderDrawobjects,32+64+4+8)

  • Hello , thanks for replying . We managed to generate the watermark as we needed with the posted code but after calling the method savetofile the watermark does not remain in pdf document that was saved . the code I am using is :

    WPPDF.CommandEx(COMPDF_RenderDrawobjects, 4 + 8 + 32 + 64); // Render
    WPPDF.ClearDrawObject(-1, -1); // and Clear all
    // save the watermarked PDF...
    WPPDF.Plus.SaveToFile(FOutputFileName);