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!
Merged overlay with multiple pages |
Post Reply |
Author | |
coco
Beginner Joined: 02 Jul 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 02 Jul 10 at 2:23PM |
Hi all,
I'm trying to add an overlay page to a pdf files with 10 pages. This works when i use (exactly) the sample code but the overlay page is printed upsidedown on every page. I've tried to use the DrawRotatedCapturedPage function as well but this doesn't give me a result at all. I'm using version "QuickPDF0719" on Windows 7. Here's my code:
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Coco!
No time... Only a quick shot: Try SetOrigin Cheers and welcome here, Ingo |
|
coco
Beginner Joined: 02 Jul 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Thanks, but I've tried this one. Unfortunately without results...
Regards Olav
|
|
coco
Beginner Joined: 02 Jul 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Hi again,
Is there anything else I can try? I'm pretty stuck right now :( Kind regards |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi! If you don't get an answer here you should try the official support pages. Cheers, Ingo |
|
evil_hunter
Beginner Joined: 24 Jun 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Hi,
I don't know if it can help you (i don't really understand your demand... i know i know my english is not perfect!^^)
I did that (in VB)
If Result = 1 Then
'You can only use the DrawCapturedPage function if the captured page is in the same
'document, so first we'll need to merge the two pages that we wish to overlay together
'into one document.
QP.LoadFromFile(file1) FileA = QP.SelectedDocument() QP.LoadFromFile(file2) FileB = QP.SelectedDocument() 'After merging FileB is automatically deleted, leaving only FileB which is now a combination of FileA and FileBQP.SelectDocument(FileA) QP.MergeDocument(FileB) 'Capture the page to copy in the merged documentCapturedPageID = QP.CapturePage(QP.PageCount) 'Now select the page(s) and retrieve its height and width For i = 1 To QP.PageCountQP.SelectDocument(FileA) QP.SelectPage(i) PageHeight = QP.PageHeight() PageWidth = QP.PageWidth() 'Draw the captured page onto the currently selected page(s)QP.DrawCapturedPage(CapturedPageID, 0, PageHeight, PageWidth, PageHeight) Next'Save the stitched file to disk QP.SaveToFile( "") Bye! |
|
coco
Beginner Joined: 02 Jul 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Hi,
Thanks for the reply. I've found out that my code was ok like it was.
However, when using pdf files exported by crystal reports this strange behaviour was introduced. It worked perfectly fine with any other pdf.
Regards
|
|
evil_hunter
Beginner Joined: 24 Jun 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Hum exact...
my code doesn't work with pdf generated by crystal... any solutions?
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
No. But i've made the experiences that this doesn' happen with newer (i don't know how new) versions of crystal reps. Why not upload your prob-docs to the official support pages? There won't be a solution but perhaps further versions of QP can work with these documents. Cheers, Ingo |
|
evil_hunter
Beginner Joined: 24 Jun 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
It's ok i found how to generate a "good" pdf! works with crystal 9 and 11.
I'll test with 2008.
|
|
coco
Beginner Joined: 02 Jul 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
That sounds great! Can you tell me how you did it?
|
|
evil_hunter
Beginner Joined: 24 Jun 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
I ve find that you can't overlay a pdf on a pdf made with crystal 11 (with crystal 9 the overlay pdf is rotate and small, in my case). But you can overlay a pdf made by crystal (9 or 11) on an other pdf!In my case it's ok because juste one of the 2 pdf are comming from crystal! I don't know in yours...
|
|
coco
Beginner Joined: 02 Jul 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Hmm, I didn't get a mailmessage about your reply so sorry for the late reaction.
I'm having the same case but my crystal report can contain more then 1 page so that doesn't work.
Of course I can duplicate the overlay until it matches the number of pages that my report contains but I don't like the method :(
I guess there's no other way at the moment. Thanks for your reaction!
|
|
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