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!
![]() |
Can you DrawText on PDF opened with DAOpenFile |
Post Reply
|
| Author | |
bmcdonald
Beginner
Joined: 19 Sep 11 Location: Mason, OH Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Topic: Can you DrawText on PDF opened with DAOpenFilePosted: 23 Sep 11 at 8:40PM |
|
Hello All,
I have the following code and it does not display the text on the saved pdf. My question is can you use the Draw methods with files that are opened with the DAOpenFile? m_fh = m_qp.DAOpenFile("C:\Temp\MyPDFFile.pdf", "") Call m_qp.SetOrigin(1) Call m_qp.SetTextSize(10) Call m_qp.SetTextAlign(1) Call m_qp.DrawText(m_qp.PageWidth() / 2, m_qp.PageHeight / 2 + (m_qp.GetTextSize() / 2), "This it my centred text") Call m_qp.DASaveAsFile(m_fh, "C:\temp\test.pdf") Thanks in advance. |
|
![]() |
|
Wheeley
Senior Member
Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 Sep 11 at 9:16PM |
|
The short answer is no. You can only use the direct access functions when you open a function using the direct access method (DAOpenFile). So to do drawing, you need to open the whole file to memory using the other open file methods.
Wheeley |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 Sep 11 at 5:36PM |
|
So if you need both functionalities... a bit from DA... and a bit from NON-DA...
you should do it in two steps: First the DA-functionalities and after Free a new Load and the NON-DA-functions. Cheers, Ingo |
|
![]() |
|
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