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!
![]() |
how to do something like the example ? |
Post Reply
|
| Author | |
m_alam
Team Player
Joined: 02 Aug 11 Location: Bangladesh Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
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");
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store