Ürünlerimize göz atın

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.


Product Docs Swagger Examples Blog Support Dashboard

Kurulum

Paket PyPI’de mevcut‘dir ve aşağıdaki komut çalıştırılarak pip aracılığıyla kurulabilir:

pip install groupdocs-merger-cloud

PyPI - Version PyPI - Downloads Python-GroupDocsCloud


Gereksinimler

Bağımlılıklar

SDK aşağıdaki paketleri otomatik olarak yükler:

PaketKısıtlama
urllib3>= 1.15
six>= 1.10
certifi
python-dateutil

Hızlı Başlangıç

API kimlik bilgilerinizi alın

GroupDocs.Merger Cloud’u kullanmak için, GroupDocs.Cloud Dashboard adresinden kaydolun ve Müşteri Kimliğinizi ve Müşteri Sırrınızı alın.

API’yi başlat

Python için GroupDocs.Merger Bulut SDK’sını kullanmaya başlamak için aşağıdaki kodu kullanın:

import groupdocs_merger_cloud

# Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud
client_id = "YourClientId"
client_secret = "YourClientSecret"

# Create API configuration
configuration = groupdocs_merger_cloud.Configuration(client_id, client_secret)
configuration.api_base_url = "https://api.groupdocs.cloud"

# Create instance of the Document API
document_api = groupdocs_merger_cloud.DocumentApi.from_config(configuration)

Birden fazla belgeyi birleştirme

Başlatıldıktan sonra, Word belgelerini tek bir dosyada birleştirmek için bu temel örneği kullanın:

import groupdocs_merger_cloud

client_id = "YourClientId"
client_secret = "YourClientSecret"

document_api = groupdocs_merger_cloud.DocumentApi.from_keys(client_id, client_secret)

item1 = groupdocs_merger_cloud.JoinItem()
item1.file_info = groupdocs_merger_cloud.FileInfo("WordProcessing/four-pages.docx")

item2 = groupdocs_merger_cloud.JoinItem()
item2.file_info = groupdocs_merger_cloud.FileInfo("WordProcessing/one-page.docx")

options = groupdocs_merger_cloud.JoinOptions()
options.join_items = [item1, item2]
options.output_path = "Output/joined.docx"

result = document_api.join(groupdocs_merger_cloud.JoinRequest(options))

print("Output file path = " + result.path)

Bu hızlı başlangıç ​​kılavuzuyla, Python uygulamalarınızda GroupDocs.Merger Cloud’u kullanarak belgeleri birleştirmeye başlamaya hazırsınız. Daha fazla ayrıntı için belgeleri ziyaret edin.

Desteklenen Dosya Formatlarını Alın

Birleşme API’si aracılığıyla kullanılabilen desteklenen dosya biçimlerinin tam listesini alın.

import groupdocs_merger_cloud

info_api = groupdocs_merger_cloud.InfoApi.from_keys("YourClientId", "YourClientSecret")

result = info_api.get_supported_file_formats()

for fmt in result.formats:
    print(fmt.file_format)

Çeşitli Belgelerdeki Sayfaları Birleştirin

Birden çok kaynak belgedeki belirli sayfaları, sayfa aralıkları ve filtre desteğiyle tek bir çıktı dosyasında birleştirin.

import groupdocs_merger_cloud

document_api = groupdocs_merger_cloud.DocumentApi.from_keys("YourClientId", "YourClientSecret")

item1 = groupdocs_merger_cloud.JoinItem()
item1.file_info = groupdocs_merger_cloud.FileInfo("WordProcessing/sample-10-pages.docx")
item1.pages = [3, 6, 8]

item2 = groupdocs_merger_cloud.JoinItem()
item2.file_info = groupdocs_merger_cloud.FileInfo("WordProcessing/four-pages.docx")
item2.start_page_number = 1
item2.end_page_number = 4
item2.range_mode = "OddPages"

options = groupdocs_merger_cloud.JoinOptions()
options.join_items = [item1, item2]
options.output_path = "Output/joined-pages.docx"

result = document_api.join(groupdocs_merger_cloud.JoinRequest(options))

print("Output file path = " + result.path)

Belgeleri Farklı Formatlarda PDF’ye Birleştirin

Farklı formatlardaki belgeleri (örneğin, parola korumalı PDF ve DOCX) tek bir PDF dosyasında birleştirin.

import groupdocs_merger_cloud

document_api = groupdocs_merger_cloud.DocumentApi.from_keys("YourClientId", "YourClientSecret")

item1 = groupdocs_merger_cloud.JoinItem()
item1.file_info = groupdocs_merger_cloud.FileInfo(
    "Pdf/one-page-password.pdf", None, None, "password"
)

item2 = groupdocs_merger_cloud.JoinItem()
item2.file_info = groupdocs_merger_cloud.FileInfo("WordProcessing/one-page.docx")

options = groupdocs_merger_cloud.JoinOptions()
options.join_items = [item1, item2]
options.output_path = "Output/joined.pdf"

result = document_api.join(groupdocs_merger_cloud.JoinRequest(options))

print("Output file path = " + result.path)

Belgeyi Tek Sayfalara Böl

Tam sayfa numaralarını belirterek bir belgeyi ayrı dosyalara bölün.

import groupdocs_merger_cloud

document_api = groupdocs_merger_cloud.DocumentApi.from_keys("YourClientId", "YourClientSecret")

options = groupdocs_merger_cloud.SplitOptions()
options.file_info = groupdocs_merger_cloud.FileInfo("WordProcessing/sample-10-pages.docx")
options.output_path = "Output/split-document"
options.pages = [1, 3]
options.mode = "Pages"

result = document_api.split(groupdocs_merger_cloud.SplitRequest(options))

print("Documents count = " + str(len(result.documents)))

Sayfaları Sayılara Göre Çıkar

Bir belgedeki belirli sayfaları yeni bir dosyaya çıkarın.

import groupdocs_merger_cloud

pages_api = groupdocs_merger_cloud.PagesApi.from_keys("YourClientId", "YourClientSecret")

options = groupdocs_merger_cloud.ExtractOptions()
options.file_info = groupdocs_merger_cloud.FileInfo("WordProcessing/sample-10-pages.docx")
options.output_path = "Output/extract-pages-by-numbers.docx"
options.pages = [2, 4, 7]

result = pages_api.extract(groupdocs_merger_cloud.ExtractRequest(options))

print("Output file path = " + result.path)

Belge Sayfalarını Döndür

Yönlerini ayarlamak için PDF belgesindeki seçili sayfaları döndürün.

import groupdocs_merger_cloud

pages_api = groupdocs_merger_cloud.PagesApi.from_keys("YourClientId", "YourClientSecret")

options = groupdocs_merger_cloud.RotateOptions()
options.file_info = groupdocs_merger_cloud.FileInfo("Pdf/ten-pages.pdf")
options.output_path = "Output/rotate-pages.pdf"
options.pages = [2, 4]
options.mode = "Rotate90"

result = pages_api.rotate(groupdocs_merger_cloud.RotateRequest(options))

print("Output file path = " + result.path)

Belgeye Şifre Ekle

Parola koruması ekleyerek bir belgenin güvenliğini sağlayın.

import groupdocs_merger_cloud

security_api = groupdocs_merger_cloud.SecurityApi.from_keys("YourClientId", "YourClientSecret")

options = groupdocs_merger_cloud.Options()
options.file_info = groupdocs_merger_cloud.FileInfo(
    "WordProcessing/one-page.docx", None, None, "password"
)
options.output_path = "Output/add-password.docx"

result = security_api.add_password(groupdocs_merger_cloud.AddPasswordRequest(options))

print("Output file path = " + result.path)

GitHub’daki Örnek Projeler

GroupDocs.Merger Cloud Python Samples deposu aşağıdakileri kapsayan çalıştırılmaya hazır örnekler içerir:

KategoriÖrnekler
BilgiDesteklenen dosya türleri, belge bilgileri
Belge İşlemleriBirden çok belgeyi birleştirin, çapraz formatta birleştirin, sayfaları birleştirin, görüntüleri birleştirin, belgeleri bölün, önizleyin, eki içe aktarın
Sayfa İşlemleriSayfaları çıkarın, sayfaları taşıyın, sayfaları kaldırın, sayfaları döndürün, sayfaları değiştirin, yönü değiştirin
Güvenlik OperasyonlarıŞifre ekleme, kaldırma, güncelleme; şifre korumasını kontrol edin

Örnekler nasıl çalıştırılır

  1. örnek deposunu kopyalayın veya indirin
  2. Examples/Common.py‘i düzenleyin ve client_id ile client_secret ayarlarınızı yapın
  3. Examples dizinine gidin
  4. pip install groupdocs-merger-cloud -U‘ı çalıştırın
  5. python RunExamples.py komutunu çalıştırın

Daha fazla ayrıntı için Başlarken adresini ziyaret edin.


Product Docs Swagger Examples Blog Support Dashboard


Tags

Document Merging API | Python Cloud API | GroupDocs.Merger Cloud | REST API | Page Manipulation | Document Security | Password Protection | Cloud Storage Integration | File Operations | Folder Operations | Document Splitting | PDF Merging | Cross-format Merging | Word Document Merging | Excel File Merging | Presentation Merging | Document Reorganization | Secure API Access | Document Joining | Document Manipulation API | Merge Multiple Formats | Cross-platform API



 Türkçe