Print Page | Close Window

Doc Property titles with double byte characters

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=3694
Printed Date: 03 May 24 at 7:04AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Doc Property titles with double byte characters
Posted By: pmasalsk
Subject: Doc Property titles with double byte characters
Date Posted: 18 Apr 19 at 4:28PM
Hi, I'm using Foxit Quick PDF Library (Windows) to grab doc titles from PDF Doc Properties. The following VBS code works great for any title that contains single byte characters:

      Call DPL.LoadFromFile(pdfFull, "")
      DocID = DPL.SelectedDocument()
      pdfTitle = DPL.GetInformation(2)
      pdfTitle = Trim(pdfTitle)

However when I try to grab titles containing double byte characters, the call to DPL.LoadFromFile bombs every time (and program execution stops). So I can get a title like this:
  ESM 9.6.0 Release Notes

But not one like this: 
  Data Loss Prevention Endpoint for Mac 9.3.5 发行说明

Any idea what I'm doing incorrectly? Many thanks in advance for any help you can give.
Paul M.



Replies:
Posted By: Ingo
Date Posted: 18 Apr 19 at 8:59PM
Hi Paul,

the string handling in QuickPDF is made via unicode.
Due to this if you want to get a string out of QuickPDF put it into a variable defined as unicode.
Due to this if you want to set a string into QuickPDF use a variable defined as unicode.
You didn't find the online ressources?
Here's the starting point:
http://www.quickpdf.org/

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo



Posted By: pmasalsk
Date Posted: 19 Apr 19 at 5:08PM
This worked out great. Thank you!!
Paul M.



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