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

Added property stream #12

Merged
merged 1 commit into from
May 14, 2017
Merged

Added property stream #12

merged 1 commit into from
May 14, 2017

Conversation

dennisschaaf
Copy link
Contributor

Added a property stream function to extract properties from the PDF file. This makes it possible to find out properties such as the number of pages.

scissors(path).propertyStream().on('data', function (d) {
    if (d.event === 'NumberOfPages') {
       console.log('page count ', d.value)
    }
})

Added a property stream function to extract properties from the PDF file. This makes it possible to find out properties such as the number of pages.

    scissors(path).propertyStream().on('data', function (d) {
        if (d.event === 'NumberOfPages') {
           console.log('page count ', d.value)
        }
    })
Copy link
Collaborator

@cboulanger cboulanger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Do you have a link to a list of possible properties that can be retrieved this way?

@dennisschaaf
Copy link
Contributor Author

dennisschaaf commented May 14, 2017 via email

@cboulanger
Copy link
Collaborator

It's not necessary, I was just curious!

@cboulanger cboulanger merged commit e49bcf9 into tcr:master May 14, 2017
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

Successfully merging this pull request may close these issues.

2 participants