Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Remove Watermarks?
  FAQ FAQ  Forum Search   Register Register  Login Login

Remove Watermarks?

 Post Reply Post Reply
Author
Message
hawkmaster View Drop Down
Beginner
Beginner


Joined: 01 Apr 12
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote hawkmaster Quote  Post ReplyReply Direct Link To This Post Topic: Remove Watermarks?
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
ExchangeViews View Drop Down
Team Player
Team Player
Avatar

Joined: 13 Mar 12
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote ExchangeViews Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jun 12 at 1:24PM
Can you please tell me how to preview selected layer before using delete later?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store