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!
Appending Text to any existing PDF file. |
Post Reply |
Author | |
Kapil
Beginner Joined: 27 Jan 06 Location: India Status: Offline Points: 13 |
Post Options
Thanks(0)
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
|
|
JanN
Senior Member Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
|
Kapil,
could you provide a little bit more information? Can you give us a piece of your source code? |
|
Kapil
Beginner Joined: 27 Jan 06 Location: India Status: Offline Points: 13 |
Post Options
Thanks(0)
|
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 |
|
JanN
Senior Member Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
|
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"); ... |
|
Kapil
Beginner Joined: 27 Jan 06 Location: India Status: Offline Points: 13 |
Post Options
Thanks(0)
|
Hi Jan Thanks it worked..but i was wondering what is the use of DAOpenFile and other DA...() functions.. Regards, Kapil |
|
JanN
Senior Member Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
|
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. ;) |
|
Kapil
Beginner Joined: 27 Jan 06 Location: India Status: Offline Points: 13 |
Post Options
Thanks(0)
|
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... |
|
JanN
Senior Member Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
|
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. |
|
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