cpdf-source/docsplits/dotnetsplits/c13.tex

48 lines
1.1 KiB
TeX
Raw Permalink Normal View History

2022-03-07 18:16:03 +01:00
CHAPTER 12. File Attachments
Cpdf.attachFile(String, Cpdf.Pdf)
2022-03-09 13:07:27 +01:00
Attaches a file to the pdf. It is attached at document level.
2022-03-07 18:16:03 +01:00
Cpdf.attachFileToPage(String, Cpdf.Pdf, Int32)
2022-03-09 13:07:27 +01:00
Attaches a file, given its file name, pdf, and the page number to which it
should be attached.
2022-03-07 18:16:03 +01:00
Cpdf.attachFileFromMemory(Byte[], String, Cpdf.Pdf)
2022-03-09 13:07:27 +01:00
Attaches data from memory, just like attachFile.
2022-03-07 18:16:03 +01:00
Cpdf.attachFileToPageFromMemory(Byte[], String, Cpdf.Pdf, Int32)
Attaches to a page from memory, just like attachFileToPage.
Cpdf.removeAttachedFiles(Cpdf.Pdf)
Removes all page- and document-level attachments from a document.
Cpdf.startGetAttachments(Cpdf.Pdf)
Cpdf.numberGetAttachments
2022-03-09 13:07:27 +01:00
Lists information about attachments. Call startGetAttachments(pdf) first, then
numberGetAttachments to find out how many there are. Then getAttachmentName
etc. to return each one 0...(n - 1). Finally, call endGetAttachments to clean
up.
2022-03-07 18:16:03 +01:00
Cpdf.getAttachmentName(Int32)
Gets the name of an attachment.
Cpdf.getAttachmentPage(Int32)
Gets the page number. 0 = document level.
Cpdf.getAttachmentData(Int32)
Gets the attachment data itself.
Cpdf.endGetAttachments
Cleans up after getting attachments.