Write some Software

In Progress Posted 7 years ago Paid on delivery
In Progress Paid on delivery

I used the following modules (on server-side) and successfully generated a pdf in local directory, but when uploading to AWS S3, the file cannot be opened.

var PdfPrinter = require('pdfmake');

var printer = new PdfPrinter(fonts);

var docDefinition = {

content: [

...

]

};

var pdfDoc = [url removed, login to view](docDefinition);

var fs = require('fs');

[url removed, login to view]([url removed, login to view]('pdfs/[url removed, login to view]'));

[url removed, login to view]();

var s3Params = {

Bucket: 'some_bucket',

Key: '[url removed, login to view]',

Body: pdfDoc,

Expires: 60,

ContentType: 'application/pdf'

};

[url removed, login to view](s3Params, function(err,res){

} ...

Need help with (1) successfully uploading pdf to AWS S3 from server-side and (2) downloading objects from a protected AWS S3 bucket from client side using getObjects [want to first get a signed url first before getting object].

This should probably be a simple job that takes only a few lines of code to get working...

Amazon Web Services Node.js

Project ID: #11221615

About the project

2 proposals Remote project Active 7 years ago

Awarded to:

VlaPo

Hi, My name is Vladimir and I am nodejs developer over 4 years. I have a rich experience with PDF generation in general for printing by professional software and of course for printing stats and human readable docume More

$100 SGD in 1 day
(3 Reviews)
2.3