Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Garbled copy text from a pdf file created by qp |
Post Reply
|
| Author | |
verysharp
Beginner
Joined: 04 Jun 12 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Garbled copy text from a pdf file created by qpPosted: 08 Jun 12 at 11:38AM |
|
part code for create pdf file using quickpdf library 7.26:
TempHDC := QuickPDF.getCanvasDC(width,heigth); HandleFile := GetEnhMetaFile(PAnsiChar(FileName));//get the handle of the emf file EnumEnhMetaFile(TempHDC,HandleFile,@EnumProc,nil,Rect(0,0,width,height)); LoadFromCanvasDC(72,0); ... I used TextOutW function in EnumProc to draw word on TempHDC,but then,the word can't be recognised by any other application. why it like this?
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 Jun 12 at 11:44AM |
|
Can you please post a link to the PDF that is being created and a little more of the source code for EnumProc showing what functions you are using. What also could be helpful is if you could save the EMF file to disk and provide a link that we can download and see what is happening.
Andrew.
|
|
![]() |
|
verysharp
Beginner
Joined: 04 Jun 12 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 Jun 12 at 7:21AM |
|
the emf is created by extracting from spl file create by printer.
when printing a document,there will be a spl file and shd file in the printer temp folder. And I don't know how to post a link. part code in EnumProc function as blow: function EnumProc(DC:HDC;lpTable:PHANDLETABLE;MetaRecord:PENHMETARECORD;obj,lpData:Integer):Integer; begin if MetaRecord.iType = EMR_EXTTEXTOUTW then begin ...//get the value of TextStr,if write TextStr to TXT file, The Word is displayed fine; TextOutW(DC,left,top,TextStr); end; PlayEnhMetafileRecord(DC,lpTable^,MetaRecord^,obj); ... end;
Edited by verysharp - 11 Jun 12 at 7:22AM |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 Jun 12 at 9:13AM |
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store