Skip Menu |

This queue is for tickets about the HTML-HTMLDoc CPAN distribution.

Report information
The Basics
Id: 35284
Status: resolved
Priority: 0/
Queue: HTML-HTMLDoc

People
Owner: Nobody in particular
Requestors: Rajasekhar.Konda [...] Honeywell.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: HTML - PDF generation (Facing problem when i call perl program from browser)
Date: Tue, 22 Apr 2008 16:42:24 +0530
To: <bug-HTML-HTMLDoc [...] rt.cpan.org.>
From: "Konda, Rajasekhar (IE10)" <Rajasekhar.Konda [...] Honeywell.com>
Hi, I am facing problem to generate PDF from browser. (PHP to PERL program) When I invoke perl program it is executing (path is correct) but not generating PDF document. When I execute perl from command promt it is doing well. Can some body help me out on this immdiatly........ Regards, Rajasekhar Regards, Rajasekhar
From: bvinson [...] vtionline.com
I, too, have this problem. Looking at the PDF Object, the content is blank: $VAR1 = bless( { 'content' => \'' }, 'HTML::HTMLDoc::PDF' ); Could this be an issue of permissions? -Ben On Tue Apr 22 07:13:06 2008, Rajasekhar.Konda@Honeywell.com wrote: Show quoted text
> > > Hi, > > > > I am facing problem to generate PDF from browser. (PHP to PERL program) > > > > When I invoke perl program it is executing (path is correct) but not > generating PDF document. > > > > When I execute perl from command promt it is doing well. > > > > Can some body help me out on this immdiatly........ > > > > Regards, > > Rajasekhar > > > > Regards, > > Rajasekhar > > > > > > > > >
From: bvinson [...] vtionline.com
I found a "fix" to my problem. Since this is changing the normal operation of the module, I cannot endorse this modification, nor am I responsible for any mishaps from making a similar change. Use at your own risk! $htmldoc = new HTML::HTMLDoc(); $htmldoc->{config}{mode} = 'ipd'; This changes the mode from 'ipc' to something else (in this case, 'ipd'), so the system call to htmldoc is handled differently. Again, unless somebody with better Perl kung fu than I approves of this, you are using this 'fix' at your own risk!
Am Do 24. Feb 2011, 18:14:06, bvinson@vtionline.com schrieb: Show quoted text
> I found a "fix" to my problem. Since this is changing the normal > operation of the module, I cannot endorse this modification, nor am I > responsible for any mishaps from making a similar change. Use at your > own risk! > > > $htmldoc = new HTML::HTMLDoc(); > $htmldoc->{config}{mode} = 'ipd'; > > > This changes the mode from 'ipc' to something else (in this case, > 'ipd'), so the system call to htmldoc is handled differently. > > Again, unless somebody with better Perl kung fu than I approves of this, > you are using this 'fix' at your own risk!
Hey Ben, You can do the same using the constructor options: http://search.cpan.org/~mfrankl/HTML-HTMLDoc-0.10/lib/HTML/HTMLDoc.pm#new%28%29 like this: $htmldoc = new HTML::HTMLDoc(mode=>'file');