本节展示如何获取 PDF 文件中的页数,获取有关 PDF 页面属性(如颜色)的信息,并设置页面属性。...pdf as ap # 打开文档 document = ap . Document ( input_pdf...aspose.pdf as ap # 实例化Document实例 document = ap . Document ()...
Cette section décrit comment ajouter une image à un fichier PDF existant en utilisant une bibliothèque Python....pdf as ap # Ouvrir le document document = ap . Document (...] . add_image ( image_file , ap . Rectangle ( 20 , 730 , 120...
Cet exemple montre comment modifier l'apparence visuelle d'un champ de formulaire PDF à l'aide d'Aspose.PDF for Python....pdf as ap import aspose.pydrawing as ap_pydrawing import...outfile ): # Open document doc = ap . Document ( infile ) # Create...
Узнайте, как перемещать страницы PDF внутри документа или между документами в Python....pdf as ap def move_page_from_one_document_to_another...: str ) -> None : document = ap . Document ( input_file_name...
Learn how to work with PDF attachments using Python and Aspose.PDF....pdf as ap def extract_single_attachment...attachment_name , outfile ): with ap . Document ( infile ) as document...
Learn how to work with the Stamp class to add image, PDF, and text-based stamps to PDF documents in Python....pdf as ap import aspose.pdf.facades as...def _create_text_state () -> ap . text . TextState : """Create...