Print Page | Close Window

how to load pdf from a string

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=2507
Printed Date: 02 Jul 25 at 1:31PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: how to load pdf from a string
Posted By: raphaelverdier
Subject: how to load pdf from a string
Date 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




Replies:
Posted By: AndrewC
Date 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.


Posted By: raphaelverdier
Date 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;




Posted By: AndrewC
Date 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.



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