Search found 246 matches

by jPV
Tue Jul 16, 2019 11:36 am
Forum: Polybios
Topic: pdf.GetLastError on MorphOS
Replies: 5
Views: 176

Re: pdf.GetLastError on MorphOS

Tipsi wrote:
Mon Jul 15, 2019 10:23 pm
What if you write pdf.GetLastError() immediately after pdf.OpenDocument()?
Didn't make any difference.
by jPV
Mon Jul 15, 2019 8:28 am
Forum: Polybios
Topic: pdf.GetLastError on MorphOS
Replies: 5
Views: 176

Re: pdf.GetLastError on MorphOS

airsoftsoftwair wrote:
Sun Jul 14, 2019 6:01 pm
You must only call pdf.GetLastError() if pdf.OpenDocument() actually failed
Why there is #PDFERR_SUCCESS (No error occurred.) then?
by jPV
Sat Jul 13, 2019 1:07 pm
Forum: Polybios
Topic: Polybios doesn't find links from all PDFs
Replies: 1
Views: 73

Polybios doesn't find links from all PDFs

I have many PDF files where you have some kind of links, they are clickable on VPDF and other readers, but for some reason Polybios doesn't see them. Are there some other kind of links that Polybios doesn't support or why doesn't it find them? For example this file: PDFReference.pdf And this code: @...
by jPV
Sat Jul 13, 2019 12:57 pm
Forum: Polybios
Topic: Links in wrong position with a certain PDF
Replies: 1
Views: 49

Links in wrong position with a certain PDF

I came up with this one PDF file, which gives links in slightly wrong positions with Polybios, but they seem to be in correct positions, for example, with VPDF. So is there something wrong in Polybios regarding this? Here's the file: kamera.pdf This code draws the boxes where the links are... they a...
by jPV
Sat Jul 13, 2019 12:20 pm
Forum: Polybios
Topic: Y-coordinates in PDFs
Replies: 3
Views: 102

Y-coordinates in PDFs

Is there a reason why you get coordinates from pdf.GetRects and pdf.GetPageLinks (and probably elsewhere too) so that origin is at bottom? For example with this PDF: sample-link_1.pdf And this code: @REQUIRE "polybios", {Version=1, Revision=1} pdf.OpenDocument(1, "sample-link_1.pdf") pdf.LoadPage(1,...
by jPV
Sat Jul 13, 2019 11:55 am
Forum: Polybios
Topic: pdf.GetLastError on MorphOS
Replies: 5
Views: 176

pdf.GetLastError on MorphOS

pdf.GetLastError state doesn't seem to reset on MorphOS... if you had a fail, but then open successfully, pdf.GetLastError still shows a fail. @REQUIRE "polybios", {Version=1, Revision=1} ; Trying to open a non-existent pdf: ExitOnError(False) pdf.OpenDocument(1, "PDFReference.pdf.notfound") ExitOnE...
by jPV
Sat Jul 13, 2019 11:33 am
Forum: Polybios
Topic: pdf.GetBookmarks and stack overflow
Replies: 1
Views: 59

pdf.GetBookmarks and stack overflow

I get stack overflow error when trying to get bookmarks from some PDF files. For example with this PDF: PDFReference.pdf And this code: @REQUIRE "polybios", {Version=1, Revision=1} pdf.OpenDocument(1, "PDFReference.pdf") t=pdf.GetBookmarks(1) This happens on both MorphOS and Windows, and increasing ...
by jPV
Fri Jun 28, 2019 6:53 am
Forum: General programming
Topic: how to avoid new OnMouseUp happen from old OnMouseUp?
Replies: 2
Views: 153

Re: how to avoid new OnMouseUp happen from old OnMouseUp?

How about a short example code of the problem? :)
by jPV
Mon Jun 24, 2019 5:34 pm
Forum: Showcase
Topic: RNOPDF
Replies: 17
Views: 2315

Re: RNOPDF

Yeah, have to make an update, but before that I'll finish few things in another program to get that into betatesting stage first :)
by jPV
Wed Jun 12, 2019 6:05 pm
Forum: Newbie questions
Topic: capture cli output
Replies: 8
Views: 1942

Re: capture cli output

Great work \o/