we're getting there
This commit is contained in:
+10
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user