( *.= ) [Pdfutil] |
Operations on floating point references
|
( *= ) [Pdfutil] |
Operations on integer references
|
(+.=) [Pdfutil] | |
(+=) [Pdfutil] | |
(-.=) [Pdfutil] | |
(-=) [Pdfutil] | |
(/.=) [Pdfutil] | |
(/=) [Pdfutil] | |
(<|) [Pdfutil] |
This is equivalent to
let ( <| ) a b = a b
|
(=@) [Pdfutil] |
Append something to the front of the contents of a list reference.
|
(=|) [Pdfutil] |
Cons something onto the contents of a list reference.
|
(@) [Pdfutil] | |
(@@) [Pdfutil] |
Append with reversed arguments.
|
(|&|) [Pdfutil] |
Exclusive OR
|
A | |
a0 [Pdfpaper] | |
a1 [Pdfpaper] | |
a10 [Pdfpaper] |
ISO A series paper sizes, portrait.
|
a2 [Pdfpaper] | |
a3 [Pdfpaper] | |
a4 [Pdfpaper] | |
a5 [Pdfpaper] | |
a6 [Pdfpaper] | |
a7 [Pdfpaper] | |
a8 [Pdfpaper] | |
a9 [Pdfpaper] | |
add [Pdfutil] | add k v l Adds (k, v) to a dictionary, replacing any existing binding of
k .
|
add_bookmarks [Pdfmarks] |
Add bookmarks to a document, replacing any currently there.
|
add_dict_entry [Pdf] |
Add a dictionary entry, replacing if already there.
|
add_label [Pdfpagelabels] |
Add a range starting at pagelabel.startpage, ending at the integer page
given.
|
add_pagetree [Pdfpage] |
Build a page tree from a list of pages and install it in the given PDF
document.
|
add_root [Pdfpage] |
Given the page root number (for instance that returned by
add_pagetree ),
any specific extra dictionary entries and a PDF document, build a document root.
|
addobj [Pdf] |
Add an object.
|
addobj_given_num [Pdf] |
Same as
addobj , but pick a number ourselves.
|
aes_decrypt_data [Pdfcryptprimitives] | aes_decrypt_data nk key data decrypts AES data for the given key length,
key, and data.
|
aes_decrypt_data_ecb [Pdfcryptprimitives] |
As
aes_decrypt_data above, but in ECB instead of CBC mode
|
aes_encrypt_data [Pdfcryptprimitives] | aes_encrypt_data nk key data encryptes with AES, given a key length, key
and data.
|
aes_encrypt_data_ecb [Pdfcryptprimitives] |
As
aes_encrypt_data , but in ECB instead of CBC mode
|
afm_data [Pdfstandard14] |
The data extracted from the font AFM.
|
align [Pdfio] |
Align the bitstream on a byte boundary
|
align_write [Pdfio] |
Byte-align.
|
all_but_last [Pdfutil] |
Produce a list containing all but the last element of a list.
|
always [Pdfutil] |
The always-true predicate.
|
annotations_of_page [Pdfannot] |
Return the annotations on a page in a document.
|
append [Pdftransform] | append a b is a transform with the same effect as performing b then a
|
append [Pdfutil] | |
applyn [Pdfutil] |
Apply a function
f n times to initial argument arg .
|
array_iter2 [Pdfutil] | iter2 on arrays.
|
array_map2 [Pdfutil] | map2 on arrays.
|
B | |
baseline_adjustment [Pdfstandard14] |
The appropriate amount to subtract from the y-coordinate of a 1pt text line
to place it vertically centered around the y coordinate, rather than with the
baseline at that y coordinate.
|
bbox_of_graphic [Pdfgraphics] |
Bounding box xmin, xmax, ymin, yman of a graphic
|
between [Pdfutil] |
Find the point equidistant between two others.
|
bget [Pdfio] |
Get the value at a position in a bytes
|
bget_unsafe [Pdfio] |
Like
bget , but with no range checking
|
bitbytes_of_input [Pdfio] |
Make a bitstream from an input.
|
bitstream_pos [Pdfio] |
Get the current position.
|
bitstream_seek [Pdfio] |
Seek to a position within a bitstream
|
blankpage [Pdfpage] |
Create a page with empty content, media box from the given paper size, empty
resources, zero rotation and no extra dictionary entries.
|
box_overlap [Pdfutil] |
The intersection box (if any) of two integer boxes, each defined as
xmin ymin xmax ymax .
|
box_overlap_float [Pdfutil] |
The intersection box (if any) of two floating-point boxes, each defined as
xmin ymin xmax ymax .
|
box_union [Pdfutil] |
The smallest box enclosing both given integer boxes.
|
box_union_float [Pdfutil] |
The smallest box enclosing both given floating-point boxes.
|
bset [Pdfio] | bset s n v sets the value n at position v in bytes
|
bset_unsafe [Pdfio] |
Like
bset but with no range checking
|
bytes_of_arraylist [Pdfio] |
Make bytes from a list of integer arrays.
|
bytes_of_charlist [Pdfio] |
Make bytes from a character list.
|
bytes_of_input_channel [Pdfio] |
Extract a bytes from an input or output.
|
bytes_of_int_array [Pdfio] |
Make bytes from an integer array
|
bytes_of_list [Pdfio] |
Make bytes from a list of integers, each between 0 and 255.
|
bytes_of_string [Pdfio] |
Make bytes from a string.
|
bytes_of_write_bitstream [Pdfio] |
Build bytes from a write bitstream, padding the with zero-valued bits.
|
bytes_selfmap [Pdfio] |
Map bytes onto itself using a function on each byte
|
bytes_size [Pdfio] |
Size of bytes.
|
bytes_to_output_channel [Pdfio] |
Write a bytes to an output channel
|
C | |
change_pages [Pdfpage] |
Change the pages in a document for some new ones.
|
charcode_extractor_of_encoding [Pdftext] |
Return the character code for a given unicode codepoint, if it exists in
this encoding.
|
charlist_of_bytes [Pdfio] |
Make a character list from a bytes
|
circle [Pdfshapes] |
Calling
circle x y r builds a path representing a circle at (x, y) with
radius r .
|
clear [Pdfutil] |
Set a boolean reference to
false
|
cleave [Pdfutil] | cleave l n splits l into two parts, returned as a tuple.
|
cleavewhile [Pdfutil] |
Same, but split point controlled by a predicate, which is true for elements
in the first returned list.
|
cleavewhile_unordered [Pdfutil] |
The same as
cleavewhile , but the output lists are each unordered.
|
coalesce [Pdfpagelabels] |
Optimise page labels, removing any which are not required.
|
codepoints_of_pdfdocstring [Pdftext] |
Produce a list of unicode codepoints from a pdfdocencoding or UTF16BE pdf
document string
|
codepoints_of_text [Pdftext] |
Return a list of unicode points from a given extractor and string (for
example from a
Pdfpages.Op_Tj or Op_TJ operator).
|
codepoints_of_utf8 [Pdftext] |
A list of unicode codepoints for a UTF8 string
|
collate [Pdfutil] |
Collate a list into a list of lists based upon a comparison function by which
it has already been sorted.
|
combine [Pdfutil] | |
combine3 [Pdfutil] | |
compare_i [Pdfutil] |
Monomorphic integer version of
Pervasives.compare
|
complete [Pdfpagelabels] |
Return a list where every page has a label - pages which don't are given
arabic page numbers
|
components [Pdfops] |
Given a pdf, a resources dictionary and a colourspace dictionary, give the
number of bytes per pixel in the stored image data.
|
compose [Pdftransform] | compose t ts adds operation t to the transform ts .
|
compress [Pdfflate] |
Compress data.
|
conspair [Pdfutil] |
Consing to each of a pair of lists at the same time.
|
conspairopt [Pdfutil] |
Version of
conspair where there may or may not be somthing to cons in each case.
|
convert [Pdfunits] | convert d u u' produces a convertor converting from unit u to u' with
dpi d
|
copybytes [Pdfio] |
Copy bytes.
|
couple [Pdfutil] |
Couple the elements of a list
l using given function.
|
couple_ext [Pdfutil] |
As
couple , but an extra unary function is applied to any last (odd) element.
|
couple_reduce [Pdfutil] |
Apply
couple repeatedly until only one element remains.
|
courier_afm [Pdfafmdata] | |
courier_bold_afm [Pdfafmdata] | |
courier_bold_oblique_afm [Pdfafmdata] | |
courier_oblique_afm [Pdfafmdata] | |
crypt [Pdfcryptprimitives] |
ARC4 encryption (40 bit and 128 bit) given a key and some data
|
crypt_debug [Pdfcrypt] |
If this is set, various debug is produced on standard output.
|
cumulative_sum [Pdfutil] |
Cumulative sum of a list given an initial value.
|
custompage [Pdfpage] |
The same, but given a page size rectangle.
|
D | |
date_of_string [Pdfdate] |
Build a date by parsing a PDF date string.
|
debug_next_n_chars [Pdfio] |
Debug the next
n chars to standard output and then rewind back
|
decode_from_input [Pdfcodec] |
Given a
Pdfio.input with pointer at the first byte and an inline image
stream dictionary, decode the first decoder and its predictor.
|
decode_pdfstream [Pdfcodec] |
Given a document and stream, decode.
|
decode_pdfstream_onestage [Pdfcodec] |
Given a document and stream decode just one stage.
|
decode_pdfstream_until_unknown [Pdfcodec] |
Given a document and stream decode until there's an unknown decoder.
|
decompose [Pdftransform] |
Decompose a transformation matrix to scale, aspect, rotation, shear,
translation in x, translation in y.
|
decrypt_pdf [Pdfcrypt] |
Decrypt a PDF document, given the user password, returning the permissions
under which the document was encrypted.
|
decrypt_pdf_owner [Pdfcrypt] |
Decrypt a PDF document, given the owner password.
|
deg_of_rad [Pdfutil] |
Convert between radians and degrees.
|
direct [Pdf] |
Make a PDF object direct -- that is, follow any indirect links.
|
distance_between [Pdfutil] |
Cartesian distance between two points.
|
do_many [Pdfutil] | do_many f n calls f () n times.
|
do_return [Pdfutil] | do_return f g Evaluate f () , evaluate and ignore g () , return f () , in that order.
|
drop [Pdfutil] | drop l n drops n elements from the list raising Invalid_argument if n
< 0 or there are not enough elements.
|
drop' [Pdfutil] |
Same as
drop , but with the arguments reversed.
|
drop_evens [Pdfutil] |
Remove the second, fourth etc.
|
drop_odds [Pdfutil] |
Remove the first, third etc.
|
dropwhile [Pdfutil] |
Drop elements from a list while a given predicate is true.
|
E | |
empty [Pdf] |
The empty document (PDF 1.0, no objects, no root, empty trailer dictionary).
|
encode_pdfstream [Pdfcodec] |
Encode a PDF stream with an encoding.
|
endpage [Pdfpage] |
Number of pages in a document, faster than reading the pages and counting.
|
eq [Pdfutil] |
Equality.
|
eval_function [Pdffun] |
Evaluate a function given a list of inputs.
|
even [Pdfutil] | |
explode [Pdfutil] |
List of characters representing a string.
|
extract_bytes_from_input_output [Pdfio] |
Extract the contents of an input-output in bytes
|
extremes [Pdfutil] |
Find the first and last element of a list.
|
extremes_and_middle [Pdfutil] |
Return the first, middle and last elements of a list which has length at
least two.
|
F | |
fabs [Pdfutil] |
Monomorphic floating-point versions of
Pervasives functions
|
fillbytes [Pdfio] |
Fill bytes with a value
|
firstchar [Pdfutil] |
Return the first character of a string, should it have one.
|
flags_of_standard_font [Pdfstandard14] |
Return a suitable flags value for a standard font
|
flatten [Pdfutil] | |
flip [Pdfutil] |
Flip a boolean reference
|
flprint [Pdfutil] |
Print a string and flush standard output.
|
fmax [Pdfutil] | |
fmin [Pdfutil] | |
fold_left [Pdfutil] | |
fold_right [Pdfutil] | |
G | |
get_image [Pdfimage] |
Similarly, but if it's to be Raw, use the smallest pixel layout required to
represent the data.
|
get_image_24bpp [Pdfimage] |
Given a pdf document, resources dictionary and a stream representing an
image, return a triple : width, height, and a stream of (width * height * 3)
bytes RGBRGB etc.
|
get_image_raw [Pdfimage] |
Get the uncompressed image contents, decoding JPEG, JPEG2000 and JBIG2 as
required.
|
get_image_raw_24bpp [Pdfimage] |
Get the uncompressed image contents in 24bpp, decoding JPEG, JPEG2000 and JBIG2 as
required.
|
get_image_unprocessed_pixel [Pdfimage] |
Return a function which, when given an x and y coordinate, returns the pixel
byte values prior to any decoding, i.e in the raw input image data before /Decode,
/Index lookups and so on.
|
get_jpeg_data [Pdfjpeg] |
Return the JPEG data starting at the current position in the
Pdfio.input ,
leaving the input ready to read the first byte following the JPEG data.
|
getbit [Pdfio] |
Get a bit
|
getbitint [Pdfio] |
Get a bit, but as an integer, 0 or 1.
|
getinit [Pdfio] | getinit f s o l calls f on each s within o...l - 1
|
getnum [Pdf] |
Return a float from either a
Real or an Int
|
getstream [Pdf] |
Get a stream from disc if it hasn't already been got.
|
getval_31 [Pdfio] |
Get up to 31 bits as a native integer
|
getval_32 [Pdfio] |
Get up to 32 bits as a 32 bit value
|
glyph_hashes [Pdfglyphlist] |
The Adobe Glyph List, which maps character names to sequences of unicode
codepoints.
|
glyphnames_of_text [Pdftext] |
Return a list of glyph names from a given extractor and string
|
graphic_of_ops [Pdfgraphics] |
Make a graphic from a simple string.
|
graphic_of_page [Pdfgraphics] |
Make a graphic from operations.
|
H | |
hashtable_of_dictionary [Pdfutil] |
Build a hashtable from a dictionary (list of key-value pairs).
|
hd [Pdfutil] | |
heads [Pdfutil] |
Return a list of the heads of a list of lists, each of which has at least
one element, preserving order.
|
height [Pdfpaper] |
Project the height from a paper size.
|
helvetica_afm [Pdfafmdata] | |
helvetica_bold_afm [Pdfafmdata] | |
helvetica_bold_oblique_afm [Pdfafmdata] | |
helvetica_oblique_afm [Pdfafmdata] | |
I | |
i [Pdftransform] |
The identity transform
|
i32add [Pdfutil] | |
i32div [Pdfutil] | |
i32max [Pdfutil] | |
i32min [Pdfutil] | |
i32mul [Pdfutil] | |
i32ofi [Pdfutil] | |
i32ofi64 [Pdfutil] | |
i32pred [Pdfutil] | |
i32sub [Pdfutil] | |
i32succ [Pdfutil] | |
i32tof [Pdfutil] | |
i32toi [Pdfutil] | |
i64add [Pdfutil] | |
i64div [Pdfutil] | |
i64max [Pdfutil] | |
i64min [Pdfutil] | |
i64mul [Pdfutil] | |
i64ofi [Pdfutil] | |
i64ofi32 [Pdfutil] |
Shortened names for functions from
Int32 and Int64 .
|
i64pred [Pdfutil] | |
i64sub [Pdfutil] | |
i64succ [Pdfutil] | |
i64tof [Pdfutil] | |
i64toi [Pdfutil] | |
i_matrix [Pdftransform] |
The identity matrix
|
ident [Pdfutil] |
The identity function.
|
ilist [Pdfutil] | ilist 2 5 returns [2; 3; 4; 5] .
|
ilist_fail_null [Pdfutil] |
Same as
ilist_null , but return empty list if start > end, instead of failing
|
ilist_null [Pdfutil] |
Same as
ilist , but return the empty list for ilist x x rather than [x]
|
implode [Pdfutil] |
String representing a list of characters.
|
index [Pdfutil] |
Find the position of the first element matching a predicate.
|
indirect_number [Pdf] |
Return the object number of an indirect dictionary object, if it is indirect.
|
indx [Pdfutil] | indx l returns [1; 2; 3] if l has length 3, for example.
|
indx0 [Pdfutil] |
Same as
indx , but 0-based.
|
indxn [Pdfutil] |
Same as
indx , but n-based.
|
input_of_bytes [Pdfio] |
Make an input from a bytes.
|
input_of_channel [Pdfio] |
Make an input from an OCaml input channel.
|
input_of_string [Pdfio] |
Make an input from a string.
|
input_output_of_bytes [Pdfio] |
Build an input-ouput, with an initial buffer size.
|
input_pdferror [Pdf] |
This function, given a
Pdfio.input and an ancilliary string, builds an
error string which includes the source of the Pdfio.input (filename, string,
bytes etc) so we can trace what it was originally built from
|
int_array_of_bytes [Pdfio] |
An integer array of bytes from bytes
|
int_array_of_string [Pdfio] |
Integer array from a string
|
int_of_rotation [Pdfpage] |
Utility function to convert from rotation to integers.
|
interleave [Pdfutil] |
Interleave an element among a list, so that
interleave 0 [1; 2; 3]
yields [1; 0; 2; 0; 3] .
|
interleave_lists [Pdfutil] |
Interleave two equal-length lists, taking from the first list first.
|
invert [Pdfutil] |
Invert a vector.
|
iround [Pdfutil] |
The same, returning an integer.
|
is_encrypted [Pdfcrypt] |
Is a PDF encrypted?
|
isdigit [Pdfutil] |
A character is a decimal digit.
|
isnull [Pdfutil] | |
isolate [Pdfutil] | isolate p p' l isolate a central section of a list l , from the first
element after the elements for which predicate p is true, to the element
before p' is first true.
|
iter [Pdfutil] | |
iter2 [Pdfutil] | |
iter3 [Pdfutil] | |
iter_stream [Pdf] |
Iterate over just the stream objects in a document.
|
K | |
kappa [Pdfshapes] |
The factor by which the radius of a circle is multiplied to find the length
of the bezier control lines when approximating quarter arcs to make circles.
|
keep [Pdfutil] | |
L | |
land32 [Pdfutil] | |
land64 [Pdfutil] | |
landscape [Pdfpaper] |
Flip a paper size between landscape and portrait, swapping its dimensions.
|
largest_pow2_divisible [Pdfutil] |
The largest power of two by which a number is exactly divisible.
|
last [Pdfutil] |
Find the last element of a list.
|
lastchar [Pdfutil] |
Return the first character of a string, should it have one.
|
lcount [Pdfutil] |
Count the number of elements in a list for which predicate is true.
|
leafnames_of_dir [Pdfutil] |
Return a list of leafnames for the given folder in the current folder
|
length [Pdfutil] | |
list_of_hashtbl [Pdfutil] |
Make a list of key-value pairs reflecting the contents of a hash table.
|
lnot32 [Pdfutil] | |
lnot64 [Pdfutil] | |
log2of [Pdfutil] |
Base two logarithm
|
lookup [Pdfutil] | lookup x l looks up something, returning None if not found.
|
lookup_direct [Pdf] | lookup_direct doc key dict looks up the key returning an option type.
|
lookup_direct_orelse [Pdf] |
Same as
lookup_direct , but allow a second, alternative key.
|
lookup_exception [Pdf] |
Same, but with customised exception.
|
lookup_fail [Pdf] | lookup_fail errtext doc key dict looks up a key in a PDF dictionary or the
dictionary of a PDF stream.
|
lookup_failnull [Pdfutil] |
Same as
lookup , but no option type.
|
lookup_obj [Pdf] |
Lookup an object in a document, parsing it if required.
|
lor32 [Pdfutil] | |
lor64 [Pdfutil] | |
lose [Pdfutil] | List.filter has a confusing name, so we define keep and lose to avoid
error.
|
losenones [Pdfutil] |
Return just the non-
None elements of an 'a option list
|
lsl32 [Pdfutil] | |
lsl64 [Pdfutil] | |
lsr32 [Pdfutil] | |
lsr64 [Pdfutil] | |
lxor32 [Pdfutil] | |
lxor64 [Pdfutil] | |
M | |
make [Pdfpaper] |
Make a paper size given its unit, width and height.
|
make_matrix [Pdf] |
Build a matrix
pdfobject .
|
make_write_bitstream [Pdfio] |
Return a new write bistream.
|
many [Pdfutil] | many x n makes a list of length n with each element equal to x .
|
manyunique [Pdfutil] |
A version where we need to apply unit each time, for instance when producing
a list of random numbers.
|
map [Pdfutil] | |
map2 [Pdfutil] | |
map3 [Pdfutil] |
Similar to
map2 , but 3 arguments.
|
map4 [Pdfutil] |
Similar to
map2 , but 4 arguments.
|
map5 [Pdfutil] |
Similar to
map2 , but 5 arguments.
|
map_lol [Pdfutil] |
Map on lists of lists.
|
matrix_compose [Pdftransform] | compose a b produces a matrix equivalent to performing b then a .
|
matrix_invert [Pdftransform] |
Matrix inversion.
|
matrix_of_op [Pdftransform] |
Make a matrix from a single transformation operation
|
matrix_of_transform [Pdftransform] |
Make a matrix from a transform
|
max [Pdfutil] |
Monomorphic integer versions of
Pervasives functions.
|
mem [Pdfutil] |
Synonym for
List.mem .
|
mem' [Pdfutil] | List.mem with arguments reversed.
|
memoize [Pdfutil] | memoize f builds a memoized version of the function f .
|
merge_pagelabels [Pdfpagelabels] |
Merge some page labels for some PDFs and page ranges.
|
merge_pdfs [Pdfmerge] |
Merge PDF files.
|
mergedict [Pdfutil] |
Merge two lists, preferring elements in the second in the case of clashes.
|
min [Pdfutil] | |
mkbytes [Pdfio] |
Make bytes from a given size.
|
mkrotate [Pdftransform] |
Make a rotation matrix to rotate by a number of radians around a point.
|
mkscale [Pdftransform] |
Make a transformation matrix from an x and y scale and a point to scale about.
|
mkshearx [Pdftransform] |
Matrix to shear in x by a given factor about a point.
|
mksheary [Pdftransform] |
Matrix to shear in y by a given factor about a point.
|
mktranslate [Pdftransform] |
Make a transformation matrix from x and y translation.
|
mkunit [Pdfutil] | mkunit f x gives fun () -> f x
|
mkunitvector [Pdfutil] |
Make a unit vector in the direction from one point to a second.
|
mkvector [Pdfutil] | mkvector (a, b) (c, d) makes a vector from point (a, b) to point (c, d) .
|
N | |
name_of_colourspace [Pdfspace] |
Read the name of a colour, if it has one.
|
name_to_dingbats [Pdfglyphlist] |
Convert a glyph name to a Dingbats encoding number
|
name_to_macexpert [Pdfglyphlist] |
Convert a glyph name to a MacExpert encoding number
|
name_to_macroman [Pdfglyphlist] |
Convert a glyph name to a MacRoman encoding number
|
name_to_pdf [Pdfglyphlist] |
Convert a glyph name to a PDF encoding number
|
name_to_standard [Pdfglyphlist] |
Convert a glyph name to a Standard encoding number
|
name_to_symbol [Pdfglyphlist] |
Convert a glyph name to a Symbol encoding number
|
name_to_win [Pdfglyphlist] |
Convert a glyph name to a Windows encoding number
|
neq [Pdfutil] |
Inequality.
|
never [Pdfutil] |
The always-false predicate.
|
no_more [Pdfio] |
A distinguished byte value indicating "no more input"
|
none [Pdfutil] |
Predicates on the someness or noneness of an
'a option .
|
notnull [Pdfutil] |
Predicates on the nullness of a list.
|
notpred [Pdfutil] |
Invert a predicate.
|
nudge [Pdfio] |
Move forward one byte
|
null_hash [Pdfutil] |
The empty zero-sized hash table.
|
O | |
objcard [Pdf] |
Return the size of the object map.
|
objiter [Pdf] |
Iterate over the objects in a document.
|
objiter_gen [Pdf] |
Iterate over the objects in a document.
|
objiter_inorder [Pdf] |
The same, but in object number order.
|
objselfmap [Pdf] |
Map over all pdf objects in a document.
|
odd [Pdfutil] |
Even and odd predicates on integers.
|
offset_point [Pdfutil] |
Offset a point by a vector.
|
ops_of_simple_graphic [Pdfgraphics] |
Operations from a simple graphic (i.e no need for resources etc.)
|
option_map [Pdfutil] |
Map with a function returning an
option , dropping all None results and
extracting all Some ones.
|
option_map2 [Pdfutil] |
Like
option_map but with a two-argument function and two (equal-length)
input lists.
|
output_of_channel [Pdfio] |
Make an output from an OCaml channel
|
P | |
page_of_graphic [Pdfgraphics] |
Flatten a graphic to a list of operations and replace the operations in a
page by them, returning the new page.
|
pagelabel_of_pagenumber [Pdfpagelabels] |
Single label representing a given page.
|
pagelabeltext_of_pagenumber [Pdfpagelabels] |
Return the text for a page label.
|
pages_of_pagetree [Pdfpage] |
Extract the page tree from a PDF document and parse it to a list of page
objects.
|
pair [Pdfutil] |
A similar function to
couple , but the coupling is non-overlapping.
|
pair_ext [Pdfutil] |
A version of
pair which adds a unary function for the singleton, much
like couple_ext .
|
pair_reduce [Pdfutil] |
As
couple_reduce is to couple , so pair_reduce is to pair .
|
pairs [Pdfutil] |
Produce a list of overlapping pairs of elements in a list in order, producing
the empty list if on singleton input.
|
pairs_of_list [Pdfutil] |
Make consecutive elements of an even-length list into a list of pairs.
|
parse_function [Pdffun] |
Parse a function given a document and function object.
|
parse_matrix [Pdf] |
Calling
parse_matrix pdf name dict parses a PDF matrix found under
key name in dictionary dict into a Transform.transform_matrix .
|
parse_operators [Pdfops] |
Given a pdf document, resource dictionary and list of streams representing
the graphics content (PDF allows a single page's graphics content to be split
over several streams), return a list of operators.
|
parse_rectangle [Pdf] |
Parse a PDF rectangle structure into min x, min y, max x, max y.
|
parse_stream [Pdfops] |
Parse a single byte stream to an operator list given a document and resource
dictionary.
|
pdf_of_channel [Pdfread] |
Same as
pdf_of_input , but from an OCaml channel.
|
pdf_of_channel_lazy [Pdfread] |
As
pdf_of_channel , but delay loading of streams and parsing of objects like pdf_of_input_lazy .
|
pdf_of_file [Pdfread] |
Read a PDF from the given filename with optional user and owner passwords.
|
pdf_of_input [Pdfread] |
Read a PDF from a
Pdfio.input , with an optional user password which, if
absent, is assumed to be the empty string, and optional owner password.
|
pdf_of_input_lazy [Pdfread] |
Same as
pdf_of_input , but delay loading of streams and parsing of objects
(they will be loaded and parsed when needed).
|
pdf_of_pages [Pdfpage] |
Return a pdf with a subset of pages, but nothing else changed - exactly the
same page object numbers, so bookmarks etc still work.
|
pdf_to_channel [Pdfwrite] |
As
pdf_to_output but to an OCaml channel.
|
pdf_to_file [Pdfwrite] |
Simple write to given file name.
|
pdf_to_file_options [Pdfwrite] |
As
pdf_to_channel but to a named file.
|
pdf_to_output [Pdfwrite] |
Write a PDF document to an
Pdfio.output , optionally encrypting and/or
linearizing.
|
pdfdocstring_of_codepoints [Pdftext] |
Build a pdf string in pdfdocencoding (if no unicode-only characters are
used) or UTF16BE (if they are)
|
pdfdocstring_of_utf8 [Pdftext] |
Take a UTF8 string and convert to pdfdocencoding (if no unicode-only
characters are used) or UTF16BE (if they are))
|
pdfobject_of_destination [Pdfdest] |
Write a destination to a
Pdf.pdfobject .
|
pdfobject_of_function [Pdffun] |
Flatten a function to its PDF representation
|
pdfobjmap_empty [Pdf] |
Make an empty object map
|
pdfobjmap_find [Pdf] |
Find an object in the object map
|
peek_byte [Pdfio] |
Look at the next byte without advancing the pointer.
|
peek_char [Pdfio] |
Look at the next character without advancing the pointer.
|
perpendicular [Pdfutil] |
Find the vector
pi / 2 anticlockwise from the given one.
|
pi [Pdfutil] |
Pi.
|
pow [Pdfutil] | pow x y is y to the power x
|
pow2gt [Pdfutil] |
Largest power of two greater or equal to an integer.
|
pow2lt [Pdfutil] |
Largest power of two smaller or equal to an integer.
|
print_bytes [Pdfio] |
Print bytes to standard output.
|
print_floats [Pdfutil] |
Print a list of floating point numbers separated by spaces.
|
print_int32s [Pdfutil] |
Print a list of
int32 s separated by spaces
|
print_ints [Pdfutil] |
Print a list of integers separated by spaces
|
putbit [Pdfio] |
Put a single bit, 0 or 1.
|
putval [Pdfio] |
Put a multi-bit value (given as an
int32 ) containing the given number of
useful bits into a bitstream
|
R | |
rad_of_deg [Pdfutil] | |
read [Pdfafm] |
Return the header lines (header item, contents), character metrics
(character, width) and kerning pairs (char1, char2, kerm) from an AFM file.
|
read [Pdfpagelabels] |
Read the page labels from a document
|
read_bookmarks [Pdfmarks] |
Read the bookmarks from a document.
|
read_char_back [Pdfio] |
Read the previous character (if there is one), moving the pointer back one.
|
read_colourspace [Pdfspace] |
Read a colourspace from a PDF given a document, page resources dictionary and the colourspace object
|
read_debug [Pdfread] | |
read_destination [Pdfdest] |
Read a destination given a PDF and destionation object.
|
read_font [Pdftext] |
Read a font from a given document and object
|
read_line [Pdfio] |
Read a line from an input in the manner of
Pervasives.read_line .
|
read_lines [Pdfio] |
Read all the lines in an input, in the manner of
Pervasives.read_line .
|
read_ocg [Pdfocg] |
Read optional content data.
|
really_drop_evens [Pdfutil] |
Same as
drop_evens , but don't save the last element.
|
recompose [Pdftransform] |
Recompose from the above information.
|
rectangle [Pdfshapes] |
Calling
rectangle x y w h builds a path representing a rectangle with top
left (x, y) , width w and height h .
|
remove [Pdfpagelabels] |
Remove all page labels.
|
remove [Pdfutil] |
Remove something from a list, if it's there.
|
remove_bookmarks [Pdfmarks] |
Remove the bookmarks from a document.
|
remove_dict_entry [Pdf] |
Remove a dictionary entry, if it exists.
|
remove_duplicate_fonts [Pdfmerge] |
Remove duplicate fonts from a PDF.
|
remove_unreferenced [Pdf] |
Garbage-collect a pdf document.
|
removeobj [Pdf] |
Remove the given object
|
renumber_pages [Pdfpage] |
Rename the resources within a number of page resource dictionaries and
contents, so as to allow them to be merged without name clashes.
|
renumber_pdfs [Pdf] |
Make a number of PDF documents contain no mutual object numbers.
|
replace [Pdfutil] | replace k v l replaces the existing binding of k in l with one with binds k
to v .
|
replace_dict_entry [Pdf] |
Replace a dictionary entry, raising
Not_found if it's not there.
|
replace_number [Pdfutil] | replace n x xs replaces the n th element of the list xs with x (the first is element 1)
|
replaceinlist [Pdfutil] | replaceinlist f x l replaces any element of l for which f l is true
with x .
|
restrict_angle [Pdfshapes] |
Calling
restrict_angle s a restricts an angle a to one of those at s,
2s, 3s... returning the chosen one.
|
rev [Pdfutil] | |
rev_compare [Pdfutil] |
Like
Pervasives.compare , but the other way around.
|
rev_map [Pdfutil] | |
rev_map3 [Pdfutil] |
Similar to
rev_map , but 3 arguments.
|
rev_map4 [Pdfutil] |
Similar to
rev_map , but 4 arguments.
|
rev_map5 [Pdfutil] |
Similar to
rev_map , but 5 arguments.
|
reverse_glyph_hashes [Pdfglyphlist] |
The reverse of
glyph_hashes .
|
rewind [Pdfio] |
Move backward one byte
|
roman_lower [Pdfutil] |
Lowercase roman representation of a number
|
roman_upper [Pdfutil] |
Uppercase roman representation of a number
|
root2 [Pdfutil] |
Square root of two.
|
rotation_of_int [Pdfpage] |
The reverse.
|
round [Pdfutil] |
Round a real.
|
S | |
safe_float [Pdfutil] |
Make sure a floating point number is no degenarate, by making it zero if it is.
|
scalevectolength [Pdfutil] |
Scale a vector to a given length.
|
select [Pdfutil] |
Select the nth element in a list (first is element 1).
|
set [Pdfutil] |
Set a boolean reference to
true
|
set_array [Pdfutil] |
Set all the values of an array.
|
setify [Pdfutil] |
Remove duplicates from a list.
|
setify_preserving_order [Pdfutil] |
Same as
setify , but preserve order.
|
setinit [Pdfio] | setinit f s o l sets s o...o + l - 1 to values generated by f
|
setinit_string [Pdfio] | setinit_string f s o l sets s o...o + l - 1 to values generated by f
|
setminus [Pdfutil] |
The set
setminus a b contains all those elements which are in a but are
do not appear in b .
|
setminus_preserving_order [Pdfutil] |
The same, but preserving order
|
sha256 [Pdfcryptprimitives] |
SHA256 digest
|
sha384 [Pdfcryptprimitives] |
SHA344 digest
|
sha512 [Pdfcryptprimitives] |
SHA512 digest
|
sign_extend [Pdfutil] |
The call
sign_extend l n extends n of length l bits to fit a native integer
|
some [Pdfutil] | |
sort [Pdfutil] |
Tail-recursive versions of list functions (and some simple variations).
|
split [Pdfutil] | |
split3 [Pdfutil] | |
split5 [Pdfutil] | |
split6 [Pdfutil] | |
split8 [Pdfutil] | |
split_around [Pdfutil] |
Split a list into a list of lists at every point where a predicate is true
|
splitat [Pdfutil] |
Split a list at the given positions.
|
splitinto [Pdfutil] |
Split a list into some lists of length
n (and possibly a final one of
length < n ), preserving order.
|
splitinto_small [Pdfutil] |
Non-tail recursive version of splitinto, for use only when
n is small and fixed.
|
sqr [Pdfutil] |
Square a number
|
standard_font_of_name [Pdftext] |
Parses a string such as "/Times-Bold" or "/TimesNewRoman,Bold" to Pdftext.TimesRomanBold etc.
|
stemv_of_standard_font [Pdfstandard14] |
Return a suitable StemV value for a standard font
|
stream_of_ops [Pdfops] |
Flatten a list of operators to an uncompressed PDF stream.
|
streams_of_simple_graphic [Pdfgraphics] |
Pdfdoc.content entry from a simple graphic (i.e no need for resources etc.)
|
string_of_bookmark [Pdfmarks] |
Debug string from a bookmark.
|
string_of_bytes [Pdfio] |
Make a string from a bytes.
|
string_of_char [Pdfutil] |
Make a string from a character.
|
string_of_colourspace [Pdfspace] |
Produce a debug string
|
string_of_date [Pdfdate] |
Build a string from a date.
|
string_of_font [Pdftext] |
A debug string for the whole font datatype.
|
string_of_graphic [Pdfgraphics] |
Debug string of a
graphic
|
string_of_int_array [Pdfio] |
A string from a single int array
|
string_of_int_arrays [Pdfio] |
A string from a list of integer arrays
|
string_of_matrix [Pdftransform] |
String of a transformation matrix.
|
string_of_op [Pdfops] |
Make a string of a single operator (for debug purposes).
|
string_of_ops [Pdfops] |
Same as
string_of_op , but of several operators (for debug purposes).
|
string_of_pagelabel [Pdfpagelabels] |
Debug string of page label
|
string_of_path [Pdfgraphics] | |
string_of_pdf [Pdfwrite] |
Calculate a string of a pdf object.
|
string_of_standard_font [Pdftext] |
Returns a string such as "Times-Bold" for Pdftext.TimesBold etc.
|
string_of_transform [Pdftransform] |
Make a string of a transform for debug purposes.
|
string_replace_all [Pdfutil] |
Calling
string_replace_all x x' s replaces all instances of x with x'
in s , returning a new string.
|
swap [Pdfutil] |
Swaps the data at the given indexes in an array.
|
symbol_afm [Pdfafmdata] | |
T | |
tail_no_fail [Pdfutil] |
Like
List.tl but [] yields [] .
|
tails [Pdfutil] |
Ditto, tails.
|
take [Pdfutil] | take l n takes n elements from the list raising Invalid_argument if
there are not enough elements to take or if n < 0.
|
take' [Pdfutil] |
The same as
take , but with the arguments reversed.
|
takewhile [Pdfutil] |
Take elements from a list while a given predicate is true, returning them in order.
|
takewhile_reverse [Pdfutil] |
The same as
takewhile , but the list is returned in reverse order.
|
text_extractor_of_font [Pdftext] |
Build a text extractor from a document and font object
|
textwidth [Pdfstandard14] |
Calculate the width, in millipoints, of a string in the given font, taking
into account kerning if the first argument is true.
|
times_bold_afm [Pdfafmdata] | |
times_bold_italic_afm [Pdfafmdata] | |
times_italic_afm [Pdfafmdata] | |
times_roman_afm [Pdfafmdata] | |
tl [Pdfutil] | |
to_type3 [Pdftype0] |
Convert an Type 0 composite font containing CFF / Type 1 / Truetype
descendant font into a Type 3 font.
|
to_type3 [Pdftruetype] | |
to_type3 [Pdftype1] | |
to_type3 [Pdfcff] |
The Type 3 font is not necessarily valid for inclusion in a PDF, we just
intend to use it for rendering.
|
toint [Pdfutil] |
Same as
Pervasives.int_of_float
|
transform [Pdftransform] |
Transform a coordinate by a given transform.
|
transform_graphic [Pdfgraphics] |
Transform a graphic by a matrixn
|
transform_matrix [Pdftransform] |
Transform a coordinate by a given transformation matrix.
|
tryfind [Pdfutil] |
Option lookup on hashtables
|
tuple [Pdfutil] |
Make a tuple.
|
U | |
uncompress [Pdfflate] |
Uncompress data.
|
unique_key [Pdf] |
Given a dictionary and a prefix (e.g gs), return a name, starting with the
prefix, which is not already in the dictionary (e.g /gs0).
|
unit [Pdfpaper] |
Project the unit from a paper size
|
unopt [Pdfutil] |
Strip the
Some from an option.
|
uslegal [Pdfpaper] |
United States paper sizes.
|
usletter [Pdfpaper] | |
utf8_of_codepoints [Pdftext] |
A UTF8 string for a list of unicode codepoints
|
utf8_of_pdfdocstring [Pdftext] |
Take a pdf string (which will be either pdfdocencoding or UTF16BE) and
return a string representing the same unicode codepoints in UTF8
|
V | |
veclength [Pdfutil] |
The length of a vector.
|
W | |
width [Pdfpaper] |
Project the width from a paper size.
|
write [Pdfpagelabels] |
Write page labels to a document, replacing any there.
|
write_bitstream_append_aligned [Pdfio] |
Append two write bitstreams, aligning at boundary
|
write_colourspace [Pdfspace] |
Write a colourspace to a PDF, returning it.
|
write_debug [Pdfwrite] |
When set to
true , various pieces of information are printed to standard
output when a PDF is written.
|
write_font [Pdftext] |
Write a font to a given document, returning the object number for the main
font dictionary
|
write_ocg [Pdfocg] |
Write optional content data.
|
Z | |
zapf_dingbats_afm [Pdfafmdata] | |
zipn [Pdfutil] |
Take a list of lists of equal length, and turn into a list of lists, the
first containing all the first elements of the original lists, the second the
second, and so on.
|