You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Tshaniii's avatar
Tshaniii
Helpful | Level 5
2 years ago

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);
    }
  • Tshaniii's avatar
    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's avatar
    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/

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox 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.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 11 days ago
334 Following

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 or Facebook.

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!