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!
![]() |
how to load pdf from a string |
Post Reply
|
| Author | |
raphaelverdier
Beginner
Joined: 22 Jan 13 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Topic: how to load pdf from a stringPosted: 22 Jan 13 at 8:28AM |
|
I need to extract text from a pdf.
The pdf information are stored in an xml. I can load the pdf in a string but when I try to load the pdf with the function loadfromstring I allways had an error. I try to use setpassword before using loadfromstring but nothing change. How to load my pdf sotred in an xml ? thanks for your help |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 Jan 13 at 6:47AM |
|
Which compiler / language are you using ? C#, VB6, C++, Delphi ? Do you have some sample code you can share > Andrew.
|
|
![]() |
|
raphaelverdier
Beginner
Joined: 22 Jan 13 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 Jan 13 at 8:01AM |
|
I use the 5.11 version under visual studio 2008 C++
sample code : BOOL bIsLicensing = FALSE; LONG lRet = -1; CQuickPDF* m_pQuickPDFObject = new CQuickPDF(); if(m_pQuickPDFObject) { try { if(m_pQuickPDFObject->CreateDispatch("iSED.QuickPDF")) { bIsLicensing = m_pQuickPDFObject->UnlockKey("xxxxxx");//where xxx is remplaced by our licence } } catch(...) { ASSERT(FALSE); } } if(bIsLicensing) { lRet= m_pQuickPDFObject->LoadFromString((LPCSTR)(LPCTSTR)strPDFFromXML, strPDFFromXML.GetLength()); } delete(m_pQuickPDFObject); m_pQuickPDFObject= 0; |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 Jan 13 at 5:06AM |
|
QPL 5.11 is getting quite old.
You may want to read this post which will give you some clues to using LoadFromString. Hopefully the QPLBuffer functions are available. http://www.quickpdf.org/forum/dplloadfromstring-fails_topic2511.html Andrew.
|
|
![]() |
|
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