cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Printing a file from my node app

Printing a file from my node app

Tshaniii
Helpful | Level 5

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 4

Tshaniii
Helpful | Level 5

Further, I enable the user the viewing and editing features in my app. Please help me in that as well.

Samuel-088
New 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/

Tshaniii
Helpful | Level 5

thanks samuel!

Greg-DB
Dropbox Staff

@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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Tshaniii Helpful | Level 5
  • User avatar
    Samuel-088 New member | Level 2
What do Dropbox user levels mean?