Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Tshaniii
3 years agoHelpful | Level 5
Printing a file from my node app
Hi,
In my application I want to print a file from dropbox using my node application. Based on some parameters i want to add a watermark to the file i get from dropbox and then print it. So is there a way to get this file as a inputstream or something where i can add the watermark. or is there any feature that supports this/
const access_token = accessUser.dropboxAccessToken;
var dbx = new Dropbox({ accessToken: access_token });
if (ext=='docx' ||ext=='doc' ){
const docx = officegen('docx');
docx.on('finalize', function (written) {
console.log('Finished writing to Word document');
});
docx.on('error', function (err) {
console.log(err);
});
const pObj = docx.createP();
pObj.addText(watermarkText, {
font_face: 'Arial',
bold: true,
font_size: 24,
color: 'eeeeee'
});
// input stream is the read stream?
outputstream is the write stream
inputStream.pipe(docx).pipe(outputStream);
}
4 Replies
- Tshaniii3 years agoHelpful | Level 5
Further, I enable the user the viewing and editing features in my app. Please help me in that as well.
- Samuel-0883 years agoNew member | Level 2
Using Faceitfinder, players can better understand their opponents elo ranking, including
Discover the opponent’s real skillset and whether he is cheating or too good
Account history on Faceit
Carefully selecting teams
Gaining a better understanding of premade lobbies’ players
Detailed information about matches and maps
Verify that your Steam ID is linked to your Faceit account https://faceitaccount.com/ - Tshaniii3 years agoHelpful | Level 5
thanks samuel!
- Greg-DB3 years ago
Dropbox Community Moderator
Tshaniii Yes, as Samuel-088 said, you can use the Dropbox SDK to download a file, and then you can use that downloaded file data however you need. For reference, to download a file using the Dropbox JavaScript SDK in Node, you would use the filesDownload method.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!