package cpdf
Module Cpdfattach
type t = {name : string;pagenumber : int;data : unit -> Pdfio.bytes;description : string option;relationship : string option;
}File Attachments
Remove characters which might not make good filenames from a UTF8 string.
val attach_file :
?memory:Pdfio.bytes ->
bool ->
int option ->
Pdf.t ->
string option ->
string option ->
string ->
Pdf.tattach_file keepversion topage pdf relationship description filename attaches the file in filename to the pdf, optionally to a page (rather than document-level). If keepversion is true, the PDF version number won't be altered.
List attached files. Attachment name and page number. Page 0 is document level.
val dump_attached_files : Pdf.t -> string -> unitDump attached files to a given directory.
val size_attached_files : Pdf.t -> intTotal size in bytes of all attached files.