sambitdash / PDFIO.jl

PDF Reader Library for Native Julia.
Other
127 stars 13 forks source link

How to retrieve text from pdPageExtractText(stdout, page)? #82

Closed flalom closed 4 years ago

flalom commented 4 years ago

I am new in Julia and I am very interested in PDFIO.jl. I am trying to save the text output from the pdPageExtractText(stdout, page) in the text variable but I can't because I get this object: IJulia.IJuliaStdio{Base.PipeEndpoint} IOContext(Base.PipeEndpoint(Base.Libc.WindowsRawSocket(0x0000000000000384) open, 0 bytes waiting))).

Thank you for your help! Can I contribute?

sambitdash commented 4 years ago

String(take!(pdPageExtractText(IOBuffer(), page)))) should work.