Code: Select all
@REQUIRE "polybios", {Version=1, Revision=1}
; Trying to open a non-existent pdf:
ExitOnError(False)
pdf.OpenDocument(1, "PDFReference.pdf.notfound")
ExitOnError(True)
t=pdf.GetLastError()
DebugPrint(t)
; Open an existing pdf:
ExitOnError(False)
pdf.OpenDocument(1, "PDFReference.pdf")
ExitOnError(True)
t=pdf.GetLastError()
DebugPrint(t)
2
2
While on Windows you get:
2
0