Sedang Disiapkan

pdf creation

The following code is creating a pdf file which is simply a grey page. The winning bid will produce the page as presented in the code. It must work in my server space, access details will be provided. I'm looking for a good, experienced perl coder. More work to follow.

[url removed, login to view]

#!/usr/bin/perl

# [url removed, login to view]; adapted from 0x_test-pl

use PDF::API2;

my $pdf = PDF::API2->new(-file => "HelloWorld.pdf");

$pdf->mediabox(595,842);

my $page = $pdf->page;

my $fnt = $pdf->corefont('Arial',-encoding => 'latin1');

my $txt = $page->hybrid;

$txt->textstart;

$txt->font($fnt, 20);

$txt->translate(100,800);

$txt->text("Hello World! left-aligned");

$txt->translate(500,750);

$txt->text_right("Hello World! right-aligned");

$txt->translate(300,700);

$txt->text_center("Hello World! center-aligned");

$txt->textend;

$pdf->save;

$pdf->end();

Kemahiran: Perl

Lihat lebih lanjut: perl pdf creation, coder world, catalog creation, world translate, save pdf, pdf, pdf work, pdf to world, pdf file in text, page pdf, mindon, hybrid, hello world, c++ pdf, c pdf, txt pdf, access center, 300 pdf, left aligned, bin file, helloworld, pdf work file, pdf file code, 500 page pdf, access pdf

Tentang Majikan:
( 25 ulasan ) Valbonne, Italy

ID Projek: #266662