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 - Can you DrawText on PDF opened with DAOpenFile
  FAQ FAQ  Forum Search   Register Register  Login Login

Can you DrawText on PDF opened with DAOpenFile

 Post Reply Post Reply
Author
Message
bmcdonald View Drop Down
Beginner
Beginner
Avatar

Joined: 19 Sep 11
Location: Mason, OH
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote bmcdonald Quote  Post ReplyReply Direct Link To This Post Topic: Can you DrawText on PDF opened with DAOpenFile
    Posted: 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.

Back to Top
Wheeley View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Oct 05
Location: United States
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wheeley Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

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