Thanks Randy woke from a deep sleep this is OLE on Windoze I think my confusion was re properties & methods. Property: $theDoc->{FontSize} = '96'; Methods $theDoc->AddText('Hello World'); $theDoc->Save('c:\hworld.pdf'); and it works as advertised. Thanks a million CJ
----- Original Message ----- From: "Randy W. Sims" <[EMAIL PROTECTED]> To: "Clinton" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, March 17, 2004 2:01 PM Subject: Re: VbScript -> PerlScript On 3/16/2004 10:00 PM, Clinton wrote: > Hi > Could I have a hint on converting > theDoc.FontSize = 96 > theDoc.AddText "Hello World" > theDoc.Save "c:\hworld.pdf" > I'm able to create an object with > my $theDoc = $Server->CreateObject("obj.doc"); > I tried > $theDoc->{FontSize} = 96; > $theDoc->{AddText} = "Hello World"; > $theDoc->{Save } ="c:\hworld.pdf"; What type of object is $thedoc? What type of object is $Server? I can infer the platform your working on only because I'm familiar with Windows. Is this OLE or a pdf writing module that you are using? We need much more context information. Randy. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>