Giter Site home page Giter Site logo

ilyes-el-majouti / pdftopic Goto Github PK

View Code? Open in Web Editor NEW
25.0 2.0 5.0 3.14 MB

Built for Node.js, this package empowers users to effortlessly convert PDF files into images of exceptional quality, supporting multiple formats including PNG, JPG, GIF, and others. Its streamlined functionality ensures a smooth and reliable conversion process, providing users with the flexibility to obtain top-notch images from their PDF documents

License: Apache License 2.0

JavaScript 100.00%
image jpeg jpg pdf-to-image pdf-to-image-nodejs pdf-to-jpg pdf2png pdftoimage pdftoimages pdftopng

pdftopic's Introduction

👨‍💻 À propos de moi

⛳ Je suis développeur FullStack, j'aime créer et avoir un résultat à la hauteur de mes attentes. Souriant, bon vivant, sportif et sociable j'apprécie être confronté à de nouveaux challenges. Je suis un travailleur acharné qui n'abandonne pas au premier obstacle. Tout problèmes à sa solution et je suis la solution à votre problème.
👯 Pour toutes collaborations dans des projets, Contactez-moi par mail
📫 Contactez-moi à cette adresse mail [email protected]


-> ~/Ilyes-El-Majouti git:(main) > ./competences.sh

🚀 Langages

XAML

🧩 Bibliothèques et Framework

React Xamarin Chart.js

💼 Package Manager

Base de données

MySQL

🧑🏻‍💻 Outils et plate-forme

💻 Espace de travail


pdftopic's People

Contributors

ilyes-el-majouti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pdftopic's Issues

Too many magick processes

Hi

Tool works great for my use-case. Thanks!

Got a problem though.
For big PDF documents this code

const promises = Array.from(Array.isArray(page) ? page : { length: pdfcount }, (_, index) => imagemagickconverter(pdf, Array.isArray(page) ? _ : index, progress ? bar : null));
return Promise.all(promises);

is pretty much killing my system by hundreds of magick processes.

Would be nice to use something like p-limit to make it possible to limit number of processes.

Error: write EOF from ImageMagick

Ignore the error in ImageMagick.:
������ - 200

Error:
Error: write EOF from ImageMagick
\projects\middleearth_tax_new\node_modules_imagemagick-stream@4.1.1@imagemagick-stream\index.js:274
if (!this.listeners('error')) throw err;
^

TypeError: this.listeners is not a function
at Object.onerror (\projects\middleearth_tax_new\node_modules_imagemagick-stream@4.1.1@imagemagick-stream\index.js:274:16
)
at imagemagickstream.onerror (\projects\middleearth_tax_new\node_modules_pdftopic@1.0.1-alpha@pdftopic\index.js:25:17)
at Socket.emit (node:events:526:35)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v18.17.0

Process finished with exit code 1

Error in sharp_lib while using "bufferstoappend" function

When we use "bufferstoappend" function it calls the "getDimmentions" function, which returns an object with the key - "channels": the number of elements in the dimensions array, corresponding to the number of images processed. After this, the "channels" key and its value are passed to the "sharp" library, which throws the exception "Expected number between 3 and 4 for create.channels but received "the number of elements" of type number". Perhaps the library expects the number of image channels (RGB)?

ImageMagick Error (Resolved)

Docker FROM node:16-slim

Error Message:
Ignore the error in ImageMagick.: convert-im6.q16: attempt to perform an operation not allowed by the security policy PDF' @ error/constitute.c/IsCoderAuthorized/408.
convert-im6.q16: no images defined png:-' @ error/convert.c/ConvertImageCommand/3258.

how to fix.
Thanks.

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.