Comments (4)
Sorry I'm not familiar with tiff, can u show me the full command of converting pdf to tiff with shell and pdftocario for your use case?
from node-pdftocairo.
Hello, what I try is that if a pdf file has several pages, it does not generate a .tiff image for each page of the pdf, the question is if there is any way to do it, that a single .tiff contains all the images
const pdft = require('node-pdftocairo');
async function getTif() {
const inputPath = path.join(__dirname, '/DOCUMENTOS/PRUEBA.pdf');
const options = {
format: 'tiff',
// nocrop: true,
resolution: {
x: 300,
y: 300
},
mono: true,
};
try {
await pdft.input(inputPath, options).output(__dirname + '/PRUEBA');
} catch (error) {
console.log(error);
}
}
getTif();
the file PRUEBA.pdf, has 5 pages, the result of the execution is
-PRUEBA-1.tiff
-PRUEBA-2.tiff
-PRUEBA-3.tiff
-PRUEBA-4.tiff
-PRUEBA-4.tiff
there is no way that it just returns a PRUEBA.tiff with all the pages in a single file, as a compression type, thanks
from node-pdftocairo.
Refer to doc, pdftocairo
does not support this.
Maybe u can find some other libs do this.
from node-pdftocairo.
ok, thanks
from node-pdftocairo.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-pdftocairo.