[fpc-pascal] How do I test the testfppdf on Windows?

silvioprog silvioprog at gmail.com
Sat Mar 5 20:52:38 CET 2016


On Sat, Mar 5, 2016 at 3:58 PM, Michael Van Canneyt <michael at freepascal.org>
wrote:

> On Sat, 5 Mar 2016, silvioprog wrote:
>
>> On Sat, Mar 5, 2016 at 3:38 PM, silvioprog <silvioprog at gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I just created the folder "fonts" and copied the
>>> "C:\Windows\Fonts\arial.ttf" into that, so I changed the line
>>> "D.AddFont('FreeSans.ttf', 'FreeSans-12' to "D.AddFont('arial.ttf',
>>> 'Arial", however, when I try to run the project, I get a SIGSEGV:
>>>
>>>
>> To fix the SIGSEGV, I just disabled the heap (-gh) unit.
>>
>
> Hehe =-)
>
>
>> Now I put all freetype binaries into my example folder, and after run the
>> test, I got a "test.pdf" file about 654KB, but I can't open it on my Adobe
>> Reader XI (latest version):
>>
>> "An error exists on this page. Acrobat may not display the page correctly.
>> Please contact the person who created the PDF document to correct the
>> problem."
>>
>> And got five empty pages.
>>
>
> Hm. I tried many PDF readers on the file. All unix based (okular,
> openoffice), but also the Google docs PDF viewer and Firefox PDF reader.
> All displayed the PDF just fine.
>

Now I tried on Google PDF viewer, no errors, but:

https://dl.dropboxusercontent.com/u/135304375/print.png

(sent a print just to you see how it is showed for me)


> Can you send me the PDF you got ?


It's a pleasure :-)

https://dl.dropboxusercontent.com/u/135304375/test.pdf .

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160305/ea1071e0/attachment.html>


More information about the fpc-pascal mailing list