최근에 우리는 차세대 GroupDocs Cloud API에 대해 작업하고 있음을 공유했습니다. 당사의 제품 팀은 신뢰할 수 있고 정확한 솔루션으로 개발 경험을 개선하기 위해 열심히 노력하고 있습니다. 따라서 차세대 GroupDocs.Viewer Cloud REST API 17.11의 첫 공개 릴리스를 발표하게 되어 매우 기쁩니다.

The Groupdocs.Viewer Cloud REST API)는 개발자가 클라우드의 웹/모바일 앱 또는 웹사이트에서 50개 이상의 문서 형식을 표시할 수 있는 유용하고 강력한 기능 모음을 제공합니다. .

GroupDocs.Viewer CloudGroupDocs.Viewer

Cloud API는 개발자에게 50개 이상의 문서 및 이미지 형식을 전체 문서, 페이지별 또는 사용자 정의 페이지 범위에 대한 HTML 또는 이미지 형식으로 렌더링하는 API를 제공합니다. 뷰어는 문서를 래스터화하고 SVG+HTML+CSS로 변환하여 진정한 텍스트 고화질 렌더링을 제공할 수 있습니다. 문서 페이지 회전, 재정렬 및 워터마킹은 이 REST API의 다른 중요한 기능입니다. 차세대 GroupDocs.Viewer Cloud REST API에서 제공하는 기능에 대한 자세한 내용은 첫 번째 버전에 대한 릴리스 노트를 확인하십시오. 다음 섹션에서는 이러한 기능에 대한 몇 가지 세부 정보를 공유합니다.

HTML 표현을 위한 첨부 파일 가져오기

HTML 또는 이미지 표현을 위해 이메일의 첨부 데이터를 가져올 수 있습니다. 목적은 다음 URI와 REST 명령(Curl)을 참조하십시오.

URI

[https://api.groupdocs.cloud/v1/viewer/{filename}/html/attachments/{attachmentfilename}][3] 

나머지 예시(cURL)

curl -v "[https://api.groupdocs.cloud/v1/viewer/Test.msg/html/attachments/Test.pdf"][4] \
-X GET \
-H "콘텐츠 유형: 애플리케이션/json" \
-H "인증: 무기명 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”
```.NET SDK example

//TODO: https://dashboard.groupdocs.cloud에서 AppSID 및 AppKey를 받으십시오(무료 등록 필요).


var 구성 = 새 구성
{
AppSid = 시드,
앱키 = 키
};

var apiInstance = new ViewerApi(구성);

노력하다
{
    
var 요청 = 새로운 HtmlGetAttachmentRequest
{
FileName = "with-attachment.msg",
AttachmentName = "password-protected.docx",
폴더 = null,
스토리지 = null
};

var 응답 = apiInstance.HtmlGetAttachment(요청);
Debug.Print("문서가 성공적으로 처리되었습니다.");
}
catch(예외 e)
{
Debug.Print("이메일에서 첨부 파일을 가져올 때 예외: " + e.Message);
}

Watermark a Document for HTML Representation

You can easily watermark and download a document as PDF with GroupDocs.Viewer Cloud API. The API expects PdfFileOptions object data in request body. Please see the following URI, JSON Request data, REST command(Curl) and .NET SDK example for the purpose. URI

[https://api.groupdocs.cloud/v1/viewer/{파일 이름}/html/pdf][5]

Request Data

{"watermark":{"text":"My Company"}}

나머지 예시(cURL)

컬 -v "[https://api.groupdocs.cloud/v1/viewer/one-page.docx/html/pdf"][6] \
-X 포스트 \
-H "콘텐츠 유형: 애플리케이션/json" \
-H "수락: application/json" \
-d "{"watermark":{"text":"내 회사"}}" \
-H "인증: 무기명 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”

.NET SDK example

//TODO: https://dashboard.groupdocs.cloud에서 AppSID 및 AppKey를 받으십시오(무료 등록 필요).
var 구성 = 새 구성
{
AppSid = 시드,
앱키 = 키
};

var apiInstance = new ViewerApi(구성);

노력하다
{
var pdfFileOptions = 새 GroupDocs.Viewer.Cloud.Sdk.Model.PdfFileOptions
{
워터마크 = new GroupDocs.Viewer.Cloud.Sdk.Model.Watermark { 텍스트 = "테스트" }
};
var 요청 = 새로운 ImageCreatePdfFileRequest
{
FileName = "한 페이지.docx",
PdfFileOptions = PDF파일옵션,
FontsFolder = null,
폴더 = null,
스토리지 = null,
};

var 응답 = apiInstance.ImageCreatePdfFile(요청);

Debug.Print("처리된 문서");
Debug.Print(response.FileName);
Debug.Print(response.Folder);
Debug.Print(response.PdfFileName);
}
catch(예외 e)
{
Debug.Print("문서 처리 중 예외: " + e.Message);
}

GroupDocs.Viewer Cloud Resources

Following are the links to some useful resources you may need to accomplish your tasks.

Start a Free Trial Today

Start a free trial today – all you need is to sign up with the GroupDocs Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by GroupDocs Cloud.