Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling ghostscript dll from vfp 7
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00654238
Message ID:
00659333
Vues:
48
http://www.wginc.org/vfpps2pdf/samples.ZIP

This link, has three files,
1 the orig ps file (created with VFP's report writer and the generic Adobe ps driver)

2 A sample pdf file converted using Ghostscript
3 The same file converted use Adobe Distiller )

The GhostScript file Is 48K (converted)
The Adobe Converted file 44K

The Fonts look good to me, for both conversions, So what I am thinking is the font you selected look good because its native to 'Windows' but the same font name is either not installed as part of GhostScript, or the verions of the Font installed with GhostScript is not the same.

My guess - (and thats all it is) is it has something to do with the fonts.

Bob Lee

(Wish I could be of more help)



>Bob, thank you for reply.
>
>I added al line
> laArgs[12] = "-dNOPLATFONTS"
>to the convertfile() procedure, but this does not help.
>Is it OK to add arguments to the end ?
>
>My goal:
>
>I need to produce readable pdf view in Win 98 with 640x480 resolution
>using Adobe PDF viever for Times New Roman 10 pt font.
>
>My observations:
>
>1. In 1280x1024 resolution, view is OK. In 600x800 view is better but
>still nearly unreadable.
>
>2. If I change in control panel printer properties graphics/scaling to
>120%, output is readable but does not fit to page. Also, numbers with format 99 9999.99 are unreadable, truncated.
>
>3. If I create .jpg or .png files, output is still unreadble as in .pdf file.
>
>4. If I use GSView, view is OK.
>
>5. If I use 12 pt font size, view is readable. However, REPORT PREVIEW command as a much more readable preview.
>
>how to solve this problem ?
>
>>I have been working with this code - and the one I wrote over this past weekend (using the exe) and have created hundreds of PDF reports using Ghostscript.
>>
>>None of them look anywhere as bad as your samples....
>>
>>Just for kicks today, I converted my reports using GhostScript,and Adobe distiller - and I think I recall that the GhostScript pdf were smaller (by about 30% ) than the adobe created ones.. (Ill post a few samples tomorrow)
>>
>>Ill bet that the trouble you are coming across is based on a font issue. (from the ghostscript manual)
>>One thought.....
>>
>>-dNOPLATFONTS
>>Disables the use of fonts supplied by the underlying platform (X Windows or Microsoft Windows). This may be needed if the platform fonts look undesirably different from the scalable fonts.
>>
>>
>>Bob Lee
>>
>>
>>
>>
>>>Sergey,
>>>
>>>thank you. Excellent.
>>>
>>>Unfortunately, I noticed that ghostscript creates pdf files which are
>>>three times larger that pdf files created by other creators.
>>>
>>>Also, those files are almost unreadable from Adobe PDF reader since
>>>due to the font used (havent tried gsxview, maybe this looks better).
>>>See www.eetasoft.ee/badpdf.zip
>>>
>>>How to fix those issues ?
>>>
>>>
>>>>See GhostScript DLL in VFP -VB translatrion ? Message #658748 for the code.
In the beginning, there was a command prompt, and all was well.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform