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.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.

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

Gereksinimler
Bağımlılıklar
SDK aşağıdaki paketleri otomatik olarak yükler:
| Paket | Kısıtlama |
|---|
| urllib3 | >= 1.15 |
| six | >= 1.10 |
| certifi | — |
| python-dateutil | — |
Hızlı Başlangıç
API kimlik bilgilerinizi alın
GroupDocs.Viewer 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.Viewer Bulut SDK’sını kullanmaya başlamak için aşağıdaki kodu kullanın:
import groupdocs_viewer_cloud
# Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud
client_id = "YourClientId"
client_secret = "YourClientSecret"
# Create API configuration
configuration = groupdocs_viewer_cloud.Configuration(client_id, client_secret)
configuration.api_base_url = "https://api.groupdocs.cloud"
# Create instance of the View API
view_api = groupdocs_viewer_cloud.ViewApi.from_config(configuration)
Bir belgeyi HTML’ye dönüştürme
Başlatıldıktan sonra bulut depolama alanından bir belge oluşturmak için bu temel örneği kullanın:
import groupdocs_viewer_cloud
client_id = "YourClientId"
client_secret = "YourClientSecret"
view_api = groupdocs_viewer_cloud.ViewApi.from_keys(client_id, client_secret)
view_options = groupdocs_viewer_cloud.ViewOptions()
view_options.file_info = groupdocs_viewer_cloud.FileInfo()
view_options.file_info.file_path = "SampleFiles/sample.docx"
view_options.view_format = "HTML"
request = groupdocs_viewer_cloud.CreateViewRequest(view_options)
response = view_api.create_view(request)
print("Document rendered: " + str(len(response.pages)) + " pages")
Bu hızlı başlangıç kılavuzuyla, Python uygulamalarınızda GroupDocs.Viewer Cloud’u kullanarak belge oluşturmaya başlamaya hazırsınız. Daha fazla ayrıntı için belgeleri ziyaret edin.
Viewer API aracılığıyla kullanılabilen desteklenen dosya biçimlerinin tam listesini alın.
import groupdocs_viewer_cloud
info_api = groupdocs_viewer_cloud.InfoApi.from_keys("YourClientId", "YourClientSecret")
try:
response = info_api.get_supported_file_formats()
print("Supported file-formats:")
for fmt in response.formats:
print("{0} ({1})".format(fmt.file_format, fmt.extension))
except groupdocs_viewer_cloud.ApiException as e:
print("Exception when calling get_supported_file_formats: {0}".format(e.message))
Bir Belgeyi PDF Olarak Oluşturun
Bu örnek, GroupDocs.Viewer Bulut API’sini kullanarak bir Word belgesinin PDF formatına nasıl dönüştürüleceğini gösterir.
import groupdocs_viewer_cloud
view_api = groupdocs_viewer_cloud.ViewApi.from_keys("YourClientId", "YourClientSecret")
view_options = groupdocs_viewer_cloud.ViewOptions()
view_options.file_info = groupdocs_viewer_cloud.FileInfo()
view_options.file_info.file_path = "SampleFiles/sample.docx"
view_options.view_format = "PDF"
view_options.render_options = groupdocs_viewer_cloud.PdfOptions()
request = groupdocs_viewer_cloud.CreateViewRequest(view_options)
response = view_api.create_view(request)
print("Document rendered to PDF: " + response.file.path)
Elektronik Tabloyu HTML olarak işle
Bu kod örneği, GroupDocs.Viewer Bulut API’sini kullanarak bir Excel elektronik tablosunu HTML’ye dönüştürür.
import groupdocs_viewer_cloud
view_api = groupdocs_viewer_cloud.ViewApi.from_keys("YourClientId", "YourClientSecret")
view_options = groupdocs_viewer_cloud.ViewOptions()
view_options.file_info = groupdocs_viewer_cloud.FileInfo()
view_options.file_info.file_path = "SampleFiles/sample.xlsx"
view_options.view_format = "HTML"
view_options.render_options = groupdocs_viewer_cloud.HtmlOptions()
request = groupdocs_viewer_cloud.CreateViewRequest(view_options)
response = view_api.create_view(request)
print("Spreadsheet rendered to HTML: " + str(len(response.pages)) + " pages")
Belgeyi Duyarlı HTML Düzeniyle Oluşturun
Bir belgeyi çeşitli ekran boyutlarına ve cihazlara uyum sağlayan duyarlı HTML olarak işleyin.
import groupdocs_viewer_cloud
view_api = groupdocs_viewer_cloud.ViewApi.from_keys("YourClientId", "YourClientSecret")
view_options = groupdocs_viewer_cloud.ViewOptions()
view_options.file_info = groupdocs_viewer_cloud.FileInfo()
view_options.file_info.file_path = "SampleFiles/sample.docx"
view_options.view_format = "HTML"
view_options.render_options = groupdocs_viewer_cloud.HtmlOptions()
view_options.render_options.is_responsive = True
request = groupdocs_viewer_cloud.CreateViewRequest(view_options)
response = view_api.create_view(request)
print("Responsive HTML rendered: " + str(len(response.pages)) + " pages")
Seçilen Sayfaları Oluştur
Belgenin yalnızca belirli sayfalarını dönüştürerek belgenin yalnızca bir kısmına ihtiyaç duyulduğunda işlem süresinden tasarruf edin.
import groupdocs_viewer_cloud
view_api = groupdocs_viewer_cloud.ViewApi.from_keys("YourClientId", "YourClientSecret")
view_options = groupdocs_viewer_cloud.ViewOptions()
view_options.file_info = groupdocs_viewer_cloud.FileInfo()
view_options.file_info.file_path = "SampleFiles/sample.docx"
view_options.view_format = "HTML"
view_options.render_options = groupdocs_viewer_cloud.HtmlOptions()
view_options.render_options.pages_to_render = [2, 3]
request = groupdocs_viewer_cloud.CreateViewRequest(view_options)
response = view_api.create_view(request)
print("Selected pages rendered: " + str(len(response.pages)) + " pages")
Word Belgesini İzlenen Değişikliklerle Oluşturma
Çıktı HTML’sinde izlenen değişiklikleri içeren bir Word belgesini oluşturun.
import groupdocs_viewer_cloud
view_api = groupdocs_viewer_cloud.ViewApi.from_keys("YourClientId", "YourClientSecret")
view_options = groupdocs_viewer_cloud.ViewOptions()
view_options.file_info = groupdocs_viewer_cloud.FileInfo()
view_options.file_info.file_path = "SampleFiles/with_tracked_changes.docx"
view_options.view_format = "HTML"
view_options.render_options = groupdocs_viewer_cloud.HtmlOptions()
view_options.render_options.word_processing_options = groupdocs_viewer_cloud.WordProcessingOptions()
view_options.render_options.word_processing_options.render_tracked_changes = True
request = groupdocs_viewer_cloud.CreateViewRequest(view_options)
response = view_api.create_view(request)
print("Tracked changes rendered: " + str(len(response.pages)) + " pages")
Belge Bilgilerini Al
Oluşturmadan önce sayfa sayısı gibi belge meta verilerini alın.
import groupdocs_viewer_cloud
info_api = groupdocs_viewer_cloud.InfoApi.from_keys("YourClientId", "YourClientSecret")
view_options = groupdocs_viewer_cloud.ViewOptions()
view_options.file_info = groupdocs_viewer_cloud.FileInfo()
view_options.file_info.file_path = "SampleFiles/sample.docx"
request = groupdocs_viewer_cloud.GetInfoRequest(view_options)
result = info_api.get_info(request)
print("Document pages: " + str(len(result.pages)))
Bulut Depolama Olmadan Dönüştürme ve İndirme
Yerel bir belgeyi doğrudan işleyin ve çıktı dosyasını önce bulut depolama alanına yüklemeden alın.
import groupdocs_viewer_cloud
view_api = groupdocs_viewer_cloud.ViewApi.from_keys("YourClientId", "YourClientSecret")
with open("sample.docx", "rb") as file:
request = groupdocs_viewer_cloud.ConvertAndDownloadRequest("jpg", file)
output_path = view_api.convert_and_download(request)
print("Convert and download completed: " + output_path)
GitHub’daki Örnek Projeler
GroupDocs.Viewer Bulut Python Örnekleri deposu aşağıdakileri kapsayan çalıştırılmaya hazır örnekler içerir:
| Kategori | Örnekler |
|---|
| Temel Kullanım | Desteklenen formatlar, belge bilgileri, ekler, dönüştürme ve indirme |
| HTML Görüntüleyici | Duyarlı düzen, HTML’yi küçültün, yazı tiplerini hariç tutun, yazdırma için optimize edin |
| Resim Görüntüleyici | Resim boyutunu, JPG kalitesini, metin kaplamasını, metin koordinatlarını ayarlayın |
| PDF Görüntüleyici | PDF’yi koruyun, JPG kalitesini ayarlayın |
| Ortak Oluşturma Seçenekleri | Filigranlar, seçilen sayfalar, ardışık sayfalar, yorumlar, notlar, özel yazı tipleri |
| Yükleme Seçenekleri | Korumalı belgeler, kodlamayı belirtin |
| Dosya Türüne Göre Oluşturma | Arşiv, CAD, e-posta, Outlook, PDF, elektronik tablo, Visio, Word, Lotus Notes, MS Project, metin |
Örnekler nasıl çalıştırılır
- örnek deposunu kopyalayın veya indirin
Examples dizinine gidinRunExamples.py‘i düzenleyin ve client_id ile client_secret ayarlarınızı yapınpip install groupdocs-viewer-cloud -U‘ı çalıştırınpython RunExamples.py komutunu çalıştırın
Daha fazla ayrıntı için Başlarken adresini ziyaret edin.

Document Rendering API | Python Cloud API | GroupDocs.Viewer Cloud | REST API | HTML Rendering | PDF Conversion | Image Rendering | Document Viewing | Multi-Page Rendering | Document Streaming | CAD Rendering | E-Mail Message Rendering | Visio Rendering | MS Project Rendering | Outlook Data Rendering | Spreadsheet Rendering | Word Processing Rendering | Custom View Options | Responsive HTML | Attachment Rendering | Secure API Access | Cloud Storage Integration