1PDF::Builder::Basic::PDUFs:e:rUtCiolnst(r3i)buted Perl DPoDcFu:m:eBnutialtdieorn::Basic::PDF::Utils(3)
2
3
4
6 PDF::Builder::Basic::PDF::Utils - Utility functions for PDF library
7
9 A set of utility functions to save the fingers of the PDF library
10 users!
11
13 PDFBool()
14 Creates a Bool via PDF::Builder::Basic::PDF::Bool->new()
15
16 PDFArray()
17 Creates an array via PDF::Builder::Basic::PDF::Array->new()
18
19 PDFDict()
20 Creates a dict via PDF::Builder::Basic::PDF::Dict->new()
21
22 PDFName()
23 Creates a name via PDF::Builder::Basic::PDF::Name->new()
24
25 PDFNull()
26 Creates a null via PDF::Builder::Basic::PDF::Null->new()
27
28 PDFNum()
29 Creates a number via PDF::Builder::Basic::PDF::Number->new()
30
31 PDFString($text, $usage)
32 Returns either PDFStr($text) or PDFUtf($text), depending on whether
33 $text is already in UTF-8 and whether the $usage permits UTF-8. If
34 UTF-8 is not permitted, "downgrade" will be called on a UTF-8
35 formatted $text.
36
37 $usage is a single character string indicating the use for which
38 $text is to be applied. Some uses permit UTF-8, while others
39 (currently) forbid it:
40
41 's' An ordinary string, where UTF-8 text is permitted.
42
43 'n' A named destination, where UTF-8 text is permitted.
44
45 'o' An outline title, where UTF-8 text is permitted.
46
47 'p' A popup title, where UTF-8 text is permitted.
48
49 'm' metadata, where UTF-8 text is permitted.
50
51 'f' A file path and/or name, where UTF-8 text is currently not
52 permitted.
53
54 'u' A URL, where UTF-8 text is currently not permitted.
55
56 'x' Any other usage where UTF-8 text is not permitted.
57
58 PDFStr()
59 Creates a string via PDF::Builder::Basic::PDF::String->new()
60
61 DEPRECATED. It is preferable that you use "PDFString" instead.
62
63 PDFStrHex()
64 Creates a hex-string via PDF::Builder::Basic::PDF::String->new()
65
66 PDFUtf()
67 Creates a utf8-string via PDF::Builder::Basic::PDF::String->new()
68
69 DEPRECATED. It is preferable that you use "PDFString" instead.
70
71
72
73perl v5.36.0 2023-01-23PDF::Builder::Basic::PDF::Utils(3)