ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: PDF => JPEG   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

jeu. 14 mars 2013, 16h36
Cesar Ch
Brésil 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
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3