Search found 6 matches

by Roberto
2019-07-16T13:02:08-07:00
Forum: Users
Topic: conversion to pdf using aws lambda / node.js does not work
Replies: 11
Views: 24911

Re: conversion to pdf using aws lambda / node.js does not work

Hi fmw42.
No, from what I saw, in the instance where the function runs, the policy.xml file is not enabled to work with PDF files.
I am looking to see if it is possible to somehow change the aws lambda instance policy.xml configuration.

Regards
by Roberto
2019-07-16T10:46:19-07:00
Forum: Users
Topic: conversion to pdf using aws lambda / node.js does not work
Replies: 11
Views: 24911

Re: conversion to pdf using aws lambda / node.js does not work

Hi guys,
Just to inform, in the AWS Lambda instance I have the follow:

for "identify -list policy" command:

/var/task\n\nPath: [built-in]\n
Policy: Undefined\n
rights: None \n
Path: /etc/ImageMagick/policy.xml\n
Policy: Coder\n
rights: None \n
pattern: EPHEMERAL\n
Policy: Coder\n
rights ...
by Roberto
2019-07-16T10:23:53-07:00
Forum: Users
Topic: conversion to pdf using aws lambda / node.js does not work
Replies: 11
Views: 24911

Re: conversion to pdf using aws lambda / node.js does not work

Thanks fmw42.

In the policy.xml file I have the following lines:
</policymap>
<policy domain="module" rights="read|write" pattern="{EPS,PS2,PS3,PS,PDF,XPS}" />
<policy domain="module" rights="read|write" pattern="{GIF,JPEG,PNG,WEBP,JPG`}" />
<policy domain="coder" rights="read|write" pattern ...
by Roberto
2019-07-16T06:26:12-07:00
Forum: Users
Topic: conversion to pdf using aws lambda / node.js does not work
Replies: 11
Views: 24911

Re: conversion to pdf using aws lambda / node.js does not work

Thanks snibgo and fmw42.
I just strange that I can do size conversions and apply profile files, but conversion to PDF did not work.
I'll do some more testing, thank you.
by Roberto
2019-07-15T11:21:31-07:00
Forum: Users
Topic: conversion to pdf using aws lambda / node.js does not work
Replies: 11
Views: 24911

Re: conversion to pdf using aws lambda / node.js does not work

Hi Guys.
Has anyone ever converted a ".jpg" or ".png" image file to PDF using imagemagick with AWS lambda?
Using the command line in my computer I can do the conversion normally but via AWS Lambda does not.

Basically I'm reading an image file from AWS S3 and saving in the /tmp. Then I execute the ...
by Roberto
2019-07-04T07:55:47-07:00
Forum: Users
Topic: conversion to pdf using aws lambda / node.js does not work
Replies: 11
Views: 24911

conversion to pdf using aws lambda / node.js does not work

I am new to imagemagick and am trying to convert ".png" and ".jpg" image files to pdf using an aws lambda / node.js function, but the result is a file without the pdf files header.
Can anyone tell me if there is any restriction for this?
I am reading a file from aws S3, saving in /tmp and then ...