Merge problem

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
going
Posts: 4
Joined: Thu Jul 22 2004

Merge problem

Post by going »

I Want to add a background pdf to my multipage pdf
I use the code
set ObjPdf=.CreateObject("CDintf.Document")
ObjPdf.Open("back.pdf")
ObjPdf.Merge "test.pdf" , True
ObjPdf.Save("testt.pdf")
set ObjPdf = Nothing

But the result is that the background page lies OVER the main document , not behind
Anyone can help me ?
Thanks
Raffaele Lafratta
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Please try to call:

set ObjPdf=.CreateObject("CDintf.Document")
ObjPdf.Open("test.pdf")
ObjPdf.Merge "back.pdf" , True
ObjPdf.Save("testt.pdf")
set ObjPdf = Nothing
going
Posts: 4
Joined: Thu Jul 22 2004

Post by going »

Thanks Joan but I try it
................
ObjPdf.Open("test.pdf")
ObjPdf.Merge "back.pdf" , True
ObjPdf.Save("test2.pdf")
...................

Test.pdf is a multipage document

The result is a ONE page pdf (correctly merged BUT only for the first page )
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

The Merge function has some options that determin how the merge is done, for more information please check page 128 of the developers' manual "Common Driver Interface 210.pdf"

If you are still not getting the desired result and if you have a free warranty or a maintenance plan please send us the files that you are trying to merge along with the desired result to support@amyuni.com

Hope this helps.
going
Posts: 4
Joined: Thu Jul 22 2004

Post by going »

I don't have a free warranty or a maintenance plan but anyway
I think to use the merge function in the correct way
So I think the problem is due to a bug of the driver.
(ver 2.09 )
I have to pay to solve it ?
Anyway new versions solve it ?
I tried demo version of 2.10 driver but the result is the same

Thanks
going
Posts: 4
Joined: Thu Jul 22 2004

Post by going »

Problem solved

I don't find this kind of documentation but I tried this

...
ObjPdf.Open("back.pdf")
ObjPdf.Merge "test.pdf" , 1+4 'Documentation says only True /False
....

It seems to goes well
Post Reply