Hi, all
Thanks!
I have build PoDoFo 0.5.0 with VS 8 2005. But I have two question about
using it:
1) I have problem in open a PDF file which have set a password for
opening with PoDoFo lib. Follows is my code:
PdfVecObjects objects;
PdfParser parser( &objects );
objects.SetAutoDelete( true );
try{
parser.ParseFile(pszFilename);
}catch( PdfError & e ) {
cout<<e.GetError()<<endl;
}
parser.SetPassword("123");
PdfWriter writer(&parser);
writer.Write("test_en.pdf");
I'am sure the password is "123", but the
parser.SetPassword("123"); always throw exception with info "
Authentication with user password failed ".
Do you have example how to opened this kind of file ?
2) I get the mean from manual that the PoDoFo and change the content of
exist file, but when I code like follows, the file will be destroy.
PdfMemDocument *document = new PdfMemDocument(pszFilename);
document->GetInfo()->SetAuthor("nextlabs");
document->Write(pszFilename);
Do you have example how to change the exist PDF file ?
Thank you very much!
BRs/Tim
-----Original Message-----
From: Craig Ringer [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 18, 2008 8:51 PM
To: Zhen (Tim) Wang
Cc: [email protected]
Subject: Re: [Podofo-users] I have problem when compile the PoDoFo 0.5.0
in windows
Zhen (Tim) Wang wrote:
> Could you help to send me a manual how to build PoDoFo in windows or
in
> VC ?
First: check out the latest svn. You will have much more success
building the latest svn version of PoDoFo for Windows than you will
0.5.0 . Also, as there are incompatible changes in svn (soon to become
0.6.0) you might as well start using the new version now.
Next: read README.html from the source tree. If you still have questions
or if you find something in that documentation unclear then please post
here.
By the way, you really need to specify which version of Windows and
which version of Visual Studio. The answer for Visual Studio 6 is very
different to the answer for a sensible version like Visual Studio 9
(2008).
--
Craig Ringer
###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users