PolicyError during converting PDF to Image using wand
up vote
-1
down vote
favorite
I am converting PDF to image using Wand. Everything was working fine for few days, my code is below:
img = Image(filename=file, resolution=300)
but today I am getting error:
PolicyError at /path/.pdf
not authorized
`/home/raghavendra/karnataka/scanned_pdf_csv/media/mg3_ItYNfUX.pdf' @
error/constitute.c/ReadImage/412
I am using python.
Thanks
python image pdf
add a comment |
up vote
-1
down vote
favorite
I am converting PDF to image using Wand. Everything was working fine for few days, my code is below:
img = Image(filename=file, resolution=300)
but today I am getting error:
PolicyError at /path/.pdf
not authorized
`/home/raghavendra/karnataka/scanned_pdf_csv/media/mg3_ItYNfUX.pdf' @
error/constitute.c/ReadImage/412
I am using python.
Thanks
python image pdf
are you using mac? trybrew install ghostscriptfirst, or double check that you PATH of the file is correct and that exists
– Dejan Marić
Nov 8 at 13:00
stackoverflow.com/questions/42928765/…
– Dejan Marić
Nov 8 at 13:02
No, i am using Ubuntu.
– raghu
Nov 8 at 13:19
how to edit policy.xml file in ubuntu? Where it is exists?
– raghu
Nov 8 at 13:31
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I am converting PDF to image using Wand. Everything was working fine for few days, my code is below:
img = Image(filename=file, resolution=300)
but today I am getting error:
PolicyError at /path/.pdf
not authorized
`/home/raghavendra/karnataka/scanned_pdf_csv/media/mg3_ItYNfUX.pdf' @
error/constitute.c/ReadImage/412
I am using python.
Thanks
python image pdf
I am converting PDF to image using Wand. Everything was working fine for few days, my code is below:
img = Image(filename=file, resolution=300)
but today I am getting error:
PolicyError at /path/.pdf
not authorized
`/home/raghavendra/karnataka/scanned_pdf_csv/media/mg3_ItYNfUX.pdf' @
error/constitute.c/ReadImage/412
I am using python.
Thanks
python image pdf
python image pdf
edited Nov 8 at 13:45
Dejan Marić
436112
436112
asked Nov 8 at 12:56
raghu
13535
13535
are you using mac? trybrew install ghostscriptfirst, or double check that you PATH of the file is correct and that exists
– Dejan Marić
Nov 8 at 13:00
stackoverflow.com/questions/42928765/…
– Dejan Marić
Nov 8 at 13:02
No, i am using Ubuntu.
– raghu
Nov 8 at 13:19
how to edit policy.xml file in ubuntu? Where it is exists?
– raghu
Nov 8 at 13:31
add a comment |
are you using mac? trybrew install ghostscriptfirst, or double check that you PATH of the file is correct and that exists
– Dejan Marić
Nov 8 at 13:00
stackoverflow.com/questions/42928765/…
– Dejan Marić
Nov 8 at 13:02
No, i am using Ubuntu.
– raghu
Nov 8 at 13:19
how to edit policy.xml file in ubuntu? Where it is exists?
– raghu
Nov 8 at 13:31
are you using mac? try
brew install ghostscript first, or double check that you PATH of the file is correct and that exists– Dejan Marić
Nov 8 at 13:00
are you using mac? try
brew install ghostscript first, or double check that you PATH of the file is correct and that exists– Dejan Marić
Nov 8 at 13:00
stackoverflow.com/questions/42928765/…
– Dejan Marić
Nov 8 at 13:02
stackoverflow.com/questions/42928765/…
– Dejan Marić
Nov 8 at 13:02
No, i am using Ubuntu.
– raghu
Nov 8 at 13:19
No, i am using Ubuntu.
– raghu
Nov 8 at 13:19
how to edit policy.xml file in ubuntu? Where it is exists?
– raghu
Nov 8 at 13:31
how to edit policy.xml file in ubuntu? Where it is exists?
– raghu
Nov 8 at 13:31
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53208207%2fpolicyerror-during-converting-pdf-to-image-using-wand%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
are you using mac? try
brew install ghostscriptfirst, or double check that you PATH of the file is correct and that exists– Dejan Marić
Nov 8 at 13:00
stackoverflow.com/questions/42928765/…
– Dejan Marić
Nov 8 at 13:02
No, i am using Ubuntu.
– raghu
Nov 8 at 13:19
how to edit policy.xml file in ubuntu? Where it is exists?
– raghu
Nov 8 at 13:31