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!
Saves only new objects on first page? |
Post Reply |
Author | |
kukulkan
Team Player Joined: 02 Mar 06 Location: Germany Status: Offline Points: 20 |
Post Options
Thanks(0)
Posted: 02 Mar 06 at 11:19AM |
I use the following VB6-code to insert watermarks:
If PDF.LoadFromFile("c:\TestOriginal.pdf") = 1 Then PDF.SetOrigin 1 ' To top left PDF.SetMeasurementUnits 1 ' millimetres ' KOPIE und Datum einfügen For x = 1 To PDF.PageCount PDF.SelectPage x PDF.SetTextSize 140 PDF.SetTransparency 80 ' KOPIE PDF.DrawRotatedTextBox -20, 60, 200, 200, 45, "KOPIE", 0 PDF.DrawRotatedTextBox -20, 200, 200, 200, 45, "KOPIE", 0 ' DATUM UHRZEIT PDF.SetTextSize 40 Dat = Format(Now, "DD. MMM YYYY - HH:MM") PDF.DrawRotatedTextBox 10, 70, 200, 200, 45, Dat, 0 PDF.DrawRotatedTextBox 10, 210, 200, 200, 45, Dat, 0 Next ' Problem: PDF.SaveToFile "c:\TEST.pdf" Else Debug.Print "can not open pdf: Errorcode:" & PDF.LastErrorCode End If Now only the first page contains the watermark. The other pages are unaffected? If I use PDF.PrintDocument, the watermark appears on all sides. Whats going wrong? Kukulkan |
|
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