Print Page | Close Window

Remove Watermarks?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2238
Printed Date: 04 Apr 26 at 11:47AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Remove Watermarks?
Posted By: hawkmaster
Subject: Remove Watermarks?
Date Posted: 19 Apr 12 at 3:10PM
Hello,
I can add some watermarks (stamps) on all pages of an PDF.
I do this with

DrawRotatedText

This works fine.
My question is:
Is there a way to remove the watermark again if the user want ?

---------------------------
    for ($p = 1; $p <= $qp->PageCount(); $p++)
    {
        $qp->SelectPage($p);
        $qp->SetOrigin(1);           
        $qp->SetMeasurementUnits(0); 
        $qp->SelectFont($fid);
        $qp->SetTextAlign(1);   
        $qp->SetTextSize($ts);
        $qp->SetTextColor(0, 1, 1);
       $qp->SetTransparency($transp);
         $qp->DrawRotatedText($qp->PageWidth() / 2, $qp->PageHeight() / 2 + 40, $angle, $watermartext);
    }
    $qp->SaveToFile("$actdir/view/work.pdf");
----------------------------

regards
hans



Replies:
Posted By: Ingo
Date Posted: 19 Apr 12 at 9:49PM
Hi Hans!

This would be hard stuff ... nearly impossible.
If you wanna use such functionality you should prepare
the pdf-documents in a different way.
First you should use "SetLayer".
Then insert your watermark and save it.
If you want to remove the watermark you
should check the layercount first (is there an additional layer?)
and then you can use "DeleteLayer" and your watermark is off.

Cheers, Ingo



Posted By: ExchangeViews
Date Posted: 19 Jun 12 at 1:24PM
Can you please tell me how to preview selected layer before using delete later?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk