I'm having a problem, which I'm sure has a very simple answer. I actually copied this code from the CPAN howto on the PDF::API2 module. Here's my ASP code:
<%@Language="PerlScript" %>
<%
use strict;
use Win32::ASP qw
strict);
use PDF::API2;
use warnings;
my $pdf = PDF::API2->new();
my $fnt = $pdf->corefont('Helvetica-Bold');
my $page = $pdf->page;
$page->mediabox('A4');
my $gfx = $page->gfx;
$gfx->textlabel(200,700,$fnt,20,'Hello World !');
$pdf->saveas('document.pdf');
$pdf->end;
%>
<html>
<head>
<title> HelloWorld PDF </title>
</head>
<body>
The helloworld pdf should be generated now.
</body>
</html>
I'm brand new to these forums, so I don't know how it will take the HTML tags I included above, but if for some reason they don't show, I basically have a very simple 8 line HTML document under my closing ASP tag.
The PDF file is not created, and I get this error when trying to view the file on the webserver:
PerlScript Error error '80004005'
(in cleanup) Unable to open document.pdf for writing at C:/perl/site/lib/PDF/API2/Basic/PDF/File.pm line 511.
Any help is appreciated.
<%@Language="PerlScript" %>
<%
use strict;
use Win32::ASP qw

use PDF::API2;
use warnings;
my $pdf = PDF::API2->new();
my $fnt = $pdf->corefont('Helvetica-Bold');
my $page = $pdf->page;
$page->mediabox('A4');
my $gfx = $page->gfx;
$gfx->textlabel(200,700,$fnt,20,'Hello World !');
$pdf->saveas('document.pdf');
$pdf->end;
%>
<html>
<head>
<title> HelloWorld PDF </title>
</head>
<body>
The helloworld pdf should be generated now.
</body>
</html>
I'm brand new to these forums, so I don't know how it will take the HTML tags I included above, but if for some reason they don't show, I basically have a very simple 8 line HTML document under my closing ASP tag.
The PDF file is not created, and I get this error when trying to view the file on the webserver:
PerlScript Error error '80004005'
(in cleanup) Unable to open document.pdf for writing at C:/perl/site/lib/PDF/API2/Basic/PDF/File.pm line 511.
Any help is appreciated.