Skip to content

Commit

Permalink
Merge pull request #46 from klippa-app/feature/implement-fpdf_structtree
Browse files Browse the repository at this point in the history
Implement struct tree
  • Loading branch information
jerbob92 authored Feb 13, 2022
2 parents 631a5c4 + b840d2a commit 28fd36d
Show file tree
Hide file tree
Showing 18 changed files with 2,083 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

* Option between single-threaded and multi-threaded (through subprocesses), while keeping the same interface
* This library will handle all complicated cgo gymnastics for you
* The goal is to implement all PDFium public API methods (including [experimental](#experimental)), current progress: 46%
* The goal is to implement all PDFium public API methods (including [experimental](#experimental)), current progress: 50%
* Current PDFium methods exposed, no cgo required
* PDFium instance configuration (sandbox policy, fonts)
* Document loading (from bytes, path or io.ReadSeeker)
Expand All @@ -39,11 +39,11 @@
* Transformations (page boxes, clip paths)
* Progressive rendering
* Document loading through data availability (loading data as needed)
* Methods to be implemented:
* Page/Page object editing
* Form filling
* Annotations
* Struct trees
* Methods to be implemented:
* Page/Page object editing (fpdf_edit.h)
* Form filling (fpdf_formfill.h)
* Annotations (fpdf_annot.h)
* Methods that won't be implemented for now:
* fpdf_sysfontinfo.h (probably too complicated)
* Useful helpers to make your life easier:
Expand Down
5 changes: 5 additions & 0 deletions check_implementation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ func main() {
methodParts := strings.SplitN(method, "(", 2)
method = methodParts[0]

// Skip methods that should never be implemented.
if method == "FPDF_InitLibrary" || method == "FPDF_InitLibraryWithConfig" || method == "FPDF_DestroyLibrary" {
continue
}

methodCount++
if _, ok := implementedMethods[method]; !ok {
fmt.Println(method)
Expand Down
Loading

0 comments on commit 28fd36d

Please sign in to comment.