PDF in OpenDCL

Started by velasquez, October 01, 2009, 03:13:15 PM

Previous topic - Next topic

velasquez

Did anybody already work showing files PDF in OpenDCL?

BazzaCAD

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.
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

velasquez

I need to do the same.   
Can you post an example?

Thanks

velasquez

Hi BazzaCAD

Do you can me to show as doing this? 
Thanks

Fred Tomke

Hi, velasquez,

try the attached sample:
Code (autolisp) Select

(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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

BazzaCAD

I was going to throw one together, but it looks like Fred beat me to it again.
I get the unhandled exception error also...
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

velasquez

Thank you Fred, 
 
I will work with this to see how it works. 
This cleared my ideas.

owenwengerd

Quote from: Fred Tomke on October 21, 2009, 10:09:47 AM
@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.
Owen Wengerd (Outside The Box) / ManuSoft

velasquez

Great.
Excellent the work.