ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: ConTeXt tool for enabling comments in PDF ?
@ 2005-05-31  7:22 Joachim Schlosser
  0 siblings, 0 replies; 27+ messages in thread
From: Joachim Schlosser @ 2005-05-31  7:22 UTC (permalink / raw)


> Vit Zyka wrote (long long ago in January):
>> how is that one calculated, imagine that in the %! fields you fill in 
>> placeholders like hereshouldgosomemagiccode, then one can run a script 
>> over the pdf, calculate that magic, and replace the string; maybe this 
>> can be hooked into  xpdflib
> Yes, I agree, postprocessing is possible. But I did not find any digest 
> computing alg in the range of C/C++ or Perl. Also do not known links to 
> xpdflib.
> 
> Vit Zyka

One can sign PDFs with iText (http://itextpdf.sourceforge.net/).
Perhaps this helps a little bit further. I experimented a little bit,
but my knowledge on PDF internas is not yet in a state that allows me
to be quite creative here :-)

Joachim
-- 
Joachim Schlosser
(The e-mail address is fully repliable.)
http://schlosser.info

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
@ 2005-05-28 11:28 Joachim Schlosser
  0 siblings, 0 replies; 27+ messages in thread
From: Joachim Schlosser @ 2005-05-28 11:28 UTC (permalink / raw)


> Vit Zyka wrote (long long ago in January):
>> how is that one calculated, imagine that in the %! fields you fill in 
>> placeholders like hereshouldgosomemagiccode, then one can run a script 
>> over the pdf, calculate that magic, and replace the string; maybe this 
>> can be hooked into  xpdflib
> Yes, I agree, postprocessing is possible. But I did not find any digest 
> computing alg in the range of C/C++ or Perl. Also do not known links to 
> xpdflib.
> 
> Vit Zyka

One can sign PDFs with iText (http://itextpdf.sourceforge.net/).
Perhaps this helps a little bit further. I experimented a little bit,
but my knowledge on PDF internas is not yet in a state that allows me
to be quite creative here :-)

Joachim
-- 
Joachim Schlosser
(The e-mail address is fully repliable.)
http://schlosser.info

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-18  9:47                       ` h h extern
@ 2005-01-20 13:58                         ` Vit Zyka
  0 siblings, 0 replies; 27+ messages in thread
From: Vit Zyka @ 2005-01-20 13:58 UTC (permalink / raw)


h h extern wrote:
> Vit Zyka wrote:
> 
>> So, to do that, pdfTeX should start to calc document diggest and there 
>> should be standard(?) process of signing this value.
> 
> how is that one calculated, imagine that in the %! fields you fill in 
> placeholders like hereshouldgosomemagiccode, then one can run a script 
> over the pdf, calculate that magic, and replace the string; maybe this 
> can be hooked into  xpdflib
> 
> Hans

Yes, I agree, postprocessing is possible. But I did not find any digest 
computing alg in the range of C/C++ or Perl. Also do not known links to 
xpdflib.

Vit Zyka

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-17 19:05                     ` Vit Zyka
@ 2005-01-18  9:47                       ` h h extern
  2005-01-20 13:58                         ` Vit Zyka
  0 siblings, 1 reply; 27+ messages in thread
From: h h extern @ 2005-01-18  9:47 UTC (permalink / raw)


Vit Zyka wrote:

> So, to do that, pdfTeX should start to calc document diggest and there 
> should be standard(?) process of signing this value.

how is that one calculated, imagine that in the %! fields you fill in 
placeholders like hereshouldgosomemagiccode, then one can run a script over the 
pdf, calculate that magic, and replace the string; maybe this can be hooked into 
  xpdflib

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-06 14:39                   ` Hans Hagen
@ 2005-01-17 19:05                     ` Vit Zyka
  2005-01-18  9:47                       ` h h extern
  0 siblings, 1 reply; 27+ messages in thread
From: Vit Zyka @ 2005-01-17 19:05 UTC (permalink / raw)
  Cc: pdftex

Hans Hagen wrote:
> Vit Zyka wrote:
> 
> interesting is that the doc opens but the menu bar freezes -)
> 
> \starttext
> 
> \startcomment should work in older readers as well \stopcomment \input 
> bryson
> 
> \pdfcompresslevel=0
> 
> \immediate\pdfobj{<< /Type /Sig /Filter /Identity /P 2 >>} 
> \edef\DocMDPobj{\the\pdflastobj\space 0 R }
> \immediate\pdfobj{<< /Type /Sig /Filter /Identity /P 2 >>} \edef\URRRobj 
> {\the\pdflastobj\space 0 R }
> 
> \pdfcatalog{/Perms << /DocMDP \DocMDPobj /UR3 \URRRobj>>}
> 
> \stoptext

A have had a second look at the Document Permitions. AFAIK and if Adobe 
does not have some bitter secret the situation is as follow:

1) if you want to permit additional document rights available in AR 6,7 
(like commenting, saving, loading  and sending form data) you need to 
sign document. (pgs. 684-700)

2) to sign document you need a) privat/public key generator and b) 
calculate document diggest (number; sum of integers from (nearly) all 
doc dictionary keys and values; alg. p. 1037).

Bellow is the document skeleton for that. There should be:
1) filled the comment lines started by %! (diggest and signature values)
2) perhaps also %? (depends on %!)
3) perhaps the FormSig field is not needed ???

So, to do that, pdfTeX should start to calc document diggest and there 
should be standard(?) process of signing this value.

Vitek Zyka

------------------------------------------------------------------
\pdfoptionpdfminorversion=6
\pdfcompresslevel=0

\def\defObj#1#2{%
   \immediate\pdfobj{#2}%
   \edef#1{\the\pdflastobj\space 0 R }%
}

%--- MDP
\defObj\objTransformParamsMDP{<<
   /Type /TransformParams /P 3 /V /1.2
 >>}

\defObj\objSigRefMDP{<<
   /Type /SigRef /TransformMethod /DocMDP
   /TransformParams \objTransformParamsMDP
%!  /DigestMethod ? /MD5 | /SHA1
%!?  /DigestValue ? ()
%!?  /DigestLocation [? ?]
 >>}

%--- UR
\defObj\objTransformParamsUR{<<
   /Type /TransformParams
   /Document [/FullSave]
   /V /2.2
   /Annots [/Create /Delete /Modify /Copy /Import /Export] % if UR3 also 
/Online /SummaryView
   /Form [/FillIn /Import /Export /SubmitStandalone /SpawnTemplate]
%  /Signature [/Modify]
   /P false
 >>}

\defObj\objSigRefUR{<<
   /Type /SigRef /TransformMethod /DocUR
   /TransformParams \objTransformParamsUR
%!  /DigestMethod ? /MD5 | /SHA1
%!?  /DigestValue ? ()
%!?  /DigestLocation [? ?]
 >>}

%--- Sig
\defObj\objSig{<<
   /Type /Sig
%!  /Filter Adobe.PPKLite | Entrust.PPKEF | CICI.SignIt | VeriSign.PPKVS
%?  /SubFilter adbe.x509.rsa_sha1 | adbe.pkcs7.detached | adbe.pkcs7.sha1
%  /Cert [] | () % only if /SubFilter adbe.x509.rsa_sha1
%  /Contents (?)
   /Reference [
%  	\objSigRefMDP
     \objSigRefUR
   ]
%  /ByteRange [0 0] % should if used UR3 then can be ommited DiggestValue
   /V 1
 >>}

%--- Perms
\defObj\objPerms{<<
   /DocMDP \objSig
   /UR \objSig
%  /UR3 \objSig
 >>}

%--- Sign Form
\defObj\objFormSigField{<<
   /FT /Sig
   /T (SigFieldName)
   /V \objSig
 >>}
\defObj\objForm{<<
  /Fields [\objFormSigField]
 >>}

\pdfcatalog{/AcroForm \objForm /Perms \objPerms}

\starttext
   \startcomment should work in older readers as well \stopcomment
   \input bryson
\stoptext
----------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-06 12:43                 ` Vit Zyka
  2005-01-06 14:05                   ` Hans Hagen
@ 2005-01-06 14:39                   ` Hans Hagen
  2005-01-17 19:05                     ` Vit Zyka
  1 sibling, 1 reply; 27+ messages in thread
From: Hans Hagen @ 2005-01-06 14:39 UTC (permalink / raw)


Vit Zyka wrote:

interesting is that the doc opens but the menu bar freezes -)

\starttext

\startcomment should work in older readers as well \stopcomment \input bryson

\pdfcompresslevel=0

\immediate\pdfobj{<< /Type /Sig /Filter /Identity /P 2 >>} 
\edef\DocMDPobj{\the\pdflastobj\space 0 R }
\immediate\pdfobj{<< /Type /Sig /Filter /Identity /P 2 >>} \edef\URRRobj 
{\the\pdflastobj\space 0 R }

\pdfcatalog{/Perms << /DocMDP \DocMDPobj /UR3 \URRRobj>>}

\stoptext




-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-06 12:43                 ` Vit Zyka
@ 2005-01-06 14:05                   ` Hans Hagen
  2005-01-06 14:39                   ` Hans Hagen
  1 sibling, 0 replies; 27+ messages in thread
From: Hans Hagen @ 2005-01-06 14:05 UTC (permalink / raw)


Vit Zyka wrote:

> And sorry for a bit out of ConTeXt topic. Hans, is it time to move to 
> the pdftex list?

no problem, that way users see that things are not always trivial; and ... the 
pdftex list nowadays is mostly a latex howto list

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-06 12:40       ` Henning Hraban Ramm
@ 2005-01-06 13:24         ` Mark Smith
  0 siblings, 0 replies; 27+ messages in thread
From: Mark Smith @ 2005-01-06 13:24 UTC (permalink / raw)


Henning Hraban Ramm wrote:

>I'd like to, but there's no german Acrobat 7 yet, and I won't buy an 
>english one.

Interesting. I'm in Germany too and am currently having trouble getting an international English version of 7 Pro at the education price. A German one is on offer.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-06 10:44               ` Hans Hagen
@ 2005-01-06 12:43                 ` Vit Zyka
  2005-01-06 14:05                   ` Hans Hagen
  2005-01-06 14:39                   ` Hans Hagen
  0 siblings, 2 replies; 27+ messages in thread
From: Vit Zyka @ 2005-01-06 12:43 UTC (permalink / raw)


>> No. You wrote that this possibility is mentioned somewhere. Where?
> 
> in the pdf specs

Hmmm. I can find only (p. 92 1.6spec):
   "The absence of this entry (/Encrypt) from the trailer dictionary
    means that the document is not encrypted."

It seems to me now that rights without passwords relies with
/Perms in catalog (p.117, 699) and signatures (p.684).
Something like:

-----------------------------
\pdfcompresslevel=0

\immediate\pdfobj
   {<< /Type /Sig
       /Filter % something from Adobe.PPKLite Entrust.PPKEF CICI.SignIt 
VeriSign.PPKVS
       /Contents % signature
       /ByteRange %?? UR3 in /Perms
       /P -4
    >>}
\edef\DocMDPobj{\the\pdflastobj\space 0 R }
\immediate\pdfobj
   {<< /Type /Sig
       /Filter % something from Adobe.PPKLite Entrust.PPKEF CICI.SignIt 
VeriSign.PPKVS
       /Contents % signature
       /ByteRange %?? UR3 in /Perms
       /P -4
    >>}
\edef\URRRobj{\the\pdflastobj\space 0 R }
\pdfcatalog{/Perms << /DocMDP \DocMDPobj /UR3 \URRRobj >> }

Hallo
\end
------------------------------

Sorry for uncomplete code, but I have not studied the signatures yet.
And sorry for a bit out of ConTeXt topic. Hans, is it time to move to 
the pdftex list?

Vit Zyka

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-06 10:02     ` Hans Hagen
@ 2005-01-06 12:40       ` Henning Hraban Ramm
  2005-01-06 13:24         ` Mark Smith
  0 siblings, 1 reply; 27+ messages in thread
From: Henning Hraban Ramm @ 2005-01-06 12:40 UTC (permalink / raw)


Am 06.01.2005 um 11:02 schrieb Hans Hagen:
>> You need Acrobat 7 Pro to enable "Reader Extensions" for a document, 
>> afterwards you can comment PDFs with Reader 6 or 7
> can you make me a small document that has the reader extensions 
> enabled?

I'd like to, but there's no german Acrobat 7 yet, and I won't buy an 
english one.

Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-06 10:10             ` Vit Zyka
@ 2005-01-06 10:44               ` Hans Hagen
  2005-01-06 12:43                 ` Vit Zyka
  0 siblings, 1 reply; 27+ messages in thread
From: Hans Hagen @ 2005-01-06 10:44 UTC (permalink / raw)


Vit Zyka wrote:
>> can you make a file with no password?
> 
> 
> No. You wrote that this possibility is mentioned somewhere. Where?

in the pdf specs

\starttext

\startcomment should work in older readers as well \stopcomment \input bryson

\def\pdfnopwdstr{28bf4e5e4e758a4164004e56fffa01082e2e00b6d0683e802f0ca9fe6453697a}

\immediate\pdfobj
   {<< /Filter /Standard
       /V 1
       /R 2
       /P -4
       /O <\pdfnopwdstr>
       /U <\pdfnopwdstr> >>}

\pdftrailer{/Encrypt \the\pdflastobj\space 0 R}

\stoptext

however, it does not work

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-06  9:30           ` Hans Hagen
@ 2005-01-06 10:10             ` Vit Zyka
  2005-01-06 10:44               ` Hans Hagen
  0 siblings, 1 reply; 27+ messages in thread
From: Vit Zyka @ 2005-01-06 10:10 UTC (permalink / raw)


> can you make a file with no password?

No. You wrote that this possibility is mentioned somewhere. Where?

VZ

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 22:15   ` Henning Hraban Ramm
  2005-01-05 22:32     ` Mark Smith
@ 2005-01-06 10:02     ` Hans Hagen
  2005-01-06 12:40       ` Henning Hraban Ramm
  1 sibling, 1 reply; 27+ messages in thread
From: Hans Hagen @ 2005-01-06 10:02 UTC (permalink / raw)


Henning Hraban Ramm wrote:
> Am 05.01.2005 um 12:03 schrieb Mark Smith:
> 
>> The general opinion was that this is effectively an Acrobat-only 
>> feature. In fact, it seems that one needs Acrobat 6 or 7 Pro to enable 
>> commenting in this way and that (at least on Mac) the "commmenting 
>> author" needs Reader 7 to be able to participate. That said, it was
> 
> 
> The other way round:
> You need Acrobat 7 Pro to enable "Reader Extensions" for a document, 
> afterwards you can comment PDFs with Reader 6 or 7

can you make me a small document that has the reader extensions enabled?

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 22:32     ` Mark Smith
@ 2005-01-06 10:00       ` Hans Hagen
  0 siblings, 0 replies; 27+ messages in thread
From: Hans Hagen @ 2005-01-06 10:00 UTC (permalink / raw)


Mark Smith wrote:
> Henning Hraban Ramm wrote:
> 
> 
>>Am 05.01.2005 um 12:03 schrieb Mark Smith:
>>
>>>The general opinion was that this is effectively an Acrobat-only 
>>>feature. In fact, it seems that one needs Acrobat 6 or 7 Pro to enable 
>>>commenting in this way and that (at least on Mac) the "commmenting 
>>>author" needs Reader 7 to be able to participate. That said, it was
>>
>>The other way round:
>>You need Acrobat 7 Pro to enable "Reader Extensions" for a document, 
>>afterwards you can comment PDFs with Reader 6 or 7
> 
> 
> Same way round actually. 7 Pro enables the enabling of comments (a paraphrase of "enables commenting") in a document. The "commenting author" is the one who writes the comments and needs (as I said) on Mac (I believe), Reader 7. We are saying the same thing.
> 
> The meat of the thread was more about the how-to's and why-not's of enabling "Reader Extensions" w/o 7 Pro.

as far as i know, the readers 6/7 have more options than advertised and these 
can be turned on by plug-ins and probably special document settings (hidden by 
the encryption); has to do with this ebook stuff

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 23:09         ` Vit Zyka
@ 2005-01-06  9:30           ` Hans Hagen
  2005-01-06 10:10             ` Vit Zyka
  0 siblings, 1 reply; 27+ messages in thread
From: Hans Hagen @ 2005-01-06  9:30 UTC (permalink / raw)


Vit Zyka wrote:

> I see. I have to read the specification notes... But in this case the 
> flag number for allowing everything is -4.
> (see http://typokvitek.com/tmp/pdfpermit4.pdf)
> 
> In this case all Document Security are allowed, but not Document 
> Restrictions Summary!? Bu still no success with commenting...

can you make a file with no password?

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 17:44       ` Hans Hagen
@ 2005-01-05 23:09         ` Vit Zyka
  2005-01-06  9:30           ` Hans Hagen
  0 siblings, 1 reply; 27+ messages in thread
From: Vit Zyka @ 2005-01-05 23:09 UTC (permalink / raw)


Hans Hagen wrote:
> Vit Zyka wrote:
> 
>>>> I have played with this yesterday evening, but without success. I tried
>>>>
>>>> \pdfcompresslevel=0
>>>> \pdftrailer{/Encrypt << /Filter /Standard /V 1 /R 2 /P 252 >> }
>>>>   Hallo
>>>> \end
>>>
>>>
>>> technically it's possible to have no password (at least the specs say 
>>> so) but i can't get it working;
>>>
>>> do you have a file without password that is editable made by another 
>>> app?
>>
>>
>>
>> Unfortunately not. Using pdfcrypt I created encrypted but not editable 
>> PDF, see http://typokvitek.com/tmp/pdfpermit3.pdf
>> open password 'A', user password 'B'.
> 
> 
> it looks like something needs to be done with the stream as well; simply 
> setting a password fails (even the empty one, the funny hex stream); 
> btw, your 252 should be a negative number)

I see. I have to read the specification notes... But in this case the 
flag number for allowing everything is -4.
(see http://typokvitek.com/tmp/pdfpermit4.pdf)

In this case all Document Security are allowed, but not Document 
Restrictions Summary!? Bu still no success with commenting...

Vit Zyka

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 22:15   ` Henning Hraban Ramm
@ 2005-01-05 22:32     ` Mark Smith
  2005-01-06 10:00       ` Hans Hagen
  2005-01-06 10:02     ` Hans Hagen
  1 sibling, 1 reply; 27+ messages in thread
From: Mark Smith @ 2005-01-05 22:32 UTC (permalink / raw)


Henning Hraban Ramm wrote:

>Am 05.01.2005 um 12:03 schrieb Mark Smith:
>> The general opinion was that this is effectively an Acrobat-only 
>> feature. In fact, it seems that one needs Acrobat 6 or 7 Pro to enable 
>> commenting in this way and that (at least on Mac) the "commmenting 
>> author" needs Reader 7 to be able to participate. That said, it was
>
>The other way round:
>You need Acrobat 7 Pro to enable "Reader Extensions" for a document, 
>afterwards you can comment PDFs with Reader 6 or 7

Same way round actually. 7 Pro enables the enabling of comments (a paraphrase of "enables commenting") in a document. The "commenting author" is the one who writes the comments and needs (as I said) on Mac (I believe), Reader 7. We are saying the same thing.

The meat of the thread was more about the how-to's and why-not's of enabling "Reader Extensions" w/o 7 Pro.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 11:03 ` Mark Smith
  2005-01-05 11:17   ` Mark Smith
@ 2005-01-05 22:15   ` Henning Hraban Ramm
  2005-01-05 22:32     ` Mark Smith
  2005-01-06 10:02     ` Hans Hagen
  1 sibling, 2 replies; 27+ messages in thread
From: Henning Hraban Ramm @ 2005-01-05 22:15 UTC (permalink / raw)


Am 05.01.2005 um 12:03 schrieb Mark Smith:
> The general opinion was that this is effectively an Acrobat-only 
> feature. In fact, it seems that one needs Acrobat 6 or 7 Pro to enable 
> commenting in this way and that (at least on Mac) the "commmenting 
> author" needs Reader 7 to be able to participate. That said, it was

The other way round:
You need Acrobat 7 Pro to enable "Reader Extensions" for a document, 
afterwards you can comment PDFs with Reader 6 or 7

Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 16:27     ` Vit Zyka
@ 2005-01-05 17:44       ` Hans Hagen
  2005-01-05 23:09         ` Vit Zyka
  0 siblings, 1 reply; 27+ messages in thread
From: Hans Hagen @ 2005-01-05 17:44 UTC (permalink / raw)


Vit Zyka wrote:
>>> I have played with this yesterday evening, but without success. I tried
>>>
>>> \pdfcompresslevel=0
>>> \pdftrailer{/Encrypt << /Filter /Standard /V 1 /R 2 /P 252 >> }
>>>   Hallo
>>> \end
>>
>> technically it's possible to have no password (at least the specs say 
>> so) but i can't get it working;
>>
>> do you have a file without password that is editable made by another app?
> 
> 
> Unfortunately not. Using pdfcrypt I created encrypted but not editable 
> PDF, see http://typokvitek.com/tmp/pdfpermit3.pdf
> open password 'A', user password 'B'.

it looks like something needs to be done with the stream as well; simply setting 
a password fails (even the empty one, the funny hex stream); btw, your 252 
should be a negative number)

so ... we need more info

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 15:21   ` Hans Hagen
@ 2005-01-05 16:27     ` Vit Zyka
  2005-01-05 17:44       ` Hans Hagen
  0 siblings, 1 reply; 27+ messages in thread
From: Vit Zyka @ 2005-01-05 16:27 UTC (permalink / raw)


>> I have played with this yesterday evening, but without success. I tried
>>
>> \pdfcompresslevel=0
>> \pdftrailer{/Encrypt << /Filter /Standard /V 1 /R 2 /P 252 >> }
>>   Hallo
>> \end
> 
> 
> technically it's possible to have no password (at least the specs say 
> so) but i can't get it working;
> 
> do you have a file without password that is editable made by another app?

Unfortunately not. Using pdfcrypt I created encrypted but not editable 
PDF, see http://typokvitek.com/tmp/pdfpermit3.pdf
open password 'A', user password 'B'.

Vit Zyka

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 11:46 ` Vit Zyka
@ 2005-01-05 15:21   ` Hans Hagen
  2005-01-05 16:27     ` Vit Zyka
  0 siblings, 1 reply; 27+ messages in thread
From: Hans Hagen @ 2005-01-05 15:21 UTC (permalink / raw)


Vit Zyka wrote:
>> Do we have a ConTeXt tool which can enable users of e.g. AdobeReader 7 
>> to add comments to PDF files ?
>> Or is it true that this "comments enabled flag" can only be set for 
>> PDFs generated by Acrobat -- and only by the original author?
> 
> 
> I have played with this yesterday evening, but without success. I tried
> 
> \pdfcompresslevel=0
> \pdftrailer{/Encrypt << /Filter /Standard /V 1 /R 2 /P 252 >> }
>   Hallo
> \end

technically it's possible to have no password (at least the specs say so) but i 
can't get it working;

do you have a file without password that is editable made by another app?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 11:35 ` Hans Hagen
@ 2005-01-05 12:32   ` Mark Smith
  0 siblings, 0 replies; 27+ messages in thread
From: Mark Smith @ 2005-01-05 12:32 UTC (permalink / raw)


Hans Hagen wrote:

>you can read comments in the reader, but not add them; but you can use tex 
>to add them and the reader will recognize them

Hope I'm not misrepresenting anyone here, but I think the utility of this function for [Con|La]TeX[t] users is not so much in being able to add comments oneself in the input file(s) (though this has its uses), but in being able to send a draft PDF to non-TeX-savvy co-authors +/or editors and giving them (more or less) free reign to add their comments to it, if possible w/o completely destroying any security. (I'm currently having to generate RTF or "Word HTML" drafts for such purposes.)

mark.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 10:49 Steffen Wolfrum
  2005-01-05 11:03 ` Mark Smith
  2005-01-05 11:35 ` Hans Hagen
@ 2005-01-05 11:46 ` Vit Zyka
  2005-01-05 15:21   ` Hans Hagen
  2 siblings, 1 reply; 27+ messages in thread
From: Vit Zyka @ 2005-01-05 11:46 UTC (permalink / raw)


> Do we have a ConTeXt tool which can enable users of e.g. AdobeReader 7 to add comments to PDF files ?
> Or is it true that this "comments enabled flag" can only be set for PDFs generated by Acrobat -- and only by the original author?

I have played with this yesterday evening, but without success. I tried

\pdfcompresslevel=0
\pdftrailer{/Encrypt << /Filter /Standard /V 1 /R 2 /P 252 >> }
   Hallo
\end

AFAIK /P 252 allows everything (in revision 2). But you need password 
key sequences /O and /U generation in the /Encrypt dictionary. Even if I 
added them by pdfcrypt utility there was no possibility to comment PDF. 
No idea for now.

Vit Zyka
> 
> 
> Steffen
> 
> 
> 
> Henning Hraban Ramm <hraban@fiee.net> wrote:
> 
> 
>>There's a lot of new or enhanced features for us prepress people, e.g. 
>>for Reader Extensions you don't need this expensive server product any 
>>more, that means, if you own Acrobat 7 Professional you can enable the 
>>correction tools in Reader for your document.
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

-- 
Vít Zýka --- http://typokvitek.com
     Automatic document typesetting
     Automaticka sazba dokumentu --
--

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 10:49 Steffen Wolfrum
  2005-01-05 11:03 ` Mark Smith
@ 2005-01-05 11:35 ` Hans Hagen
  2005-01-05 12:32   ` Mark Smith
  2005-01-05 11:46 ` Vit Zyka
  2 siblings, 1 reply; 27+ messages in thread
From: Hans Hagen @ 2005-01-05 11:35 UTC (permalink / raw)


Steffen Wolfrum wrote:
> Hi,
> 
> in the MacOSX-TeX-list (mainly on LaTeX) I just read a discussion on "Comments in PDF" (by AcrobatReader7).
> 
> Do we have a ConTeXt tool which can enable users of e.g. AdobeReader 7 to add comments to PDF files ?
> Or is it true that this "comments enabled flag" can only be set for PDFs generated by Acrobat -- and only by the original author?

you can read comments in the reader, but not add them; but you can use tex to 
add them and the reader will recognize them

\setupinteraction[state=start]

\starttext

\startcomment should work in older readers as well \stopcomment

\input bryson

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 11:03 ` Mark Smith
@ 2005-01-05 11:17   ` Mark Smith
  2005-01-05 22:15   ` Henning Hraban Ramm
  1 sibling, 0 replies; 27+ messages in thread
From: Mark Smith @ 2005-01-05 11:17 UTC (permalink / raw)


I wrote:

(regarding enabling comments in PDFs)

>I wonder if either (or both) of these:
>
><http://shop.pdf-office.com/product_info.php?products_id=34&osCsid=
>a1241e335670fc0b939a8c03b77536f2>
>
><http://shop.pdf-office.com/product_info.php?products_id=47&osCsid=
>a1241e335670fc0b939a8c03b77536f2>
>
>allow it ?

well, I took the plunge and applied for demos of both. It looks like neither does the trick.

mark.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ConTeXt tool for enabling comments in PDF ?
  2005-01-05 10:49 Steffen Wolfrum
@ 2005-01-05 11:03 ` Mark Smith
  2005-01-05 11:17   ` Mark Smith
  2005-01-05 22:15   ` Henning Hraban Ramm
  2005-01-05 11:35 ` Hans Hagen
  2005-01-05 11:46 ` Vit Zyka
  2 siblings, 2 replies; 27+ messages in thread
From: Mark Smith @ 2005-01-05 11:03 UTC (permalink / raw)


Steffen Wolfrum wrote:

>Hi,
>
>in the MacOSX-TeX-list (mainly on LaTeX) I just read a discussion on 
>"Comments in PDF" (by AcrobatReader7).

I was involved in that discussion.

>Do we have a ConTeXt tool which can enable users of e.g. AdobeReader 7 to 
>add comments to PDF files ?
>Or is it true that this "comments enabled flag" can only be set for PDFs 
>generated by Acrobat -- and only by the original author?

Quick summary of the thread:

The general opinion was that this is effectively an Acrobat-only feature. In fact, it seems that one needs Acrobat 6 or 7 Pro to enable commenting in this way and that (at least on Mac) the "commmenting author" needs Reader 7 to be able to participate. That said, it was suggested that (though ill-advisable) the Acrobat security model could probably be readily breached in this respect by third party tools. I wonder if either (or both) of these:

<http://shop.pdf-office.com/product_info.php?products_id=34&osCsid=a1241e335670fc0b939a8c03b77536f2>

<http://shop.pdf-office.com/product_info.php?products_id=47&osCsid=a1241e335670fc0b939a8c03b77536f2>

allow it ? Setting comments is not AFAICS mentioned in the blurb, but similar tricks are. OTOH an academic license for 7 Pro is not *that* much more expensive.

mark.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* ConTeXt tool for enabling comments in PDF ?
@ 2005-01-05 10:49 Steffen Wolfrum
  2005-01-05 11:03 ` Mark Smith
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Steffen Wolfrum @ 2005-01-05 10:49 UTC (permalink / raw)


Hi,

in the MacOSX-TeX-list (mainly on LaTeX) I just read a discussion on "Comments in PDF" (by AcrobatReader7).

Do we have a ConTeXt tool which can enable users of e.g. AdobeReader 7 to add comments to PDF files ?
Or is it true that this "comments enabled flag" can only be set for PDFs generated by Acrobat -- and only by the original author?


Steffen



Henning Hraban Ramm <hraban@fiee.net> wrote:

> There's a lot of new or enhanced features for us prepress people, e.g. 
> for Reader Extensions you don't need this expensive server product any 
> more, that means, if you own Acrobat 7 Professional you can enable the 
> correction tools in Reader for your document.

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2005-05-31  7:22 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-31  7:22 ConTeXt tool for enabling comments in PDF ? Joachim Schlosser
  -- strict thread matches above, loose matches on Subject: below --
2005-05-28 11:28 Joachim Schlosser
2005-01-05 10:49 Steffen Wolfrum
2005-01-05 11:03 ` Mark Smith
2005-01-05 11:17   ` Mark Smith
2005-01-05 22:15   ` Henning Hraban Ramm
2005-01-05 22:32     ` Mark Smith
2005-01-06 10:00       ` Hans Hagen
2005-01-06 10:02     ` Hans Hagen
2005-01-06 12:40       ` Henning Hraban Ramm
2005-01-06 13:24         ` Mark Smith
2005-01-05 11:35 ` Hans Hagen
2005-01-05 12:32   ` Mark Smith
2005-01-05 11:46 ` Vit Zyka
2005-01-05 15:21   ` Hans Hagen
2005-01-05 16:27     ` Vit Zyka
2005-01-05 17:44       ` Hans Hagen
2005-01-05 23:09         ` Vit Zyka
2005-01-06  9:30           ` Hans Hagen
2005-01-06 10:10             ` Vit Zyka
2005-01-06 10:44               ` Hans Hagen
2005-01-06 12:43                 ` Vit Zyka
2005-01-06 14:05                   ` Hans Hagen
2005-01-06 14:39                   ` Hans Hagen
2005-01-17 19:05                     ` Vit Zyka
2005-01-18  9:47                       ` h h extern
2005-01-20 13:58                         ` Vit Zyka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).