2026-10-11 16:33:19 +02:00
|
|
|
package pdf_example
|
|
|
|
|
|
2026-10-11 23:01:37 +02:00
|
|
|
import "core:fmt"
|
|
|
|
|
import "core:os"
|
|
|
|
|
|
2026-10-11 16:33:19 +02:00
|
|
|
import pdf "../"
|
|
|
|
|
|
|
|
|
|
main :: proc() {
|
2026-10-11 23:01:37 +02:00
|
|
|
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)
|
2026-10-11 16:33:19 +02:00
|
|
|
}
|