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 - Appending Text to any existing PDF file.
  FAQ FAQ  Forum Search   Register Register  Login Login

Appending Text to any existing PDF file.

 Post Reply Post Reply
Author
Message
Kapil View Drop Down
Beginner
Beginner


Joined: 27 Jan 06
Location: India
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kapil Quote  Post ReplyReply Direct Link To This Post Topic: Appending Text to any existing PDF file.
    Posted: 27 Jan 06 at 5:27AM

Hi there,

My Problem is that i am unable to append any text or image to and existing PDF document. I am using QuickPDF activeX dll in VC7.

Regards,

Kapil

 

Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 27 Jan 06 at 6:39AM
Kapil,

could you provide a little bit more information? Can you give us a piece of your source code?
Back to Top
Kapil View Drop Down
Beginner
Beginner


Joined: 27 Jan 06
Location: India
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kapil Quote  Post ReplyReply Direct Link To This Post Posted: 27 Jan 06 at 6:45AM

hi JanN,

Here is a code snippet

CoInitialize(NULL);

CComPtr<IQuickPDF> qp;

qp.CoCreateInstance(CLSID_QuickPDF);

qp->UnlockKey("---------------------------------");

long filehandle = qp->DAOpenFile("c.pdf", "");

qp->DANewPage(filehandle );

qp->SelectPage(2);

qp->DrawText(100, 500, "Why I cannot write ??? ");

qp->DAAppendFile(filehandle);



Edited by Kapil
Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 27 Jan 06 at 7:36AM
The DirectAccess functions are completely separate from the other functions. You cannot use e.g. DrawText in combination with the DA functions.

To add text you have to do something like this:

...
qp->LoadFromFile("test.pdf");
qp->NewPage; // automatically selected as current page
qp->DrawText(100, 500, "Now you should be able to write :) ??? ");
qp->SaveToFile("test2.pdf");
...
Back to Top
Kapil View Drop Down
Beginner
Beginner


Joined: 27 Jan 06
Location: India
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kapil Quote  Post ReplyReply Direct Link To This Post Posted: 30 Jan 06 at 6:50AM

Hi Jan

Thanks it worked..but i was wondering what is the use of DAOpenFile and other DA...() functions..

Regards,

Kapil

Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 30 Jan 06 at 7:52AM
Kapil,

with the DA functions you can work with files without having to load them into memory. But the possible changes are limited - as you already experienced. ;)
Back to Top
Kapil View Drop Down
Beginner
Beginner


Joined: 27 Jan 06
Location: India
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kapil Quote  Post ReplyReply Direct Link To This Post Posted: 30 Jan 06 at 8:06AM

Hi JanN,

I am having 1 more problem, i have created a 2 radio buttons, and i want to set one of the radiobutton value to true ie select one option by default.

How can i do this...?

and how can i save the changes...?

Sorry for bugging u so much....

Regards,

Kapil...

Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 30 Jan 06 at 8:23AM
I'm afraid I cannot help you in this case. I have no experience with radio buttons or other form fields.

Please create a new thread for this problem.
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