PDF Rendering

Note
Note:  The features listed in this page are supported only in GroupDocs.Viewer Cloud V1

Dwonload file as PDF from Storage (HTML mode)

You can render a document to PDF for HTML representation and download it. The API returns actual file data of document in PDF format.

The following GroupDocs.Viewer Cloud REST API resource has been used to download document as PDF for HTML representation.

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/one-page.docx/html/pdf" \
-X GET \
-H "Content-Type: application/json" \
-H "authorization: Bearer pTPAHbcNbrMcerjvtBpYgfkSh44oB9uWBEhoLNLiJ3KYWTZ-LjDK1OhIiSkiFnpwEDvAENURIo6NndadzqbW7Di4ZKIKC6DOlEGoFI2hfiNBaXEAGDE00knZePkCNsupU48qe1N_eGluq4urBAX3VBFiIdwz1yEPlPrqWG1DOAWYglUo5Nc9TdwZroBiDJ00A0oKjWoEJ_mRsI_VYK-NnZlNqrUiPGd6918ivV-vTtN2VvqGGUAosz26F7NZe0uEDf5GZszp-bxQ4_-JimHUgOD3z2M4gldo58oYp-6NBGCEjA312kqpxYZs22MJ_Ma-fSgT8yMDqgixItd0JxciHUCmSR8XVG803g1UgUF3-rfoWOn0FJAYLkZ3SFrjqMwjcJAsxcpWc-vm2eLneOPAh8R08ATyhemGBNCh3Ke3jJhaMf92"
Contents of PDF document

SDK examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Download Document as PDF by URL (HTML mode)

You can render a document to PDF from document URL for HTML representation and download it. The API returns actual file data of document in PDF format.

The following GroupDocs.Viewer Cloud REST API resource has been used to download document as PDF from document Url for HTML representation.

cURL example

curl -v "https://api.groupdocs.cloud/v1.0/viewer/html/pdf?url#https%3A%2F%2Fwww.dropbox.com%2Fs%2Fumokluz338w4ng7%252fone-page.docx&fileName#one-page.docx&renderComments#false&renderHiddenPages#true&folder#viewerdocs&storage#First%20Storage&appsid#XXXX&signature#XXX-XX"
-H "Content-Type: application/json"
-X GET -d "{}" 
Contents of PDF document

SDK examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Download Document as PDF from Storage (Image mode)

You can render a document to PDF for Image representation and download it. The API returns actual file data of document in PDF format.

The following GroupDocs.Viewer Cloud REST API resource has been used to download document as PDF with Image representation.

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/one-page.docx/image/pdf" \
-X GET \
-H "Content-Type: application/json" \
-H "authorization: Bearer pTPAHbcNbrMcerjvtBpYgfkSh44oB9uWBEhoLNLiJ3KYWTZ-LjDK1OhIiSkiFnpwEDvAENURIo6NndadzqbW7Di4ZKIKC6DOlEGoFI2hfiNBaXEAGDE00knZePkCNsupU48qe1N_eGluq4urBAX3VBFiIdwz1yEPlPrqWG1DOAWYglUo5Nc9TdwZroBiDJ00A0oKjWoEJ_mRsI_VYK-NnZlNqrUiPGd6918ivV-vTtN2VvqGGUAosz26F7NZe0uEDf5GZszp-bxQ4_-JimHUgOD3z2M4gldo58oYp-6NBGCEjA312kqpxYZs22MJ_Ma-fSgT8yMDqgixItd0JxciHUCmSR8XVG803g1UgUF3-rfoWOn0FJAYLkZ3SFrjqMwjcJAsxcpWc-vm2eLneOPAh8R08ATyhemGBNCh3Ke3jJhaMf92"
Contents of PDF document

SDK examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Download Document as PDF by URL (Image mode)

You can render a document to PDF from document URL for Image representation and download it. The API returns actual file data of document in PDF format.

The following GroupDocs.Viewer Cloud REST API resource has been used to download document as PDF from document Url for Image representation.

cURL example

curl -v "https://api.groupdocs.cloud/v1.0/viewer/image/pdf?url#https%3A%2F%2Fwww.dropbox.com%2Fs%2Fumokluz338w4ng7%252fone-page.docx&fileName#one-page.docx&renderComments#false&renderHiddenPages#true&folder#viewerdocs&storage#First%20Storage&appsid#XXXX&signature#XXX-XX"
-H "Content-Type: application/json"
-X GET -d "{}"
Contents of PDF document

SDK examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Add watermark (HTML mode)

You can watermark and download a document as PDF with GroupDocs.Viewer Cloud API. It creates new PDF document, removes PDF document if it was created before.

The API expects PdfFileOptions object data in request body. It returns object which contains information about newly created PDF document along with ‘201 Created’ status.

The following GroupDocs.Viewer Cloud REST API resource has been used to watermark Document as PDF document for HTML representation.

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/one-page.docx/html/pdf" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{"watermark":{"text":"My Company"}}" \
-H "authorization: Bearer pTPAHbcNbrMcerjvtBpYgfkSh44oB9uWBEhoLNLiJ3KYWTZ-LjDK1OhIiSkiFnpwEDvAENURIo6NndadzqbW7Di4ZKIKC6DOlEGoFI2hfiNBaXEAGDE00knZePkCNsupU48qe1N_eGluq4urBAX3VBFiIdwz1yEPlPrqWG1DOAWYglUo5Nc9TdwZroBiDJ00A0oKjWoEJ_mRsI_VYK-NnZlNqrUiPGd6918ivV-vTtN2VvqGGUAosz26F7NZe0uEDf5GZszp-bxQ4_-JimHUgOD3z2M4gldo58oYp-6NBGCEjA312kqpxYZs22MJ_Ma-fSgT8yMDqgixItd0JxciHUCmSR8XVG803g1UgUF3-rfoWOn0FJAYLkZ3SFrjqMwjcJAsxcpWc-vm2eLneOPAh8R08ATyhemGBNCh3Ke3jJhaMf92"
{
  "fileName": "one-page.docx",
  "folder": null,
  "pdfFileName": "one-page.pdf",
  "url": "https://api.groupdocs.cloud/v1/viewer/one-page.docx/html/pdf"
}

SDK examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Add watermark (Image mode)

You can watermark and download a document as PDF with GroupDocs.Viewer Cloud API. It creates new PDF document, removes PDF document if it was created before.

The API expects PdfFileOptions object data in request body. It returns object which contains information about newly created PDF document along with ‘201 Created’ status.

The following GroupDocs.Viewer Cloud REST API resource has been used to watermark a document and download as PDF for Image Representation.

cURL example

curl -v "https://api.groupdocs.cloud/v1/viewer/one-page.docx/image/pdf" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{"watermark":{"text":"My Company","color":"Magenta","position":"Diagonal","size":50}}" \
-H "authorization: Bearer pTPAHbcNbrMcerjvtBpYgfkSh44oB9uWBEhoLNLiJ3KYWTZ-LjDK1OhIiSkiFnpwEDvAENURIo6NndadzqbW7Di4ZKIKC6DOlEGoFI2hfiNBaXEAGDE00knZePkCNsupU48qe1N_eGluq4urBAX3VBFiIdwz1yEPlPrqWG1DOAWYglUo5Nc9TdwZroBiDJ00A0oKjWoEJ_mRsI_VYK-NnZlNqrUiPGd6918ivV-vTtN2VvqGGUAosz26F7NZe0uEDf5GZszp-bxQ4_-JimHUgOD3z2M4gldo58oYp-6NBGCEjA312kqpxYZs22MJ_Ma-fSgT8yMDqgixItd0JxciHUCmSR8XVG803g1UgUF3-rfoWOn0FJAYLkZ3SFrjqMwjcJAsxcpWc-vm2eLneOPAh8R08ATyhemGBNCh3Ke3jJhaMf92"
{
  "fileName": "one-page.docx",
  "folder": null,
  "pdfFileName": "one-page.pdf",
  "url": "https://api.groupdocs.cloud/v1/viewer/one-page.docx/image/pdf"
}

SDK example

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Create PDF from file in request body (HTML mode)

You can create a PDF document as HTML representation from document passed in request body. The API returns object which contains information about newly created PDF document along with ‘201 Created’ status.

The following GroupDocs.Viewer Cloud REST API resource has been used to create PDF document as HTML representation from document in request body.

cURL example

curl -v  "https://api.groupdocs.cloud/v1.0/viewer/html/pdf?fileName#one-page.docx&appsid#XXXX&signature#XXX-XX"
-H "Content-Type: application/json"
-X POST
-H "Accept: application/json"
-d "{'watermark':{'text':'My Company'}}"
{
  "fileName": "one-page.docx",
  "folder": null,
  "pdfFileName": "one-page.pdf",
  "url": "http://api.groupdocs.cloud/v1/viewer/one-page.docx/html/pdf"
}

SDK examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Create PDF from file in request body (Image mode)

You can create a PDF document as Image representation from document passed in request body. The API returns object which contains information about newly created PDF document along with ‘201 Created’ status.

The following GroupDocs.Viewer Cloud REST API resource has been used to create PDF document as Image representation from document in request body.

cURL example

curl -v  "https://api.groupdocs.cloud/v1.0/viewer/image/pdf?fileName#one-page.docx&appsid#XXXX&signature#XXX-XX"
-H "Content-Type: application/json"
-X POST
-H "Accept: application/json"
-d "{'watermark':{'text':'My Company'}}"
{
  "fileName": "one-page.docx",
  "folder": null,
  "pdfFileName": "one-page.pdf",
  "url": "http://api.groupdocs.cloud/v1/viewer/one-page.docx/image/pdf"
}

SDK examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Create PDF from URL (HTML mode)

You can create a PDF document from document URL for HTML representation. The API returns object which contains information about newly created PDF document along with ‘201 Created’ status.

The following GroupDocs.Viewer Cloud REST API resource has been used to create PDF document from document Url for HTML representation.

cURL example

curl -v  "https://api.groupdocs.cloud/v1.0/viewer/html/pdf?url#https%3A%2F%2Fwww.dropbox.com%2Fs%2Fumokluz338w4ng7%252fone-page.docx&fileName#one-page.docx&folder#viewerdocs&storage#First%20Storage&appsid#XXXX&signature#XXX-XX"
-H "Content-Type: application/json"
-X PUT -d "{'watermark': {'text': 'My Company','color': 'Magenta','position': 'Diagonal','size': 50}}"
{
  "fileName": "one-page4.docx",
  "folder": "viewerdocs",
  "pdfFileName": "one-page4.pdf",
  "url": "http://api.groupdocs.cloud/v1.0/viewer/one-page4.docx/html/pdf?folder#viewerdocs"
}

SDK examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Create PDF from URL (Image mode)

You can create a PDF document from document URL for Image representation. The API returns object which contains information about newly created PDF document along with ‘201 Created’ status.

The following GroupDocs.Viewer Cloud REST API resource has been used to create PDF document from document Url for Image representation.

cURL example

curl -v  "https://api.groupdocs.cloud/v1.0/viewer/image/pdf?url#https%3A%2F%2Fwww.dropbox.com%2Fs%2Fumokluz338w4ng7%252fone-page.docx&fileName#one-page.docx&folder#viewerdocs&storage#First%20Storage&appsid#XXXX&signature#XXX-XX"
-H "Content-Type: application/json"
-X PUT -d "{'watermark': {'text': 'My Company','color': 'Magenta','position': 'Diagonal','size': 50}}"
{
  "fileName": "one-page6.docx",
  "folder": "viewerdocs",
  "pdfFileName": "one-page6.pdf",
  "url": "http://api.groupdocs.cloud/v1.0/viewer/one-page6.docx/image/pdf?folder#viewerdocs"
}

SDK examples

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.