create bookmark use chinese words not shown proper in adobe

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

hhswg
User
Posts: 12
Joined: Mon Apr 27, 2009 3:50 am

create bookmark use chinese words not shown proper in adobe

Post by hhswg »

create bookmark use simple chinese words not shown proper in adobe,but the bookmark shown proper in PDF-XChange PDF Viewer , use the others pdf Browser not shown proper too ,use the example of pdf sdk demo in simple chinese :(



pdf source file

write word 'one' (chinese word '一') to pdf bookmark.

source code

procedure TFormOutline.btNewClick(Sender: TObject);
var
hr: HRESULT;
bmHandle, bmParent: PXCp_BMHandle;
bmInfo: PXCp_BMInfo;
newItem, parItem: TTreeNode;
AnsiChars: array[0..3] of Char;
path:string;
begin
ZeroMemory(@bmInfo, SizeOf(bmInfo));
Edtitle.Text:='一';
bmInfo.cbSize := SizeOf(bmInfo);
bmInfo.mask := BMIM_TitleW or BMIM_Style or BMIM_Color or BMIM_Destination;
bmInfo.TitleW :='一';
bmInfo.LengthOfTitle :=1;
bmParent := 0;
if (myTree.Selected <> nil) then
bmParent := PXCp_BMHandle(myTree.Selected.Data);
PXCp_BMInsertItem(g_hDoc, bmParent, PXCp_BMHandle(PBM_LAST), @bmHandle, @bmInfo);

newItem := TreeView1.Items.AddChild(TreeView1.Selected, edTitle.text);
newItem.Data := Pointer(bmHandle);
TreeView1.Select(newItem);
path:='c:\test.pdf';
PXCp_WriteDocumentW(g_hDoc, PWChar(WideString(path)), PXCp_CreationDisposition_Overwrite, PXCp_Write_NoRelease);
end;
You do not have the required permissions to view the files attached to this post.
hhswg
User
Posts: 12
Joined: Mon Apr 27, 2009 3:50 am

Re: create bookmark use chinese words not shown proper in adobe

Post by hhswg »

the picture file
You do not have the required permissions to view the files attached to this post.
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: create bookmark use chinese words not shown proper in adobe

Post by Lzcat - Tracker Supp »

Problem is already fixed, fix will be avail with build 162.
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
hhswg
User
Posts: 12
Joined: Mon Apr 27, 2009 3:50 am

Re: create bookmark use chinese words not shown proper in adobe

Post by hhswg »

thanks,already not wait.how long the version 162 will be available?
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom

Re: create bookmark use chinese words not shown proper in adobe

Post by John - Tracker Supp »

If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
hhswg
User
Posts: 12
Joined: Mon Apr 27, 2009 3:50 am

Re: create bookmark use chinese words not shown proper in adobe

Post by hhswg »

thanks, the question was resolved :lol:
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom

Re: create bookmark use chinese words not shown proper in adobe

Post by John - Tracker Supp »

Excellent news ;)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com