mirror of
				https://github.com/johnwhitington/cpdf-source.git
				synced 2025-06-05 22:09:39 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			TeX
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			TeX
		
	
	
	
	
	
| CHAPTER 12. File Attachments
 | |
| 
 | |
| Cpdf.attachFile(String, Cpdf.Pdf)
 | |
| 
 | |
| Attaches a file to the pdf. It is attached at document level.
 | |
| 
 | |
| Cpdf.attachFileToPage(String, Cpdf.Pdf, Int32)
 | |
| 
 | |
| Attaches a file, given its file name, pdf, and the page number to which it
 | |
| should be attached.
 | |
| 
 | |
| Cpdf.attachFileFromMemory(Byte[], String, Cpdf.Pdf)
 | |
| 
 | |
| Attaches data from memory, just like attachFile.
 | |
| 
 | |
| 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
 | |
| 
 | |
| 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.
 | |
| 
 | |
| 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.
 |