2017-01-31 8 views
0

私はpdfをhtmlに変換するために、Aspose.PdfをJava用に使用しています。 PDFの最初の数ページだけがHTMLに変換されますが、すべてのページに変換されるわけではありません。無料試用期間中の制限か、間違ったことをしていますか? examplesからクラスcom.aspose.pdf.examples.AsposePdfExamples.DocumentConversion.PDFToHTMLSingleHTMLWithAllResourcesEmbedded.javaを実行しました。そのクラスのAsposeは、pdfからhtmlに数ページしか変換していません。

コードは以下の通りです:

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

ITSは唯一の無料トライアル中の制限というのAsposeのサポートから確認しました。 悲しい:(

+1

30日[一時ライセンス](http://www.aspose.com/corporate/purchase/temporary-license.aspx)は、Aspose.Pdfを何の制限もなく評価するのに役立ちます。 –

関連する問題