[DVIPDFMx] Allowing comments in PDF created ?

Jin-Hwan Cho jinhwan.cho at gmail.com
Fri Jul 24 01:45:05 KST 2009


Hi, Josef.

The pdfcomment.sty attached in the previous mail worked nicely.
Thanks a lot.

Cheers, ChoF.

On Jul 23, 2009, at 9:55 AM, Josef Kleber wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> Jin-Hwan Cho schrieb:
>> Hi, Josef Kleber.
>>
>> I hope you already read the discussion on Heiko's zref-savepos  
>> package.
>> From the discussion, I realized that the third line in the following
>> example
>> is necessary to run it with dvipdfmx or dvips+ps2pdf (thanks to  
>> Heiko).
>>
>> \documentclass{article}
>> \usepackage[dvipdfmx]{hyperref}
>> \pdfpageheight=\paperheight
>> \usepackage[dvipdfmx]{pdfcomment}
>> \begin{document}
>> Here is a text commment.\pdfcomment{Can you see me?}
>>
>> \pdfmarkupcomment[markup=Highlight]{Highlight}{Can you see  
>> highlight?}
>> \pdfmarkupcomment[markup=Underline]{Underline}{Can you see  
>> underline?}
>> \pdfmarkupcomment[markup=Squiggly]{Squiggly}{Can you see Squiggly?}
>> \pdfmarkupcomment[markup=StrikeOut]{StrikeOut}{Can you see  
>> strikeout?}
>> \end{document}
>>
>> So, how about to give the third line "\pdfpageheight=\paperheight"
>> automatically
>> if pdftex is running in dvi mode, not in pdf mode?
>> Ordinary users of your package would be happy if you kindly do that.
>
> I will do that, if i don't see any problems after some testing, but i
> agree in general with Heiko. The better way is to set page size
> explicitly, instead of trusting that all involved applications use the
> same default values for page size. You fall in the trap! ;-)
> I saw already some of these problems with XeLaTeX as you can see in  
> the
> documentation. I will have to be more clear in the documentation.
>
>> One more thing. If I change the order of calling the hyperref package
>> (or remove it),
>> pdfcomment failed to load the hyperref pacakge with the "dvipdfmx"  
>> option
>> even though I give "dvipdfmx" option with the pdfcomment package.
>>
>> Could you check this problem?
>>
>
> It does not fail to load, but there are some warnings in the dvipdfmx
> run. The resulting PDF file is okay! But, i think i can change the way
> hyperref is loaded by pdfcomment to prevent this.
>
> [some hacking ...] ;-)
>
> I now have changed pdfcomment.sty and do not have the problems you
> discribed any longer. Please test the attached new version with your  
> files.
>
> Thank you for the report,
>
> Josef



More information about the dvipdfmx mailing list