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

Add option to import whole PDF #9

Closed
HowToGibbon opened this issue Oct 7, 2021 · 2 comments
Closed

Add option to import whole PDF #9

HowToGibbon opened this issue Oct 7, 2021 · 2 comments

Comments

@HowToGibbon
Copy link

HowToGibbon commented Oct 7, 2021

For inserting whole pdf's it would be neat to have the possibility to add a whole pdf.
Maybe make this the default instead of 1 #page.
Since I'm new to contributing on GitHub I pasted the code below, which I would add on Line 37 in main.ts:

// page parameter as trigger for whole pdf, 0 = all pages
if (parameters.page === 0){
    var pagesArray = [];
    for(var i = 1;i <= pdfjs.getDocument(buffer).numPages; i++){
      pagesArray.push(i);
    }
    parameters.page = pagesArray;
}
@dummifiedme
Copy link

You can fork the repository, make changes and then raise a pull request :)
Else, we would have to wait :D

@ironfroggy
Copy link

I came here to look for exactly this. Any chance of an update with this addition?

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