Note This feature is only compatible with GroupDocs.Assembly for .NET 3.1.0 or later releases. Explicit Support for Multiple Data Sources Using DocumentAssembler.AssembleDocument overload user can reference multiple data source objects and their members in the template. Names of all the data sources must be specified and unique.
Parameters DataSources An array of data source objects like object[] dataSources.
DataSourceNames An array of names to reference the data source objects within the template like string[] dataSourceNames....Merger Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Assembly Product...
This topic describes how to use the GroupDocs.Viewer Java API to convert PDF files to HTML, PNG, and JPEG formats....Merger Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Viewer Product...
The following example demonstrates how to save the Document as a rasterized PDF file:
final Redactor redactor = new Redactor(Constants.SAMPLE_DOCX); try { // Here we can use Document instance to perform redactions redactor.apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions("[personal]"))); SaveOptions tmp0 = new SaveOptions(); tmp0.setAddSuffix(false); tmp0.setRasterizeToPDF(true); // Saving as rasterized PDF with no suffix in file name redactor.save(tmp0); } finally { redactor.close(); }...Merger Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Redaction Product...
It is easy to convert RTF to PDF using Python for Document sharing using conversion APIs. A code example is included to export RTF to PDF in Python in this topic....Merger Product Family GroupDocs.Redaction...archiving of Rich Text Format documents. PDF preserves the original...
This article details the process of how to extract text from DOCX using Java. It also includes code to assist you in implementing text extraction from DOCX in Java....Merger Product Family GroupDocs.Redaction...digital world, automating document management tasks is essential...
Reorder pages when rendering Documents to PDF with GroupDocs.Viewer for Java...Merger Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Viewer Product...
Follow this guide and learn how to convert Documents to Excel and Open Document spreadsheets of XLS, XLSX, ODS, OTS formats with zoom and other customizations using GroupDocs.Conversion for Node.js via Java....Merger Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Conversion Product...
The following example demonstrates how to save the redacted Document, replacing an original file:
// Make a copy of sample file Files.copy(new File("Sample.docx").toPath(), new File("OverwrittenSample.docx").toPath(), StandardCopyOption.REPLACE_EXISTING); // Apply redaction final Redactor redactor = new Redactor("OverwrittenSample.docx"); try { RedactorChangeLog result = redactor.apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions(java.awt.Color.RED))); if (result.getStatus() != RedactionStatus.Failed) { SaveOptions options = new SaveOptions(); options.setAddSuffix(false); options.setRasterizeToPDF(false); // Save the Document in original format overwriting original file redactor.save(options); } } finally { redactor....Merger Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Redaction Product...
Following code snippet shows how to add text watermark to a Document. If the Document consists of multiple parts (pages, worksheets, slides, frames etc), the watermark will be added to all of them.
advanced_usage.adding_text_watermarks.AddTextWatermark
// Specify an absolute or relative path to your image. Ex: "C:\\Docs\\image.png" Watermarker watermarker = new Watermarker("image.png"); // Initialize the font to be used for watermark Font font = new Font("Arial", 19, FontStyle.Bold | FontStyle.Italic); // Create the watermark object TextWatermark watermark = new TextWatermark("Test watermark", font); // Set watermark properties watermark....Merger Product Solution GroupDocs...Acquisition Ask AI GroupDocs Documentation / GroupDocs.Watermark Product...