提供转换、优化、合并、拆分、ocr、打印文档和pdf的专业功能。
pdf4me的Python项目详细描述
pdf4me客户端api是一个python包,它连接到具有许多功能的高度可伸缩saas云服务,以解决您的文档和pdf需求。SaaS API提供了转换、优化、压缩、生成、合并、拆分、OCR、丰富、存档、打印文档和PDF的专家功能。
Feature | Description |
---|---|
Optimize | PDF's can often be optimized by removing structural redundancy. This leads to much smaller PDF's. |
Merge | Multiple PDF's can be merged into single optimized PDFs. |
Split | A PDF can be splitted into multiple PDF's. |
Extract | From a PDF extract multiple pages into a new document. |
Images | Extract images from your document, can be any type of document. |
Create Pdf/A | Create a archive conform PDF/A including xmp Metadata. |
Convert to PDF | Convert your documents from any format to a proper PDF document. |
Stamp | Stamp your document with text or images. |
Rotate | Rotates pages in your document. |
Protect | Protects or Unlocks your document with given password. |
Validation | Validate your document for PDF/A compliance. |
Repair | Repairs your document. |
Barcode | Reads all types of barcode embedded in document or creates them |
开始
要开始获取令牌,请删除我们的email或在我们的portal中注册。
身份验证需要令牌。pdf4me客户机api已经为您提供了必要的实现。您只需要获得pdf4meclient的一个实例,如下面的示例所示。
"""Either you store them in the config.properties file with token Do not use any quotes:Correct: token=sample-not-working-key-aaaaaaaIncorrect: token="sample-not-working-key-aaaaaaa"In case the location of your config.properties differs from the default location ('../config.properties'), provide the optional argument path_to_config_file."""pdf4me_client=Pdf4meClient(path_to_config_file='path_to_my_config.properties')""" or you pass them as arguments when constructing the Pdf4meClient object """pdf4me_client=Pdf4meClient(token=token)# The pdf4meClient object delivers the necessary authentication when instantiating the different pdf4meClients such as for instance Mergemerge_client=MergeClient(pdf4me_client)merged_pdf=merge_client.merge_2_pdfs(file1=FileReader().get_file_handler(path='my_first_pdf.pdf'),file2=FileReader().get_file_handler(path='my_second_pdf.pdf'))
文档
有关提供的所有功能以及如何使用pdf4me的详细信息,请访问我们的documentation。
建议
建议在多线程环境中为每个线程创建一个Pdf4meClient
实例,以避免任何潜在的问题。