SourceForge has been redesigned. Learn more.

#24 Exception thrown changing a title


Using the CorelDraw PublishtoPDF feature to automate creation of PDFs and then using PDF clown to add bookmarks and amend document properties. CorelDraw saves the title as a Hex string and not a string literal. The "title" is the same as the underlying CDR filename. When attempting to change the title using PDFClown, an execption is thrown "Input is not of a correct format" or "Odd number of characters". Opening the file in Acrobat and then do a "Save As" converts the Hex string into a string literal and allows it to be changed by PDFClown.

The attached PDF has been created using CorelDraw and has a a title of <feff0054006500730074002e006300640072> or (Test.cdr).


  • Russ Ballaam

    Russ Ballaam - 2011-10-27

    Test PDF with title as Hex string

  • Stefano Chizzolini

    • assigned_to: nobody --> stechio
  • Stefano Chizzolini

    Version 0.1.1 has introduced lots of enhancements to the primitive object model [1], including simple-objects immutability: this implies no more conflicts can occur on content data type, as instances are simply replaced. Therefore, if you want to solve your issue you have just to adopt the latest PDF Clown version.

    PS: your attached file makes an inappropriate use of hex strings. Date strings (such as CreationDate entry) should be expressed as literal ones (see PDF:1.7:3.8.3): if you opened this file in the reference viewer implementation (Acrobat), you would note the creation date doesn't appear in the Document Properties window because it was silently rejected(!!).


  • Stefano Chizzolini

    • status: open --> closed-out-of-date

Log in to post a comment.