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       ::region
36           - ::region is not realized ( yet?)
37
38   Specific properties
39       ::grayscale
40           could be 0 or 1
41
42       ::pageSize
43           physical page dimension, in points
44
45       ::pageMargins
46           non-printable page area, an array of 4 integers: left, bottom,
47           right and top margins in points.
48
49       ::reversed
50           if 1, a 90 degrees rotated document layout is assumed
51
52       ::rotate and ::scale
53           along with Prima::Drawable::translate provide PS-specific
54           transformation matrix manipulations. ::rotate is number, measured
55           in degrees, counter-clockwise. ::scale is array of two numbers,
56           respectively x- and y-scale. 1 is 100%, 2 is 200% etc.
57
58   Internal methods
59       pixel2point and point2pixel
60           Helpers for translation from pixel to points and vice versa.
61
62       spool
63           Prima::PS::Drawable is not responsible for output of generated
64           document, it just calls ::spool when document is closed through
65           ::end_doc. By default just skips data.  Prima::PS::Printer handles
66           spooling logic.
67
68       fonts
69           Returns Prima::Application::fonts, however with "iso10646-1"
70           encoding only.  That effectively allows only unicode output.
71
72
73
74perl v5.32.1                      2021-01-27                 Prima::PS::PDF(3)
Impressum