Garbled gfx on AmigaOS compatibles with certain file

Discuss PDF file handling with the PDF plugin here
Post Reply
User avatar
jPV
Posts: 757
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Garbled gfx on AmigaOS compatibles with certain file

Post by jPV »

Most PDF files do work fine, but this one gives garbled graphics at least on MorphOS and OS3:
https://jpv.amigaaa.com/test/test.pdf

Here's how it looks like:
https://jpv.amigaaa.com/test/pdftest.png

It looks OK on Windows... so the issue might be only on AmigaOS compatibles, for some reason.

Code: Select all

@REQUIRE "pdf"
@DISPLAY {Width=612, Height=792}

; https://jpv.amigaaa.com/test/test.pdf
f$ = "test.pdf"

pdf.OpenDocument(1, f$)
pdf.GetBrush(1, 1, 1)
DisplayBrush(1, #CENTER, #CENTER)
FreeBrush(1)
pdf.CloseDocument(1)
WaitLeftMouse()
User avatar
airsoftsoftwair
Posts: 5993
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Garbled gfx on AmigaOS compatibles with certain file

Post by airsoftsoftwair »

If it's both on OS3 and MorphOS then it's probably an endian issue, I'll check. Thanks for reporting!
Post Reply