Search found 603 matches

by jPV
Sat Jul 13, 2019 12:57 pm
Forum: Polybios
Topic: Links in wrong position with a certain PDF
Replies: 1
Views: 4936

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: 6039

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&qu...
by jPV
Sat Jul 13, 2019 11:55 am
Forum: Polybios
Topic: pdf.GetLastError on MorphOS
Replies: 5
Views: 7567

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.not...
by jPV
Sat Jul 13, 2019 11:33 am
Forum: Polybios
Topic: pdf.GetBookmarks and stack overflow
Replies: 1
Views: 4992

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 Wind...
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: 2349

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: 33
Views: 31445

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: 6715

Re: capture cli output

Great work \o/
by jPV
Tue Jun 11, 2019 9:24 pm
Forum: Newbie questions
Topic: How handle dates to make a little agenda?
Replies: 10
Views: 7029

Re: How handle dates to make a little agenda?

for example something like this: addressbook = { {name="Juan", phone="0815", address="One Way 10", email="jc@gmail.com"}, {name="Andreas", phone="1337", address="AllWays 43", email="andreas@hw.com"} } ; Print names and e...
by jPV
Tue Jun 11, 2019 5:22 pm
Forum: Newbie questions
Topic: How handle dates to make a little agenda?
Replies: 10
Views: 7029

Re: How handle dates to make a little agenda?

Does it have to be human readable text files? If not, you could use WriteTable() and ReadTable() to get a really easy solution.
by jPV
Tue May 28, 2019 10:09 am
Forum: General programming
Topic: Control if file is used before deletefile()
Replies: 7
Views: 4877

Re: Control if file is used before deletefile()

You can disable the internal error handler before trying to delete a file, check yourself if it failed, and enable the error handler again after that. If you're using it often, maybe it's better to write an own delete function, like this: Function p_DeleteFile(file$) Local code ExitOnError(False) De...