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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - how to load pdf from a string
  FAQ FAQ  Forum Search   Register Register  Login Login

how to load pdf from a string

 Post Reply Post Reply
Author
Message
raphaelverdier View Drop Down
Beginner
Beginner
Avatar

Joined: 22 Jan 13
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote raphaelverdier Quote  Post ReplyReply Direct Link To This Post Topic: how to load pdf from a string
    Posted: 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

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jan 13 at 6:47AM

Which version of QPL are you using ?

Which compiler / language are you using ?  C#, VB6, C++, Delphi ?

Do you have some sample code you can share >

Andrew.
Back to Top
raphaelverdier View Drop Down
Beginner
Beginner
Avatar

Joined: 22 Jan 13
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote raphaelverdier Quote  Post ReplyReply Direct Link To This Post 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;


Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store