mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
HTMl manual for cpdflib
This commit is contained in:
55
html_manual/splits/c13.tex
Normal file
55
html_manual/splits/c13.tex
Normal file
@@ -0,0 +1,55 @@
|
||||
/* CHAPTER 12. File Attachments */
|
||||
|
||||
/*
|
||||
* cpdf_attachFile(filename, pdf) attaches a file to the pdf. It is attached
|
||||
* at document level.
|
||||
*/
|
||||
void cpdf_attachFile(const char[], int);
|
||||
|
||||
/*
|
||||
* cpdf_attachFileToPage(filename, pdf, pagenumber) attaches a file, given
|
||||
* its file name, pdf, and the page number to which it should be attached.
|
||||
*/
|
||||
void cpdf_attachFileToPage(const char[], int, int);
|
||||
|
||||
/*
|
||||
* cpdf_attachFileFromMemory(memory, length, filename, pdf) attaches from
|
||||
* memory, just like cpdf_attachFile.
|
||||
*/
|
||||
void cpdf_attachFileFromMemory(void *, int, const char[], int);
|
||||
|
||||
/*
|
||||
* cpdf_attachFileToPageFromMemory(memory, length, filename, pdf, pagenumber)
|
||||
* attaches from memory, just like cpdf_attachFileToPage.
|
||||
*/
|
||||
void cpdf_attachFileToPageFromMemory(void *, int, const char[], int, int);
|
||||
|
||||
/* Remove all page- and document-level attachments from a document */
|
||||
void cpdf_removeAttachedFiles(int);
|
||||
|
||||
/*
|
||||
* List information about attachments. Call cpdf_startGetAttachments(pdf)
|
||||
* first, then cpdf_numberGetAttachments to find out how many there are. Then
|
||||
* cpdf_getAttachmentName to return each one 0...(n - 1). Finally, call
|
||||
* cpdf_endGetAttachments to clean up.
|
||||
*/
|
||||
void cpdf_startGetAttachments(int);
|
||||
|
||||
/* Get the number of attachments. */
|
||||
int cpdf_numberGetAttachments(void);
|
||||
|
||||
/* Get the name of the attachment. */
|
||||
char *cpdf_getAttachmentName(int);
|
||||
|
||||
/* Gets the page number. 0 = document level. */
|
||||
int cpdf_getAttachmentPage(int);
|
||||
|
||||
/*
|
||||
* cpdf_getAttachmentData(serial number, &length) returns a pointer to the
|
||||
* data, and its length.
|
||||
*/
|
||||
void *cpdf_getAttachmentData(int, int *);
|
||||
|
||||
/* Clean up after getting attachments. */
|
||||
void cpdf_endGetAttachments(void);
|
||||
|
Reference in New Issue
Block a user