This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java | |
try { | |
// Setup GroupDocs.Viewer config | |
ViewerConfig config = Utilities.getConfiguration(); | |
// Create image handler | |
ViewerImageHandler imageHandler = new ViewerImageHandler(config); | |
PdfFileOptions options = new PdfFileOptions(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java | |
// Setup GroupDocs.Viewer config | |
ViewerConfig config = Utilities.getConfiguration(); | |
// Create html handler | |
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config); | |
String guid = fileName; | |
// Set pdf options to render pdf layers into separate html elements | |
HtmlOptions options = new HtmlOptions(); | |
options.getPdfOptions().setRenderLayersSeparately(true); // Default value is false | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java | |
// Setup GroupDocs.Viewer config | |
ViewerConfig config = Utilities.getConfiguration(); | |
// Create html handler | |
ViewerImageHandler imageHandler = new ViewerImageHandler(config); | |
String guid = fileName; | |
// Set OnePagePerSheet = false to render multiple pages per sheet. By default OnePagePerSheet = true. | |
ImageOptions imageOptions = new ImageOptions(); | |
imageOptions.getCellsOptions().setOnePagePerSheet(false); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java | |
// Setup GroupDocs.Viewer config | |
ViewerConfig config = Utilities.getConfiguration(); | |
// Create html handler | |
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config); | |
String guid = fileName; | |
// Set OnePagePerSheet = false to render multiple pages per sheet | |
HtmlOptions htmlOptions = new HtmlOptions(); | |
htmlOptions.getCellsOptions().setOnePagePerSheet(false); | |
// Set count rows to render into one page. Default value is 50. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java | |
// Setup GroupDocs.Viewer config | |
ViewerConfig config = Utilities.getConfiguration(); | |
// Create html handler | |
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config); | |
String guid = fileName; | |
// Set pdf options to render content without glyphs grouping | |
HtmlOptions options = new HtmlOptions(); | |
options.setResourcesEmbedded(true); | |
options.getPdfOptions().setPreventGlyphsGrouping(true); // Default value is false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java | |
String srcDocument = "/Text Templates/Single Row.txt"; | |
String docReport = "/Text Reports/Single Row_report.txt"; | |
try { | |
Manager manager = new DataStorage().getManagers().iterator().next(); | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.assembleDocument(CommonUtilities.getDataPath(srcDocument), | |
CommonUtilities.getOutPath(docReport), manager, "manager"); | |
} catch (Exception exp) { | |
System.out.println("Exception: " + exp.getMessage()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java | |
String srcDocument = "/Text Templates/Numbered List.txt"; | |
String docReport = "/Text Reports/Numbered List_report.txt"; | |
try { | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.assembleDocument(CommonUtilities.getDataPath(srcDocument), | |
CommonUtilities.getOutPath(docReport), new DataStorage(), null); | |
} catch (Exception exp) { | |
System.out.println("Exception: " + exp.getMessage()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java | |
String srcDocument = "/Text Templates/In-Paragraph List.txt"; | |
String docReport = "/Text Reports/In-Paragraph List_report.txt"; | |
try { | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.assembleDocument(CommonUtilities.getDataPath(srcDocument), | |
CommonUtilities.getOutPath(docReport), new DataStorage(), null); | |
} catch (Exception exp) { | |
System.out.println("Exception: " + exp.getMessage()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java | |
String srcDocument = "/Text Templates/Common Master-Detail.txt"; | |
String docReport = "/Text Reports/Common Master-Detail_report.txt"; | |
try { | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.assembleDocument(CommonUtilities.getDataPath(srcDocument), | |
CommonUtilities.getOutPath(docReport), new DataStorage(), null); | |
} catch (Exception exp) { | |
System.out.println("Exception: " + exp.getMessage()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java | |
String srcDocument = "/Text Templates/Common List.txt"; | |
String docReport = "/Text Reports/Common List_report.txt"; | |
try { | |
DocumentAssembler assembler = new DocumentAssembler(); | |
assembler.assembleDocument(CommonUtilities.getDataPath(srcDocument), | |
CommonUtilities.getOutPath(docReport), new DataStorage(), null); | |
} catch (Exception exp) { | |
System.out.println("Exception: " + exp.getMessage()); | |
} |