Print Page | Close Window

Saves only new objects on first page?

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=346
Printed Date: 19 May 24 at 3:25AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Saves only new objects on first page?
Posted By: kukulkan
Subject: Saves only new objects on first page?
Date 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



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