PDF in OpenDCL

Started by velasquez · 2009-10-01 22:13 UTC · 8 replies · SMF topic #949

Did anybody already work showing files PDF in OpenDCL?
I did a small test and was able to use the ActiveX control to add the Adobe PDF reader & view a file, but that's all I did.
I need to do the same.   
Can you post an example?

Thanks
Hi BazzaCAD

Do you can me to show as doing this? 
Thanks
Hi, velasquez,

try the attached sample:

(defun c:pdf ()
  (command "opendcl")
  (dcl_project_load "pdf")
  (dcl_form_show pdf_pdf)
  (dcl_AxControl_Put pdf_pdf_PDF1 "src" "d:\\tut_flora_07.pdf")
  (dcl_AxControl_Invoke pdf_pdf_PDF1 "setZoom" 200.0)
  (princ)
); pdf


@Owen: I get an error but I cannot narrow down the reason - if it is a problem of mine or a general one.
Fred
Attachments
I was going to throw one together, but it looks like Fred beat me to it again.
I get the unhandled exception error also...
Thank you Fred, 
 
I will work with this to see how it works. 
This cleared my ideas.
author=Fred Tomke link=topic=949.msg5002#msg5002 date=1256144987 wrote:
@Owen: I get an error but I cannot narrow down the reason - if it is a problem of mine or a general one.


It was a bug, now fixed for Alpha 10.
Great.
Excellent the work.