2017-01-31 10 views
0

나는 pdf를 html로 개조하기 위하여 자바를위한 Aspose.Pdf를 사용하고있다. PDF의 처음 몇 페이지 만 HTML로 변환하지만 모든 페이지는 변환하지 않습니다. 무료 평가판에서만 제한 사항입니까, 아니면 잘못하고 있습니다. examples에서 com.aspose.pdf.examples.AsposePdfExamples.DocumentConversion.PDFToHTMLSingleHTMLWithAllResourcesEmbedded.java 클래스를 실행했습니다. 그 클래스에 대한Aspose는 html로 pdf의 단지 몇몇 페이지 개조 아닙니다 전부

코드는 다음과 같습니다 :

package com.aspose.pdf.examples.AsposePdfExamples.DocumentConversion; 

import com.aspose.pdf.Document; 
import com.aspose.pdf.HtmlSaveOptions; 
import com.aspose.pdf.LettersPositioningMethods; 

public class PDFToHTMLSingleHTMLWithAllResourcesEmbedded { 

    public static void main(String[] args) { 
     // Load source PDF file 
     Document doc = new Document("input.pdf"); 
     // Instantiate HTML Save options object 
     HtmlSaveOptions newOptions = new HtmlSaveOptions(); 
     // Enable option to embed all resources inside the HTML 
     newOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml; 
     // This is just optimization for IE and can be omitted 
     newOptions.LettersPositioningMethod = LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss; 
     newOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground; 
     newOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats; 
     // Output file path 
     String outHtmlFile = "Single_output.html"; 
     // Save the output file 
     doc.save(outHtmlFile, newOptions); 
    } 

} 

답변

0

그것은 Aspose 지원에서 확인하는 유일한 무료 평가판 기간 동안 제한. 슬픈 :(

+1

30 일 [임시 라이센스] (http://www.aspose.com/corporate/purchase/temporary-license.aspx)는 제한없이 Aspose.Pdf를 평가하는 데 도움이 될 수 있습니다. –