We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I reach the content stream with "/Im0 Do" (0 4 obj) in this example?
I tried:
package main import ( "fmt" "github.com/ledongthuc/pdf" ) func main() { pdf.DebugOn = true f, r, err := pdf.Open("test.pdf") defer f.Close() if err != nil { panic(err) } page := r.Page(1) //fmt.Println(r) fmt.Println(page) fmt.Println(page.Content()) return }
Which outputs this:
{<</Contents 4 0 R /MediaBox [0 0 198.75 235.5] /Parent 1 0 R /Resources <</XObject <</Im0 5 0 R>>>> /Type /Page /pdftk_PageNum 1>>} {[] []}
So it doesn't seem to work even though the code has token handling for everything you'd expect from a graphic stack content stream.
So, is it a bug or am I missing something obvious?
Thanks.
p.s. the sample came out of img2pdf and was uncompressed with pdftk to make it more convenient to open with a text editor and debug.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How do I reach the content stream with "/Im0 Do" (0 4 obj) in this example?
I tried:
Which outputs this:
So it doesn't seem to work even though the code has token handling for everything you'd expect from a graphic stack content stream.
So, is it a bug or am I missing something obvious?
Thanks.
p.s. the sample came out of img2pdf and was uncompressed with pdftk to make it more convenient to open with a text editor and debug.
The text was updated successfully, but these errors were encountered: