Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FoxyPreviewer PDF with unreadable GR chrs
Message
 
To
25/11/2016 15:18:52
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01643896
Message ID:
01643981
Views:
80
myPDFwEmbedwoReplaceFonts.PDF
- all fonts included as TTF, subset.
- font's binary data contains all Greek characters
- Why you can't view Delta char and others? Because in /Differences key harulib generate names for PDF Symbols instead name from font.

myPDFwoEmbedwoReplaceFonts.PDF
- fonts are not embeded
- Why you view Delta char from another font? Because in /Differences key harulib generate names for PDF Symbols instead name from font.

myPDFwReplaceFonts.PDF
- Only Tahoma and Tahoma-bold defined as TTF.
- Other fonts defined as Type1
- Font Arial was replaced by font Helvetica
- Why characters for fonts Arial and Times New Romand has bad width? Because harulib generate bad Widths Array.
- Why characters for font Courier shows square. Because font defined as Type1.
- Why some characters for font Courier shows Greek characters. Because PDF Reader use internal Symbol font.

What can you do? Nothing.

MartinaJ

>>Hi Nick,
>>
>>Your example is not fully run able:
>>1) Running FoxyPreviewer_RespectUserReplaceFonts.app cause error "Cannot load the library libhpdf.dll".
>===>Fixed! see the new attachment with the new "errorPDFGR.pjx" Ver2.
>
>>2) add row _Screen.oFoxyPreviewer.lPDFEmbedFonts=.T.
>===> Please, use the "grear" button, in order to set this...
>
>> before row
>>REPORT FORM errorpdfgr OBJECT TYPE 10 TO FILE "PDFwithEmbedwithoutreplaceFonts.PDF" PREVIEW
>>
>>
>>And I can't confirm bugs for PDFwithoutEmbedwithoutreplaceFonts file.
>>
>>MartinaJ
>>
>>
>>
>>>A very serious problem when saving a report to pdf with greek chrs (CP1253) (and may be for other langs)...
>>>
>>>Just copy-paste somewhere the attached folder "ErrorPdfGR.zip" and run the project, from inside vfp.
>>>Follow the orders at the "wait window" commands... It is self documented...
>>>
>>>I used the last ver of foxypreviewer "v2.99z35 RC 2016.06.11" with lPdfReplaceFonts=.T. (in order to force it to use the internal "basic14" fonts of the libhpdf.dll, for code pages other than 1252, see the "correctionreplacefonts.txt") and .cLanguage="GREEK".
>>>
>>>See the attached file:"PDFwithreplaceFonts.jpg".
>>>
>>>ALL the Greek chrs (CP1253) looks OK, but almost unreadable (one chr is over the other)!!!
>>>A very serious problem for the very common Arial and Times fonts.
>>>The Tahoma fonts are OK, but without inclination.
>>>For Courier fonts almost no Greek chrs.
>>>
>>>In preview window the foxypreviewer displays everything OK! See the "FoxypreviwerOK.jpg" file.
>>>
>>>Trying with lPdfReplaceFonts=.F. and lPDFEmbendFonts=.T., then 3 Greek letters disappeared! The 4th capital letter 'Δ' (DELTA), last capital letter 'Ω' (OMEGA) and the 12th small letter 'µ' (ME).
>>>See the attached file:"PDFwithEmbedwithoutreplaceFonts.jpg".
>>>A very serious problem for Courier and the very common Arial and Times fonts.
>>>From Tahoma bold fonts the last capital letter 'Ω' (OMEGA) is missing also and again without inclination.
>>>
>>>It is a must for me to embed the fonts into pdf, in order to be readable the GR chrs from tablets and Android phones...
>>>
>>>If I use a 3rd party "pdf printer" everything are OK!
>>>
>>>I tried for many days, to find out the origin of the problem, digging into pdflistener class, but no luck...
>>>Is it an internal problem of the libhpdf.dll?
>>>Is it a calling problem to the libhpdf.dll functions?
>>>
>>>The best solution (for my opinion) it would be to find a way, to enlange the space between the greek chrs into pdf, using the basic14 fonts into dll...
>>>But I do not know how to do it!...
>>>
>>>I will appreciate any idea, from where to start, trying to fix the problem.
>>>
>>>Also I noticed that the last ver of libharu is 2.3.0, but the foxypreviewer uses the very old ver 2.0.8.0!!
>>>I downloaded the source of ver 2.3.0 from haru site, but I have no way to compile it, in order to create the new libhpdf.dll.
>>>
>>>Have fun,
>>>Nick Porfyris
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform