Re: Fix for 687117, Error: /typecheck in --get-- when attempt to view pdf document V1.4

"Igor V. Melichev" <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
I don't understand this patch.
First, the change looks algorithmically equivalent. I'm unclear why does it
fix something.
Second, pdf_sec.ps defines :

% Process the encryption information in the Trailer.
/pdf_process_Encrypt {
  Trailer /Encrypt oget
  /Filter oget /Standard eq not {
  ......
}

Substituting it to the patch, got :

   Trailer /Encrypt knownoget {
     pop
    {
       Trailer /Encrypt oget
       /Filter oget /Standard eq not {
  ......
    } exec
} if

And again it executes "null /Filter oget" ---> Error: /typecheck in --get--.

Igor.



----- Original Message ----- 
From: "Alex Cherepanov" <[email protected]>
To: "gs-code-review" <[email protected]>
Sent: Friday, October 31, 2003 7:10 AM
Subject: [gs-code-review] Fix for 687117, Error: /typecheck in --get-- when
attempt to view pdf document V1.4


> Following the PDF spec ignore "/Encrypt null" entry in the trailer.
>
>


----------------------------------------------------------------------------
----


> Index: gs/lib/pdf_main.ps
> ===================================================================
> RCS file: /cvs/ghostscript/gs/lib/pdf_main.ps,v
> retrieving revision 1.80
> diff -b -u -r1.80 pdf_main.ps
> --- gs/lib/pdf_main.ps 26 Oct 2003 00:52:28 -0000 1.80
> +++ gs/lib/pdf_main.ps 31 Oct 2003 03:51:03 -0000
> @@ -364,7 +364,8 @@
>         } if
>       } loop
>     } ifelse
> -   Trailer /Encrypt known {
> +   Trailer /Encrypt knownoget {
> +     pop
>       pdf_process_Encrypt % signal error
>     } if
>     currentdict end
>


----------------------------------------------------------------------------
----


> _______________________________________________
> gs-code-review mailing list
> [email protected]
> http://www.ghostscript.com/mailman/listinfo/gs-code-review
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.