PDF Rendering

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

Resource

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

cURL REST 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

SDKs

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 for HTML Representation

Download Document as PDF from Document URL for HTML Representation

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.

Resource

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

cURL REST 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

SDKs

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 Document URL for HTML Representation

Download Document as PDF for Image Representation

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

Resource

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

cURL REST 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

SDKs

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.

Downlaod Document as PDF for Image Representation

Download Document as PDF from Document URL for Image Representation

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.

Resource

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

cURL REST 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

SDKs

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 Document URL for Image Representation

Watermark Document for HTML Representation

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 PdfFileOptionscommon-resources/options-objects/#HPdfFileOptionsObject)object data in request body. It returns object which contains information about newly created PDF document along with ‘201 Created’ status.

Resource

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

cURL REST 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"
}

SDKs

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.

Watermark document and download as PDF for HTML Representation

Watermark Document for Image Representation

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 PdfFileOptionscommon-resources/options-objects/#HPdfFileOptionsObject))object data in request body. It returns object which contains information about newly created PDF document along with ‘201 Created’ status.

Resource

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

cURL REST 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"
}

SDKs

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.

Watermark document and download as PDF for Image Representation

Create PDF Document as HTML Representation from Document in Request Body

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.

Resource

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

cURL REST 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"
}

SDKs

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 Document as HTML Representation from Document in Request Body

Create PDF Document as Image Representation from Document in Request Body

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.

Resource

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

cURL REST 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"
}

SDKs

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 Document as Image Representation from Document in Request Body

Create PDF Document from Document URL for HTML Representation

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.

Resource

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

cURL REST 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"
}

SDKs

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 Document from Document URL for HTML Representation

Create PDF Document from Document URL for Image Representation

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.

Resource

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

cURL REST 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"
}

SDKs

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 Document from Document URL for Image Representation