Last active
January 15, 2019 07:36
-
-
Save groupdocscloud/62dc8525f388f52d68047c1ce56986a4 to your computer and use it in GitHub Desktop.
This Gist contains Python examples of GroupDocs.Viewer Cloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Viewer-Python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
options = HtmlOptions(); | |
options.attachment_password = attachmentPassword; | |
request = HtmlCreateAttachmentPagesCacheRequest(file, attachmentName, options); | |
request.folder = folder | |
request.storage = storage | |
request.attachment_password = attachmentPassword; | |
response = api.html_create_attachment_pages_cache(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
options = HtmlOptions(); | |
options.attachment_password = attachmentPassword; | |
request = ImageCreateAttachmentPagesCacheRequest(file, attachmentName, options); | |
request.folder = folder | |
request.storage = storage | |
request.attachment_password = attachmentPassword; | |
response = api.image_create_attachment_pages_cache(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
fileName = "sample.DXF" | |
folder = "" | |
storage = "MyStorage" | |
cadOptions = CadOptions() | |
cadOptions.layers = ["SLD-0", "DEFAULT_3"] | |
htmlOptions = HtmlOptions() | |
htmlOptions.embed_resources = True | |
htmlOptions.cad_options = cadOptions | |
request = HtmlCreatePagesCacheRequest(fileName) | |
request.folder = folder | |
request.storage = storage | |
request.html_options = htmlOptions | |
response = api.html_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
fileName = "sample.DXF" | |
folder = "" | |
storage = "MyStorage" | |
cadOptions = CadOptions() | |
cadOptions.layers = ["SLD-0", "DEFAULT_3"] | |
imageOptions = ImageOptions() | |
imageOptions.format = "jpg" | |
imageOptions.quality = 100 | |
request = ImageCreatePagesCacheRequest(fileName) | |
request.folder = folder | |
request.storage = storage | |
request.image_Options = imageOptions | |
response = api.image_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = HtmlOptions() | |
options.embed_resources = True | |
request = HtmlCreatePagesCacheRequest(file) | |
request.folder = folder | |
request.storage = storage | |
request.html_options = options | |
response = api.html_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx"; | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
format = "jpg" | |
options = ImageOptions() | |
options.format = format | |
request = ImageCreatePagesCacheRequest(file) | |
request.folder = folder | |
request.storage = storage | |
request.image_options = options | |
response = api.image_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/umokluz338w4ng7%2fone-page.docx" | |
fileName = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = HtmlOptions() | |
options.embed_resources = True | |
options.enable_minification = True | |
wordsOptions = WordsOptions() | |
options.words_options = wordsOptions | |
request = HtmlCreatePagesCacheFromUrlRequest(url, options) | |
request.folder = folder | |
request.file_name =fileName | |
request.storage = storage | |
response = api.html_create_pages_cache_from_url(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/umokluz338w4ng7%2fone-page.docx" | |
fileName = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = ImageOptions() | |
options.format = "jpg" | |
wordsOptions = WordsOptions() | |
options.words_options = wordsOptions | |
request = ImageCreatePagesCacheFromUrlRequest(url, options) | |
request.folder = folder | |
request.file_name =fileName | |
request.storage = storage | |
response = api.image_create_pages_cache_from_url(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx"; | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = HtmlOptions() | |
options.embed_resources = True | |
options.enable_minification = True | |
request = HtmlCreatePagesCacheRequest(file); | |
request.folder = folder | |
request.storage = storage | |
request.html_options = options; | |
response = api.html_create_pages_cache(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
import json | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
filePath = "D://sample-one-page.docx" | |
fileName = "with-notes-url.pptx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = HtmlOptions() | |
options.embed_resources = True | |
options.enable_minification = True | |
options_json = json.dumps(options.to_dict()) | |
request = HtmlCreatePagesCacheFromContentRequest(filePath, options_json) | |
request.folder = folder | |
request.storage = storage | |
request.file_name = fileName | |
response = api.html_create_pages_cache_from_content(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
import json | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
filePath = "D://sample-one-page.docx" | |
fileName = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = ImageOptions(); | |
options.format = "jpg" | |
options_json = json.dumps(options.to_dict()) | |
request = ImageCreatePagesCacheFromContentRequest(filePath, options_json) | |
request.folder = folder | |
request.storage = storage | |
request.file_name = fileName | |
response = api.image_create_pages_cache_from_content(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/umokluz338w4ng7%2fone-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
wordsOptions = WordsOptions() | |
pdfFileOptions = PdfFileOptions() | |
pdfFileOptions.words_options = wordsOptions | |
request = HtmlCreatePdfFileFromUrlRequest(url, pdfFileOptions); | |
request.folder = folder | |
request.storage = storage | |
response = api.html_create_pdf_file_from_url(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/umokluz338w4ng7%2fone-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
wordsOptions = WordsOptions() | |
pdfFileOptions = PdfFileOptions() | |
pdfFileOptions.words_options = wordsOptions | |
request = ImageCreatePdfFileFromUrlRequest(url, pdfFileOptions); | |
request.folder = folder | |
request.storage = storage | |
response = api.image_create_pdf_file_from_url(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
import json | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
filePath = "D://sample-one-page.docx" | |
fileName = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = PdfFileOptions(); | |
options_json = json.dumps(options.to_dict()) | |
request = HtmlCreatePdfFileFromContentRequest(filePath, options_json); | |
request.folder = folder | |
request.storage = storage | |
request.file_name = fileName; | |
response = api.html_create_pdf_file_from_content(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
import json | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
filePath = "D://sample-one-page.docx" | |
fileName = "with-notes-url.pptx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = PdfFileOptions(); | |
options_json = json.dumps(options.to_dict()) | |
request = ImageCreatePdfFileFromContentRequest(filePath, options_json); | |
request.folder = folder | |
request.storage = storage | |
request.file_name = fileName; | |
response = api.image_create_pdf_file_from_content(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample2.mpp" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
projectOptions = ProjectOptions() | |
projectOptions.page_size = "A4" | |
projectOptions.time_unit = "Unknown" | |
options = HtmlOptions() | |
options.project_options = projectOptions | |
request = HtmlCreatePagesCacheRequest(file, options) | |
request.folder = folder | |
request.storage = storage | |
response = api.html_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample2.mpp" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
projectOptions = ProjectOptions() | |
projectOptions.page_size = "A4" | |
projectOptions.time_unit = "Unknown" | |
options = ImageOptions() | |
options.format = "jpg" | |
options.quality = 100 | |
options.project_options = projectOptions | |
request = ImageCreatePagesCacheRequest(file, options) | |
request.folder = folder | |
request.storage = storage | |
response = api.image_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = HtmlDeleteAttachmentPagesCacheRequest(file, attachmentName); | |
request.folder = folder | |
request.storage = storage | |
api.html_delete_attachment_pages_cache(request); | |
print('HTML Cache removed') | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = ImageDeleteAttachmentPagesCacheRequest(file, attachmentName); | |
request.folder = folder | |
request.storage = storage | |
api.image_delete_attachment_pages_cache(request); | |
print('Image Cache removed') | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
api.delete_fonts_cache() | |
print("Fonts cache removed") | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx"; | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
pageNumber = 1 | |
request = HtmlGetPageRequest(file, pageNumber); | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_page(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx"; | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
pageNumber = 1 | |
request = ImageGetPageRequest(file, pageNumber); | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_page(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = HtmlOptions() | |
options.embed_resources = True | |
options.exclude_fonts = True | |
request = HtmlGetPagesRequest(file, options) | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_pages(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
response = api.get_fonts() | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
response = api.get_supported_file_formats() | |
print('Response:') | |
for format in response.formats: | |
print('{0} ({1})'.format(format.file_format, format.extension)) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
response = api.get_supported_file_formats() | |
print('Response:') | |
for format in response.formats: | |
print('{0} ({1})'.format(format.file_format, format.extension)) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = HtmlGetAttachmentRequest(file, attachmentName) | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_attachment(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = ImageGetAttachmentRequest(file, attachmentName) | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_attachment(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
request = HtmlGetAttachmentInfoRequest(file, attachmentName, password, attachmentPassword) | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_attachment_info(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
request = ImageGetAttachmentInfoRequest(file, attachmentName) | |
request.password = password | |
request.attachment_password = attachmentPassword | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_attachment_info(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
options = DocumentInfoOptions(); | |
options.attachment_password = attachmentPassword; | |
request = HtmlGetAttachmentInfoWithOptionsRequest(file, attachmentName, options); | |
request.folder = folder; | |
request.storage = storage; | |
response = api.html_get_attachment_info_with_options(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
options = DocumentInfoOptions(); | |
options.attachment_password = attachmentPassword; | |
request = ImageGetAttachmentInfoWithOptionsRequest(file, attachmentName, options); | |
request.folder = folder; | |
request.storage = storage; | |
response = api.image_get_attachment_info_with_options(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
pageNumber = 1; | |
request = HtmlGetAttachmentPageRequest(file, attachmentName, pageNumber); | |
request.folder = folder | |
request.storage = storage | |
request.attachment_password = attachmentPassword; | |
response = api.html_get_attachment_page(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
pageNumber = 1; | |
request = ImageGetAttachmentPageRequest(file, attachmentName, pageNumber); | |
request.folder = folder | |
request.storage = storage | |
request.attachment_password = attachmentPassword; | |
response = api.image_get_attachment_page(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
startPageNumber = 1 | |
request = HtmlGetAttachmentPageResourceRequest(file, attachmentName, startPageNumber, folder); | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_attachment_page_resource(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
request = HtmlGetAttachmentPagesRequest(file, attachmentName); | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_attachment_info(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
request = ImageGetAttachmentPagesRequest(file, attachmentName) | |
request.password = password | |
request.attachment_password = attachmentPassword | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_attachment_info(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
request = HtmlGetZipWithAttachmentPagesRequest(file, attachmentName); | |
request.folder = folder | |
request.storage = storage | |
request.attachment_password = attachmentPassword; | |
request.resource_path = "./r/{resource-name}"; | |
response = api.html_get_zip_with_attachment_pages(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
attachmentName = "TestAttachment-File.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
password = '' | |
attachmentPassword = '' | |
request = ImageGetZipWithAttachmentPagesRequest(file, attachmentName); | |
request.folder = folder | |
request.storage = storage | |
request.attachment_password = attachmentPassword; | |
request.resource_path = "./r/{resource-name}"; | |
response = api.image_get_zip_with_attachment_pages(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = HtmlGetAttachmentsRequest(file) | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_attachments(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = ImageGetAttachmentsRequest(file) | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_attachments(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample.DXF" | |
folder = "" | |
storage = "MyStorage" | |
request = HtmlGetDocumentInfoRequest(file) | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_document_info(request); | |
print(response.layers) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample.DXF" | |
folder = "" | |
storage = "MyStorage" | |
request = ImageGetDocumentInfoRequest(file) | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_document_info(request); | |
print(response.layers) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = HtmlGetDocumentInfoRequest(file); | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_document_info(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = ImageGetDocumentInfoRequest(file); | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_document_info(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/j260ve4f90h1p41/one-page.docx?dl=1" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = HtmlGetDocumentInfoFromUrlRequest(url); | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_document_info_from_url(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/j260ve4f90h1p41/one-page.docx?dl=1" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = ImageGetDocumentInfoFromUrlRequest(url); | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_document_info_from_url(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = DocumentInfoOptions() | |
options.password = '' | |
request = HtmlGetDocumentInfoWithOptionsRequest(file) | |
request.folder = folder | |
request.storage = storage | |
request.document_info_options = options | |
response = api.html_get_document_info_with_options(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = DocumentInfoOptions() | |
options.password = '' | |
request = ImageGetDocumentInfoWithOptionsRequest(file) | |
request.folder = folder | |
request.storage = storage | |
request.document_info_options = options | |
response = api.image_get_document_info_with_options(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/r2eioe2atushqcf/with-notes.pptx?dl=1" | |
fileName = "with-notes-url.pptx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = DocumentInfoOptions() | |
options.password = '' | |
request = HtmlGetDocumentInfoFromUrlWithOptionsRequest(url); | |
request.folder = folder | |
request.storage = storage | |
request.file_name = fileName; | |
request.document_info_options = options | |
response = api.html_get_document_info_from_url_with_options(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/r2eioe2atushqcf/with-notes.pptx?dl=1" | |
fileName = "with-notes-url.pptx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = DocumentInfoOptions() | |
options.password = '' | |
request = ImageGetDocumentInfoFromUrlWithOptionsRequest(url); | |
request.folder = folder | |
request.storage = storage | |
request.file_name = fileName; | |
request.document_info_options = options | |
response = api.image_get_document_info_from_url_with_options(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
import json | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
filePath = "D://sample-one-page.docx" | |
fileName = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = DocumentInfoOptions() | |
options.password = '' | |
options_json = json.dumps(options.to_dict()) | |
request = HtmlGetDocumentInfoFromContentRequest(filePath, options_json) | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_document_info_from_content(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
import json | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
filePath = "D://sample-one-page.docx" | |
fileName = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = DocumentInfoOptions() | |
options.password = '' | |
options_json = json.dumps(options.to_dict()) | |
request = ImageGetDocumentInfoFromContentRequest(filePath, options_json) | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_document_info_from_content(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
$response = api.get_fonts(); | |
puts($response.families); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
$file = "sample-one-page.docx"; | |
$folder = "viewerdocs"; | |
$storage = "MyStorage"; | |
$pageNumber = 1; | |
$resourceName = "fonts"; | |
$request = GroupDocsViewerCloud::HtmlGetPageResourceRequest.new($file, $resourceName, $pageNumber); | |
$request.folder = $folder; | |
$request.storage = $storage; | |
$response = api.html_get_page_resource($request); | |
puts($response); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx"; | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = HtmlGetPagesRequest(file); | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_pages(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx"; | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = ImageGetPagesRequest(file); | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_pages(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/umokluz338w4ng7%2fone-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = HtmlGetPagesFromUrlRequest(url); | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_pages_from_url(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/umokluz338w4ng7%2fone-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
format = "jpg" | |
request = ImageGetPagesFromUrlRequest(url); | |
request.folder = folder | |
request.storage = storage | |
request.format = format | |
response = api.image_get_pages_from_url(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/umokluz338w4ng7%2fone-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = HtmlGetPdfFileFromUrlRequest(url); | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_pdf_file_from_url(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
url = "https://www.dropbox.com/s/umokluz338w4ng7%2fone-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = ImageGetPdfFileFromUrlRequest(url); | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_pdf_file_from_url(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = HtmlGetPdfFileRequest(file); | |
request.folder = folder | |
request.storage = storage | |
response = api.html_get_pdf_file(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = ImageGetPdfFileRequest(file); | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_pdf_file(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer API | |
api = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx"; | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
pageNumber = 1 | |
request = HtmlGetPageRequest(file, pageNumber); | |
request.folder = folder | |
request.storage = storage | |
request.embed_resources = True | |
request.enable_responsive_rendering = True | |
response = api.html_get_page(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
watermark = Watermark() | |
watermark.text = "GroupDocs" | |
pdfFileOptions = PdfFileOptions() | |
pdfFileOptions.watermark = watermark | |
request = HtmlCreatePdfFileRequest(file, pdfFileOptions); | |
request.folder = folder | |
request.storage = storage | |
response = api.html_create_pdf_file(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
watermark = Watermark() | |
watermark.text = "GroupDocs" | |
pdfFileOptions = PdfFileOptions() | |
pdfFileOptions.watermark = watermark | |
request = ImageCreatePdfFileRequest(file, pdfFileOptions); | |
request.folder = folder | |
request.storage = storage | |
response = api.image_create_pdf_file(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx"; | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
resourcesPath = "./r/{resource-name}" | |
request = HtmlGetZipWithPagesRequest(file); | |
request.folder = folder | |
request.storage = storage | |
request.resource_path = resourcesPath; | |
response = api.html_get_zip_with_pages(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample-one-page.docx"; | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = ImageGetZipWithPagesRequest(file); | |
request.folder = folder | |
request.storage = storage | |
response = api.image_get_zip_with_pages(request); | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = HtmlDeletePagesCacheRequest(file) | |
request.folder = folder | |
request.storage = storage | |
api.html_delete_pages_cache(request) | |
print("HTML cache deleted") | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
request = ImageDeletePagesCacheRequest(file) | |
request.folder = folder | |
request.storage = storage | |
api.image_delete_pages_cache(request) | |
print("Image cache deleted") | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample.DXF" | |
folder = "" | |
storage = "MyStorage" | |
htmlOptions = HtmlOptions() | |
htmlOptions.embed_resources = True | |
cadOptions = CadOptions() | |
arrayTiles = [] | |
tile = Tile() | |
tile.height = 800 | |
tile.width = 1300 | |
tile.start_point_x = 0 | |
tile.start_point_y = 0 | |
arrayTiles.append(tile) | |
tile.height = 800 | |
tile.width = 1300 | |
tile.start_point_x = 1300 | |
tile.start_point_y = 0 | |
arrayTiles.append(tile) | |
tile.height = 800 | |
tile.width = 1300 | |
tile.start_point_x = 0 | |
tile.start_point_y = 800 | |
arrayTiles.append(tile) | |
tile.height = 800 | |
tile.width = 1300 | |
tile.start_point_x = 1300 | |
tile.start_point_y = 800 | |
arrayTiles.append(tile) | |
cadOptions.tiles = arrayTiles | |
htmlOptions.cad_options = cadOptions | |
request = HtmlCreatePagesCacheRequest(file) | |
request.folder = folder | |
request.storage = storage | |
request.html_options = htmlOptions | |
response = api.html_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg"; | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
htmlOptions = HtmlOptions() | |
htmlOptions.embed_resources = True | |
emailOptions = EmailOptions() | |
arrayFieldLabel = [] | |
fieldLabel = FieldLabel() | |
fieldLabel.field = "From" | |
fieldLabel.label = "Sender" | |
arrayFieldLabel.append(fieldLabel) | |
fieldLabel.field = "To" | |
fieldLabellabel = "Receiver" | |
arrayFieldLabel.append(fieldLabel) | |
emailOptions.field_labels = arrayFieldLabel | |
htmlOptions.email_options = emailOptions | |
request = HtmlCreatePagesCacheRequest(file) | |
request.folder = folder | |
request.storage = storage | |
request.html_options = htmlOptions | |
response = api.html_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-attachment.msg"; | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
imageOptions = ImageOptions() | |
emailOptions = EmailOptions() | |
emailOptions.page_size = "A0" | |
imageOptions.email_options = emailOptions | |
request = ImageCreatePagesCacheRequest(file) | |
request.folder = folder | |
request.storage = storage | |
request.image_options = imageOptions | |
response = api.image_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
$options = GroupDocsViewerCloud::ImageOptions.new(); | |
$emailOptions = GroupDocsViewerCloud::EmailOptions.new(); | |
$file = "with-attachment.msg"; | |
$folder = "viewerdocs"; | |
$storage = "MyStorage"; | |
$emailOptions.page_size = "A0"; | |
$options.email_options = $emailOptions; | |
$request = GroupDocsViewerCloud::ImageCreatePdfFileRequest.new($file, $options); | |
$request.folder = $folder; | |
$request.storage = $storage; | |
$response = api.image_create_pdf_file($request); | |
puts($response); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "data.pst"; | |
folder = "viewerdocs" | |
outlook_options = OutlookOptions() | |
outlook_options.max_items_in_folder = 5 | |
html_options = HtmlOptions() | |
html_options.embed_resources = True | |
html_options.outlook_options = outlook_options | |
request = HtmlCreatePagesCacheRequest(file) | |
request.html_options = html_options | |
request.folder = folder | |
response = api.html_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample2.pdf" | |
folder = "" | |
storage = "MyStorage" | |
pdfOptions = PdfFileOptions() | |
pdfOptions.default_font_name = "Arial" | |
request = HtmlCreatePdfFileRequest(file) | |
request.folder = folder | |
request.storage = storage | |
request.pdf_file_options = pdfOptions | |
response = api.html_create_pdf_file(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-overflowed-text.xlsx" | |
folder = "" | |
storage = "MyStorage" | |
cellsOptions = CellsOptions() | |
cellsOptions.render_print_area_only = True | |
cellsOptions.render_grid_lines = True | |
options = HtmlOptions() | |
options.cells_options = cellsOptions | |
request = HtmlCreatePagesCacheRequest(file) | |
request.folder = folder | |
request.storage = storage | |
request.html_options = options | |
response = api.html_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample.mpp" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
projectOptions = ProjectOptions() | |
project_options.time_unit = "Days" | |
project_options.start_date = datetime.datetime(2008, 7, 1, 0, 0) | |
project_options.end_date = datetime.datetime(2008, 7, 31, 0, 0) | |
options = HtmlOptions() | |
options.project_options = projectOptions | |
request = HtmlCreatePagesCacheRequest(file, options) | |
request.folder = folder | |
request.storage = storage | |
response = api.html_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = ReorderOptions() | |
options.page_number = 1 | |
options.new_position = 2 | |
request = HtmlTransformPagesRequest(file, options) | |
request.folder = folder | |
request.storage = storage | |
response = api.html_transform_pages(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = ReorderOptions() | |
options.page_number = 1 | |
options.new_position = 2 | |
request = ImageTransformPagesRequest(file, options) | |
request.folder = folder | |
request.storage = storage | |
response = api.image_transform_pages(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = RotateOptions() | |
options.page_number = 1 | |
options.angle = 90 | |
request = HtmlTransformPagesRequest(file, options) | |
request.folder = folder | |
request.storage = storage | |
response = api.html_transform_pages(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample.docx" | |
folder = "viewerdocs" | |
storage = "MyStorage" | |
options = RotateOptions() | |
options.page_number = 1 | |
options.angle = 90 | |
request = ImageTransformPagesRequest(file, options) | |
request.folder = folder | |
request.storage = storage | |
response = api.image_transform_pages(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "sample2.pdf" | |
folder = "" | |
storage = "MyStorage" | |
pdfOptions = PdfOptions() | |
pdfOptions.image_quality = "High" | |
options = HtmlOptions() | |
options.pdf_options = pdfOptions | |
request = HtmlCreatePagesCacheRequest(file) | |
request.folder = folder | |
request.storage = storage | |
request.html_options = options | |
response = api.html_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import module | |
import groupdocs_viewer_cloud | |
from groupdocs_viewer_cloud.models import * | |
from groupdocs_viewer_cloud.models.requests import * | |
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required). | |
app_sid = "XXX-XXXXXXX-XXXX" | |
app_key = "XXXXXXXXXXXXX" | |
# Create instance of the GroupDocs Viewer APIapi = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key) | |
try: | |
file = "with-overflowed-text.xlsx" | |
folder = "" | |
storage = "MyStorage" | |
cellsOptions = CellsOptions() | |
cellsOptions.text_overflow_mode = "AutoFitColumn" | |
options = HtmlOptions() | |
options.cells_options = cellsOptions | |
request = HtmlCreatePagesCacheRequest(file) | |
request.folder = folder | |
request.storage = storage | |
request.html_options = options | |
response = api.html_create_pages_cache(request) | |
print(response) | |
except groupdocs_viewer_cloud.ApiException as e: | |
print('Exception while calling Viewer API: {0}'.format(e.message)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment