we're getting there

This commit is contained in:
2026-10-11 23:01:37 +02:00
parent 83202070c7
commit 75ff309073
2 changed files with 31 additions and 3 deletions
+10 -1
View File
@@ -1,7 +1,16 @@
package pdf_example
import "core:fmt"
import "core:os"
import pdf "../"
main :: proc() {
pdf.open_file("example.pdf")
doc, err := pdf.open_file(os.args[1])
defer pdf.destroy_document(doc)
if err != nil {
fmt.panicf("Failed to open PDF file: %v", err)
}
fmt.println(doc)
}