html to powerpoint

HTML을 PowerPoint로 변환하기 위해 Java를 사용하세요.

콘텐츠를 HTML에서 PowerPoint presentations로 변환하는 것은 웹 기반 데이터를 동적으로 제시해야 하는 전문가와 개발자에게 매우 중요합니다. 인터랙티브한 보고서를 생성하든, 웹사이트 목업을 보여주든, 온라인 콘텐츠를 프레젠테이션에 통합하든, 이 변환은 매끄럽고 시각적으로 매력적인 슬라이드를 가능하게 합니다. 이 기사에서는 HTML 콘텐츠를 PowerPoint presentations로 변환하는 세부 사항에 대해 논의할 것입니다.

HTML을 PowerPoint로 변환하는 이유는 무엇인가요?

  • 웹 콘텐츠 보존 - 편집 가능한 PowerPoint 형식으로 HTML 페이지의 구조와 스타일을 유지합니다.
  • 노력 없는 프레젠테이션 생성 – 수동 복사 및 형식 지정 없이 웹 콘텐츠에서 슬라이드를 동적으로 생성합니다.
  • 협업 및 공유 – 비즈니스 프레젠테이션을 위해 널리 사용되는 형식으로 웹 기반 보고서 또는 대시보드를 공유합니다.
  • 자동화 변환 프로세스 – 변환 기능을 Java 애플리케이션에 통합하여 워크플로우 자동화를 간소화하십시오.

이 기사는 다음 주제를 다룹니다:

HTML to PowerPoint Conversion API

GroupDocs.Conversion Cloud SDK for Java는 HTML 파일을 높은 정확도로 PPTX로 변환하는 강력하고 사용자 친화적인 API를 제공합니다. 이 SDK는 복잡한 HTML 구조, 내장 스타일 및 이미지를 처리하면서 원활한 PowerPoint 슬라이드 생성을 보장합니다.

SDK를 사용하기 위해 첫 번째 단계는 GroupDocs.Conversion Cloud SDK for Java의 참조를 설치하는 것입니다. 다음 Maven 의존성을 pom.xml에 추가하십시오:

<repository>
    <id>repository.groupdocs.cloud</id>
    <name>repository.groupdocs.cloud</name>
    <url>https://releases.groupdocs.cloud/java/repo/</url>
</repository>
<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-conversion-cloud</artifactId>
    <version>24.2.0</version>
</dependency>

API 자격 증명 가져오기

Client ID와 Client Secret 자격 증명을 GroupDocs Cloud Dashboard에서 다음의 tutorial에 명시된 지침에 따라 얻으세요.

PowerPoint에서 Java를 사용하여 HTML 삽입하기

다음 섹션에서는 Java를 사용하여 HTML을 PowerPoint로 변환하는 방법에 대한 세부 정보를 제공합니다.

  1. API 자격 증명 인증.
Configuration configuration = new Configuration("your-client-id", "your-client-secret");
ConvertApi apiInstance = new ConvertApi(configuration);
  1. JSON 파일을 클라우드 스토리지에 업로드하세요.
FileUploadApi fileUpload = new FileUploadApi(configuration);
File inputFile = new File("input.html");
fileUpload.uploadFile(new UploadFileRequest("input.html", inputFile));
  1. 변환 매개변수 설정.
ConvertSettings settings = new ConvertSettings();
settings.setFilePath("input.html");
settings.setFormat("PPTX");
settings.setOutputPath("converted.pptx");
  1. Perform JSON to HTML conversion.
ConvertDocumentRequest request = new ConvertDocumentRequest(settings);
DocumentResult response = apiInstance.convertDocument(request);
System.out.println("Conversion successful! Resultant PPTX saved at: " + response.getFilePath());
// 더 많은 예제는 https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-dotnet 에서 확인하세요.
// API 자격 증명을 얻으십시오. 
string clientId = "XXXXXX-XXXXXXXXX-4088-9ca0-55c38f4b7f22";
string clientSecret1 = "XXXXXXXXXXXXXXXXXXXX";

// Configuration 클래스의 인스턴스를 생성하고 클라이언트 ID 및 클라이언트 비밀번호로 초기화하세요.
Configuration configuration = new Configuration(clientId, clientSecret);
// API 기본 URL을 정의하여 HTML을 PPTX로 전환하는 작업을 수행합니다.
configuration.setApiBaseUrl("https://api.groupdocs.cloud");

// ConvertApi의 Configuration 객체로 인스턴스를 초기화합니다.
ConvertApi convertApi = new ConvertApi(configuration);

ConvertSettings settings = new ConvertSettings();
settings.setStorageName("internal");
settings.setFilePath("input.html");
settings.setFormat("PPTX");
settings.setOutputPath("myResultant.pptx");
    
// ConvertDocument API를 HTML에서 PPTX로 변환하기 위해 호출합니다.
ConvertDocumentRequest request = new ConvertDocumentRequest(settings);
List<StoredConvertedResult> response = convertApi.convertDocument(request);
    
// Check the response and print success message
if (response != null && response.equals("OK")) {
    System.out.println("Conversion successful! Resultant PPTX saved at: " + response.getFilePath());
}
html to ppt

Image:- HTML to PowerPoint 변환 미리보기.

위의 예제에서 생성된 결과 PowerPoint 프레젠테이션은 converted.pptx에서 다운로드할 수 있습니다.

웹페이지를 cURL을 사용하여 PowerPoint에 임베드하기

Using cURL commands for HTML to PowerPoint (PPTX) conversion offers several advantages, particularly for developers and businesses looking for a quick, automated, and scriptable approach to document transformation. It’s lightweight & fast, has cross-platform compatibility, it’s secure & scalable and requires minimal coding effort.

이 접근 방식의 첫 번째 단계는 JWT 액세스 토큰을 생성한 다음, 웹 페이지를 PowerPoint 프레젠테이션에 삽입하고 결과 PowerPoint를 클라우드 스토리지에 저장하기 위해 다음 cURL 명령을 실행하는 것입니다.

curl -v "https://api.groupdocs.cloud/v2.0/conversion" \
-X POST \
-H "accept: application/json" \
-H "authorization: Bearer {accessToken}" \
-H "Content-Type: application/json" \
-d "{  \"StorageName\": \"default\",  \"FilePath\": \"{sourceHTML}\",  \"Format\": \"PPT\",  \"OutputPath\": \"{resultantFile}\"}"

입력 HTML 파일의 이름으로 sourceHTML을, 결과 PowerPoint 프레젠테이션의 이름으로 OutputPath를, 개인화된 JWT 액세스 토큰으로 accessToken을 교체해 주세요.

무료 HTML to PPT 변환기

놀라운 기능을 경험하기 위해 GroupDocs.Conversion Cloud REST API를 사용할 수 있으며, 무료 HTML to PowerPoint Converter 웹 응용 프로그램을 사용하는 것을 고려해 보실 수 있습니다.

html to pptx 앱

유용한 링크

결론

우리는 GroupDocs.Conversion Cloud가 HTML을 PowerPoint로 변환하는 효율적인 방법을 제공하여 최소한의 노력으로 고품질 결과를 보장한다는 것을 배웠습니다. 이 API를 통합함으로써 HTML을 PPTX로 변환하는 과정을 자동화하고 문서 처리 워크플로를 개선할 수 있습니다.

추천 기사

다음의 관련 기사를 확인하여 더 많은 변환 솔루션을 알아보세요: