I gang

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();

Færdigheder: Perl

Se mere: perl pdf creation, coder world, catalog creation, world translate, save pdf, pdf file text, page pdf, mindon, hybrid, hello world, c pdf, txt pdf, access center, 300 pdf, left aligned, bin file, helloworld, pdf work file, pdf file code, 500 page pdf, access pdf, pdf font, fnt, access catalog, catalog access

Om arbejdsgiveren:
( 25 bedømmelser ) Valbonne, Italy

Projekt-ID: #266662