Coder Social home page Coder Social logo

Comments (6)

Clauzzz avatar Clauzzz commented on June 13, 2024 1

Hey ! I found the fix. I tried making a branch and pushing it myself but it didn't allow me to push.
Anyways, in the function identify, where you do
return resolve(data.replace(/^[\w\W]+?1/, "1"))
if you replace "+" with "*" it should fix it. Like so:
return resolve(data.replace(/^[\w\W]*?1/, "1"))

from pdf2image.

Jim-IndRez avatar Jim-IndRez commented on June 13, 2024

I am seeing this behavior as well.

Based on my testing, it appears to be fine on pdf files < 10 pages long, but on longer files it starts dropping pages.

Here is a workaround that works for me: Basically you pass in an array of n numbers, where n is the number of pages in the file.

const pageArray = [1, 2, 3...n]


pdf2pic.convertBulk(pdfPath, pageArray)

from pdf2image.

yakovmeister avatar yakovmeister commented on June 13, 2024

Hi @Clauzzz , thanks mate. I'll publish some changes within the week.

from pdf2image.

yakovmeister avatar yakovmeister commented on June 13, 2024

@Clauzzz alternatively you can try forking the repo and creating a pull request towards 1.0 branch.

from pdf2image.

yakovmeister avatar yakovmeister commented on June 13, 2024

merged pull request: 3f15944

from pdf2image.

yakovmeister avatar yakovmeister commented on June 13, 2024

published new version, closing this now.

from pdf2image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.