Page 1 of 1

how add page to pdf

Posted: 2010-06-29T10:17:55-07:00
by marian78
hi, need yours help...(pleas)

i have 5xpng file and one jpg.

now i need to generate pdf from png files and than add to first page one jpg file...

i use this:
***********************************************
Set imageMagick = CreateObject("ImageMagickObject.MagickImage.1")
Set fso = CreateObject("Scripting.FileSystemObject")
Set WshShell = CreateObject("WScript.Shell")

dim tmp

tmp = imageMagick.Convert("*.png","spolu.pdf")

.......
some code
......

'now need add jpg to already created pdf
tmp = imageMagick.Convert("*.jpg","spolu.pdf")

......
next code
.....
end

*****************************

but pdf is still overwriten... how i first create "spolu.pdf" from "*.png" and next time add to this "spolu.pdf" new page with "*.jpg"

thx, mutch

marian.

PS: sorry for my english