NewPDF creates a new text loader with an io.Reader.
(r io.ReaderAt, size int64, opts ...PDFOptions)
| 30 | |
| 31 | // NewPDF creates a new text loader with an io.Reader. |
| 32 | func NewPDF(r io.ReaderAt, size int64, opts ...PDFOptions) PDF { |
| 33 | pdf := PDF{ |
| 34 | r: r, |
| 35 | s: size, |
| 36 | } |
| 37 | for _, opt := range opts { |
| 38 | opt(&pdf) |
| 39 | } |
| 40 | return pdf |
| 41 | } |
| 42 | |
| 43 | // getPassword returns the password for the PDF |
| 44 | // it than clears the password on the struct, so it can't be used again |
no outgoing calls
searching dependent graphs…