Printing Multi Page PDF Issue Gdpicpro V5

Discussions about image processing and document imaging.
Post Reply
jvanlaar
Posts: 6
Joined: Mon Apr 14, 2008 7:47 pm

Printing Multi Page PDF Issue Gdpicpro V5

Post by jvanlaar » Wed May 01, 2013 10:40 pm

There was another thread on this subject but the error I am getting is different and could be some kind of compatibility issue with the Win 7 64 machine I am having the issue on ....

Foxpro Code that runs OK .... but only prints first page of PDF

Code: Select all

lcjpgfullpath = lcjpgdir + alltrim(fccompart) + "\" + alltrim(ffromlot) + ".PDF"
if file(lcjpgfullpath)
	white = 0xFFFFFF
	black = 0x0
	imagefile = oGdviewer.DisplayFromPDFFile(lcjpgfullpath)
       	numofpages = ogdviewer.PageCount
        oGdviewer.PrintImageFit()
	mymes = ogdviewer.printgetstat()
	WAIT WINDOW mymes
   	oGdviewer.CloseImage()
   	endif
So I need to print multi page pdf and I see we need to set the page range from other posts here so add the two lines of code to do that ..

Code: Select all

lcjpgfullpath = lcjpgdir + alltrim(fccompart) + "\" + alltrim(ffromlot) + ".PDF"
if file(lcjpgfullpath)
	white = 0xFFFFFF
	black = 0x0
	imagefile = oGdviewer.DisplayFromPDFFile(lcjpgfullpath)
       	numofpages = ogdviewer.PageCount
        oGdviewer.PrintSetFromToPage(1,numofpages)
        oGdviewer.PrintImageFit()
	mymes = ogdviewer.printgetstat()
	WAIT WINDOW mymes
   	oGdviewer.CloseImage()
   	endif
This does not print anything and print stat returns an error 31 - WrongGdTwainVersion = 31,

What is this error and what do I need to do to fix this?

Gabriela
Posts: 439
Joined: Wed Nov 22, 2017 9:52 am

Re: Printing Multi Page PDF Issue Gdpicpro V5

Post by Gabriela » Wed Jan 30, 2019 6:06 pm

Kind regards,

Gabriela
GdPicture Team

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests