Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
NODEJS This package allows you to convert a PDF to any image format (png, jpg, gif, ...) in very good quality
Ce package permet de convertir un PDF en n'importe quels formats d'image (png, jpg, gif, ...) en très bonne qualité. le package avec la meilleure qualité de rendu, après avoir essayé plusieurs packages les qualités de rendu était horrible du coup j'ai décidé de créer ce package qui ressoudera ce souci a plus d'une personne 😉.
Si vous voulez une version pour convertir avec express js envoyez moi un message sur github ou faite un issues pour me le faire savoir
Avant tout il faut installer le package sur npm ou github avec la commande suivante
npm install pdftopic
Ensuite après avoir installé le package il vous suffira d'importer dans votre code Javascript la partie suivante pour cet exemple je souhaite convertir un fichier PDF en format PNG
const { pdftobuffer } = require('pdftopic');
const fs = require('fs');
const pdf = fs.readFileSync('./ilyes.pdf', null);
pdftobuffer(pdf, 0).then((buffer) => {
fs.writeFileSync('./ilyes.png', buffer, null);
})
Ensuite tu trouveras ton fichier converti avec ton extension pour ma part PNG
Avant
Après
This package allows you to convert a PDF to any image formats (png, jpg, gif, ...) in very good quality. the package with the best rendering quality, after trying several packages the rendering qualities were horrible so I decided to create this package which will solve this problem for more than one person 😉.
If you want a version to convert with express js send me a message on github or do an issues to let me know
First of all you have to install the package on npm or github with the following command
npm install pdftopic
Then after installing the package, you just need to import the following part into your Javascript code. For this example, I want to convert a PDF file to PNG format.
const { pdftobuffer } = require('pdftopic');
const fs = require('fs');
const pdf = fs.readFileSync('./ilyes.pdf', null);
pdftobuffer(pdf, 0).then((buffer) => {
fs.writeFileSync('./ilyes.png', buffer, null);
})
Then you will find your converted file with your extension for my part PNG
Before
After
Este paquete te permite convertir un PDF a cualquier formato de imagen (png, jpg, gif, ...) en muy buena calidad. el paquete con la mejor calidad de renderizado, después de probar varios paquetes las calidades de renderizado eran horribles, así que decidí crear este paquete que resolverá este problema para más de una persona 😉.
Si desea una versión para convertir con express js, envíeme un mensaje en github o haga un problema para avisarme
En primer lugar, debe instalar el paquete en npm o github con el siguiente comando
npm install pdftopic
Luego, después de instalar el paquete, solo necesita importar la siguiente parte en su código Javascript para este ejemplo. Quiero convertir un archivo PDF a formato PNG.
const { pdftobuffer } = require('pdftopic');
const fs = require('fs');
const pdf = fs.readFileSync('./ilyes.pdf', null);
pdftobuffer(pdf, 0).then((buffer) => {
fs.writeFileSync('./ilyes.png', buffer, null);
})
Luego encontrará su archivo convertido con su extensión para mí PNG
Antes
Después
FAQs
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 pr
The npm package pdftopic receives a total of 1,051 weekly downloads. As such, pdftopic popularity was classified as popular.
We found that pdftopic demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.