1Prima::PS::PDF(3)     User Contributed Perl Documentation    Prima::PS::PDF(3)
2
3
4

NAME

6       Prima::PS::PDF -  PDF interface to Prima::Drawable
7

SYNOPSIS

9               use Prima;
10               use Prima::PS::PDF;
11
12               my $x = Prima::PS::PDF-> create( onSpool => sub {
13                       open F, ">> ./test.pdf";
14                       binmode F;
15                       print F $_[1];
16                       close F;
17               });
18               die "error:$@" unless $x-> begin_doc;
19               $x-> font-> size( 30);
20               $x-> text_out( "hello!", 100, 100);
21               $x-> end_doc;
22

DESCRIPTION

24       Realizes the Prima library interface to PDF v1.4.  The module is
25       designed to be compliant with Prima::Drawable interface.  All
26       properties' behavior is as same as Prima::Drawable's, except those
27       described below.
28
29   Inherited properties
30       ::resolution
31           Can be set while object is in normal stage - cannot be changed if
32           document is opened. Applies to fillPattern realization and general
33           pixel-to-point and vice versa calculations
34
35   Specific properties
36       ::grayscale
37           could be 0 or 1
38
39       ::pageSize
40           physical page dimension, in points
41
42       ::pageMargins
43           non-printable page area, an array of 4 integers: left, bottom,
44           right and top margins in points.
45
46       ::reversed
47           if 1, a 90 degrees rotated document layout is assumed
48
49   Internal methods
50       pixel2point and point2pixel
51           Helpers for translation from pixel to points and vice versa.
52
53       spool
54           Prima::PS::Drawable is not responsible for output of generated
55           document, it just calls ::spool when document is closed through
56           ::end_doc. By default just skips data.  Prima::PS::Printer handles
57           spooling logic.
58
59       fonts
60           Returns Prima::Application::fonts, however with "iso10646-1"
61           encoding only.  That effectively allows only unicode output.
62
63
64
65perl v5.36.0                      2023-03-20                 Prima::PS::PDF(3)
Impressum