Skip to content
New issue

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

pdf.contentStream(), pdf.textStream() and pdf.propertyStream() have no output #33

Open
dasblitz opened this issue Jan 30, 2018 · 2 comments

Comments

@dasblitz
Copy link

dasblitz commented Jan 30, 2018

#Hi!

I'm trying this lib and although I can get this to work:

pdf
  .pdfStream()
  .pipe(fs.createWriteStream('out.pdf'))
  .on('finish', function() {
    console.log("We're done!")
  })
  .on('error', function(err) {
    throw err
  })

The following shows nothing (same goes for contentStream and propertyStream):

pdf
  .textStream()
  .on('data', function(data) {
    console.log(data)
  })

The following works, although it exits with an error "Error: write EPIPE"

pdf.pngStream(300).pipe(fs.createWriteStream('out-page1.png'));

I'm not to familiar with streams so I'm wondering if I'm doing something wrong?

@yusef-ho
Copy link

I have the same issue

@cboulanger
Copy link
Collaborator

Sorry all for not responding. We're unable to actively work on the project at the moment (and to work on the bugs you report), but happy to merge PRs if you find a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants