Print Page | Close Window

Metadata

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2815
Printed Date: 28 Oct 25 at 3:40PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Metadata
Posted By: modderkolk
Subject: Metadata
Date Posted: 24 Jan 14 at 8:49AM
Hi,

I am using Delphi 2010 and QuickPdfLibrary 9.13.

I use SetDocumentMetadata to put some xmp metadata in a Pdf file and that works fine except of some characters. They are changed into '?' when I open the Pdf after it.

I see that I need to give a WideString as parameter. And when I show that string on screen all characters are Ok. When I save it using a stream and Utf-8 it is also ok. When I save it in a textfile, I see also wrong characters.

What can I do to get the right characters in the metadata of the Pdf file?

Thanks,
Evert-Jan



Replies:
Posted By: modderkolk
Date Posted: 24 Jan 14 at 1:30PM
Hi, 

I allready found the problem.
See:
http://stackoverflow.com/questions/2697843/storing-utf8-string-in-a-unicodestring

I works well now.



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

Thanks,
Evert-Jan Modderkolk



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk