[XeTeX] minor bug within XeLaTeX

Michiel Kamermans pomax at nihongoresources.com
Sat Jan 23 14:41:38 CET 2010


On 1/23/2010 1:30 AM, Akira Kakuto wrote:
>> If you admit the comment string as a default creator, the simplest fix will be to rewrite
>>      pdf_doc_set_creator(dvi_comment());
>> in dvipdfmx.c like
>>      pdf_doc_set_creator(dvi_comment() + 1);
>>      
> I forgot that a user can freely change the dvi comment. The above should not be done.
>    

Not to mention that solves the wrong problem. The problem isn't that the 
space should be removed from the string once found, but that the space 
should not be in the string in the first place =)

However, regarding Jonathan's comment about whether TeX's name and 
version should be in that field to begin with, a little information from 
the unprintable-unless-you-own-the-print-shop PDF specification about 
what these fields were intended for: "Creator - text string - (Optional) 
If the document was converted to PDF from another format, the name of 
the conforming product that created the original document from which it 
was converted." ("Document management — Portable document format — Part 
1: PDF 1.7", pp550 - pdf page 558)

This suggests that the standard (Xe)TeX idenfication string should 
indeed go in this field.

- Mike


More information about the XeTeX mailing list