Skip to content

Commit

Permalink
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31530
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 17, 2017
1 parent f1cc2eb commit 070c3fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2017-03-14 7.0.5-3 Cristy <quetzlzacatenango@image...>
* Support namespaces for the security policy.
* Support the -authenticate option for PDF (reference
Counting objects: 7, done.g/discourse-server/viewtopic.php?f=3&t=31530).

2017-03-11 7.0.5-2 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.5-2, GIT revision 19696:da91a7c:20170311.
Expand All @@ -9,8 +11,6 @@
https://github.com/ImageMagick/ImageMagick/issues/393).
* Return proper minima / maxima (reference
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31377).
* Support the -authenticate option for PDF (reference
Counting objects: 7, done.g/discourse-server/viewtopic.php?f=3&t=31530).

2017-03-03 7.0.5-1 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.5-1, GIT revision 19662:b7f455a:20170303.
Expand Down
10 changes: 10 additions & 0 deletions coders/pdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,16 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception)
MagickPathExtent);
if (trimbox != MagickFalse)
(void) ConcatenateMagickString(options,"-dUseTrimBox ",MagickPathExtent);
option=GetImageOption(image_info,"authenticate");
if (option != (char *) NULL)
{
char
passphrase[MagickPathExtent];

(void) FormatLocaleString(passphrase,MagickPathExtent,
"'-sPDFPassword=%s' ",option);
(void) ConcatenateMagickString(options,passphrase,MagickPathExtent);
}
read_info=CloneImageInfo(image_info);
*read_info->magick='\0';
if (read_info->number_scenes != 0)
Expand Down

0 comments on commit 070c3fb

Please sign in to comment.