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 - how to do something like the example ?
  FAQ FAQ  Forum Search   Register Register  Login Login

how to do something like the example ?

 Post Reply Post Reply
Author
Message
m_alam View Drop Down
Team Player
Team Player
Avatar

Joined: 02 Aug 11
Location: Bangladesh
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote m_alam Quote  Post ReplyReply Direct Link To This Post Topic: how to do something like the example ?
    Posted: 26 Dec 11 at 12:45PM
hi, greetings everyone..


please checkout the following image :



how to do some thing like that in QucikPDF library?

it's called watermark.

i like to place that text "DEMO" and Hyperlink "www.yoursite.com" on top of each/any page.. and when use click on the link, it will visit that link ?

i hope clear? any one can help me out?

best regards
kamrul hassan



Edited by m_alam - 26 Dec 11 at 12:46PM
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: 26 Dec 11 at 1:24PM
Hi!

Go to the samples section and search for "watermark" in the topics.
I've put a sample there a long time ago:
http://www.quickpdf.org/forum/watermark_topic230.html

Cheers, Ingo


Edited by Ingo - 26 Dec 11 at 1:25PM
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 27 Dec 11 at 1:18AM

I had a bit of a play with the following code.  It seems the Acrobat and Nitro automatically pick up the web address as a web link so this code will do what you require.

Andrew.

            QP.LoadFromFile("unstamped.pdf", "");

            int fid = QP.AddStandardFont(4);      // Helvetica    

            double angle = 30;

            for (int p = 1; p <= QP.PageCount(); p++) /* Loop through all pages in doc */
            {
                QP.SelectPage(p);

                QP.SetOrigin(1);            // Top left
                QP.SetMeasurementUnits(0);  // Points

                QP.SelectFont(fid);
                QP.SetTextAlign(1);         // Align text center

                QP.SetTextSize(72);
                QP.SetTextColor(0, 0, 1);
                QP.DrawRotatedText(QP.PageWidth() / 2, QP.PageHeight() / 2, angle, "www.debenu.com"); // Draw Watermark at center

                QP.SetTextSize(132);
                QP.SetTextColor(1, 0, 0);
                QP.DrawRotatedText(QP.PageWidth() / 2, QP.PageHeight() / 2 - 80, angle, "DEMO"); // Draw Watermark at center
        }
        QP.SaveToFile("stamped.pdf");
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