PDFWriter

Vue de l’ensemble

‘PDFWriter’ est une classe dans Aspose.PDF FOSS pour Java.

Sérialiser un graphique d’objets PDF dans un fichier PDF valide.

Cette classe fournit 7 méthodes pour travailler avec les objets PDFWriter dans les programmes Java. Les méthodologies disponibles comprennent: ‘PDFWriter’, ‘allocateObjectNumber’, setEncryptor', ‘write’, 'writCompressed', ’writaIncremental, ‘writIncrementalWithXRefStream’. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspouse.PDF FOSS pour le package Java .

méthodes

SignatureDescription
setEncryptor(encryptor: PDFEncryptor, encryptDictKey: PdfObjectKey)Sets the encryptor for write-side encryption.
PDFWriter(output: OutputStream, pdfVersion: float)Constructs a new PDFWriter.
write(trailer: PdfDictionary, objects: Map<PdfObjectKey, PdfBase>)Writes a complete PDF file: header, objects, xref table, and trailer.
writeIncremental(original: RandomAccessReader, trailer: PdfDictionary, modifiedObjects: Map<PdfObjectKey, PdfBase>)Writes an incremental update to an existing PDF.
allocateObjectNumber()PdfObjectKeyAssigns a new object number and returns the key.
writeCompressed(trailer: PdfDictionary, objects: Map<PdfObjectKey, PdfBase>, maxPerStream: int)Writes a complete PDF with object streams and xref stream (PDF 1.5+).
writeIncrementalWithXRefStream(original: RandomAccessReader, trailer: PdfDictionary, modifiedObjects: Map<PdfObjectKey, PdfBase>)Writes an incremental update using an xref stream instead of a text xref table.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français