LdmPdfWriter

General

It converts a light_document_model.Document object to a PDF file written to a specified output path. Instantiate it with an optional PdfSaveOptions object to configure export settings, then call write() with the document object and the target output path.

Use LdmPdfWriter when you need to produce a PDF file from a parsed Word document. It is the internal writer invoked by the high-level Document.save() path when the target format is PDF. The options property provides access to PdfSaveOptions for advanced PDF generation settings.

LdmPdfWriter és una classe en Aspose.Words FOSS per Python.

Converteix un light_document_model.Documentヽ object a un fitxer PDF escrit en una ruta de sortida especificada. Instal·la amb un objecte opcional ⌒PdfSaveOptions゚ per configurar la configuració d'exportació, després crida ゙write() amb l’objecte del document i la ruta d ‘aportació objectiu.

Utilitza LdmPdfWriter quan necessites produir un fitxer PDF a partir d’un document de Word analitzat. És l’escriptor intern invocat pel camí del nivell alt ⌒Document.save() Quan el format objectiu és PDF. La propietat ゚options proporciona accés a ̋{ PLACHEHOLODER _1﴾` per a configuracions avançades de generació de PDF .

Propietats

NameTypeAccessDescription
options``getConfigurable settings that control PDF output generation

Mètodes

SignatureDescription
__init__(options: Optional[PdfSaveOptions])
write(source: ldm.Document, output_path: Union[str, Path])Convert source to PDF and write to output_path.
 Català