jeu. 14 mars 2013, 16h36
Cesar Ch
Brésil
atoutfox.public.association
Re: PDF => JPEG
Salut JPG
Well, you can open the PDF file maximized in the screen, and then use GdiPlusX to capture the whole form image.
You can automate this process using a VFP form, putting inside it a WebBrowser control instance, and opening ("Navigate") the PDF file.
After that, call GdiPlusX like this:
DO System.App
LOCAL loBmp as xfcBitmap
loBmp = _Screen.System.Drawing.Bitmap.FromScreen(Thisform)
loBmp.Save("c:\test.png", _Screen.System.Drawing.Imaging.ImageFormat.PNG)
This will captyure for you only the visible portion of your document. You can make some few researches to find how to open the PDF in "Whole page view mode".
The captured image will have the form borders, etc... If this works for you, later I can show you how to cut the undesired parts of the image.
Hope that helps !
Journal

JpG pense que ce message est la bonne réponse ou qu'il est utile
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000011549