Convert PDF Files to MS Word Documents (DOC/DOCX) in Java

PDF is one of the most commonly used formats for sending the document out to third parties. The reason behind this popularity is PDF’s compatibility across multiple platforms regardless of any hardware/software requirements. However, in some cases, you would want to convert the PDF document into an editable document format. PDF to Word DOC or DOCX could be the priority conversion option in such cases. To automate the conversion process, this article will showcase how to convert PDF to Word programmatically in Java.

So in this article, you will get to know how to:

  • Convert PDF to DOC using Java.
  • Convert PDF to DOCX using Java.
  • Convert PDF to Word (DOC/DOCX) with additional options.

API for PDF to Word Conversion in Java

Thanks to Aspose.PDF for Java – a PDF manipulation Java API that provides easy ways to convert PDF files to a variety of other formats including Word (DOC/DOCX). You can download and add API’s JAR file to your project or reference it using the following Maven configurations:

Repository

<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://repository.aspose.com/repo/</url>
</repository>

Dependency

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-pdf</artifactId>
    <version>19.12</version>
</dependency>

Convert PDF to DOC using Java

Once you have referenced Aspose.PDF for Java in your application, you can convert any PDF document to DOC format in a couple of lines of code. The following are the steps required to perform this conversion.

The following code sample shows how to convert PDF to DOC in Java.

Input PDF Document

How to Convert PDF to Word in Java

Output Word Document

Convert PDF to DOC in Java

Convert PDF to DOCX using Java

DOCX is a well-known format for Word documents and in contrast to the DOC format, the structure of DOCX was based on the binary as well as the XML files. In case you want to convert PDF to DOCX format, you can tell the API to do so using the SaveFormat.DocX argument in Document.save() method.

The following code sample shows how to convert PDF to DOCX in Java.

Additional Options for PDF to Word Conversion

Aspose.PDF for Java also provides some additional options that you can use in PDF to Word conversion, such as the output format, image resolution, distance between text lines and so on. DocSaveOptions class is used for this purpose and the following is the list of options you can use:

The following code sample shows how to use DocSaveOptions class in PDF to DOCX conversion using Java.

Related Article(s)

Posted in Aspose.PDF Product Family | Tagged , , , , | Leave a comment

Merge Multiple PDF Files into One PDF using C# .NET

Merge PDF files in C#

Aspose.PDF for .NET is a feature-rich API for creating, editing, reading or converting PDF documents. Along with other PDF manipulation features, Aspose.PDF for .NET also allows you to combine or merge multiple PDF files programmatically in C# or VB.NET. In this article, you will learn how to:

  • Merge two PDF files into a single PDF file.
  • Merge multiple (more than two) PDF files.
  • Merge two or more PDF files using file streams.

Before we start, let’s first have a look at the installation methods of Aspose.PDF for .NET.

Installing Aspose.PDF for .NET

You can install the API either using NuGet Package Manager or the Package Manager Console in Visual Studio.

Installing via NuGet Package Manager

Merge multiple PDF files in C# .NET

Installing via Package Manager Console

PM> Install-Package Aspose.PDF

Once you have installed the package, you can start merging the PDF files.

Merge Two PDF Files into One PDF in C#

The process of merging two PDF files into a single PDF is as simple as pie and can be performed only in two steps.

The following is the code sample to merge two PDF files using C#.

Merge Multiple PDF Files into One PDF in C#

In case you want to merge more than two PDF files, you can do it using a string array containing the paths of all the PDF files to be merged. The following are the steps to perform this operation.

The following code sample shows how to merge multiple PDF files in C#.

Merge Multiple PDF Files using Streams in C#

There might be the case when you are not dealing with the files located on the disk. Instead, you want to merge PDF files available in the form of streams. In such a case, you can merge the PDFs directly using the Stream objects in the overloaded PdfFileEditor.Concatenate() methods. The following code samples show how to merge PDF files using the Stream objects in C#.

Merge Two PDF Files using Stream Objects

Merge Multiple PDF Files using Stream Objects

In case you are interested to explore more about the Aspose.PDF for .NET, take a look at the documentation.

Posted in Aspose.PDF Product Family | Tagged , , , , | Leave a comment

Generate Word Documents from Templates Dynamically using Java

Generate word from template in java

The report generation process more often consists of populating the predefined document templates containing the placeholders for desired fields. The reporting engines take the template document as input, populate the placeholders with the data dynamically and generate the resultant reports. This article is also going to showcase a similar use case where you can generate the Word documents by populating the Word templates dynamically and programmatically using Java.

To generate Word documents from DOCX templates, we’ll use the LINQ Reporting Engine offered by Aspose.Words for Java API. LINQ Reporting Engine supports a variety of tags for text, images, lists, tables, hyperlinks, and bookmarks for Word templates. The template documents containing these tags are populated by the engine with data coming from Java objects as well as XML, JSON, or CSV data sources. So let’s begin generating the Word documents from the templates using Java.

This article will cover how to generate Word document from a template using:

  • values from the Java objects,
  • XML data source,
  • JSON data source,
  • and CSV data source.

Installing Aspose.Words for Java – Word Automation and Report Generation API

You can download Aspose.Words for Java JAR or add it to your Maven-based application using the following configurations.

Repository

<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://repository.aspose.com/repo/</url>
</repository>

Dependency

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-words</artifactId>
    <version>20.1</version>
    <type>pom</type>
</dependency>

Generate Word Documents from Template using Java Objects

To begin the report generation, let’s first create a Word document by populating the template with values from the Java objects. In order to define a document template, create a new Word document, insert the following tags and save it as a DOCX document.

<<[s.getName()]>> says: "<<[s.getMessage()]>>."

In the above template, “s” will be treated as an object of Java class that will be used to populate the tags. So let’s create a class named Sender with two data members.

Now, it is time to pass the Word template to the LINQ Reporting Engine and generate the Word document based on the values of Sender‘s object. The following are the steps for generating the Word document:

  • Create the Document object and initialize it with the template’s path.
  • Create an object of Sender class and initialize it with values.
  • Create an object of ReportingEngine.
  • Build the report using ReportingEngine.buildReport() method that accepts the document template, the data source, and the name of the data source.
  • Save generated Word document using Document.save() method.

The following code sample shows how to generate a Word document from a Word template using the values of the Java object.

Output

generate word document by template with Java objects

Generate Word Documents from Template using XML Data

Let’s now take one step further and see how to populate the Word templates using an XML data source in a bit complex scenario. The following is the XML data source that we’ll use to populate the Word template.

In this scenario, we’ll use the following tags in the template document for multiple records in the XML data source.

<<foreach [in persons]>>Name: <<[Name]>>, Age: <<[Age]>>, Date of Birth: <<[Birth]:"dd.MM.yyyy">>
<</foreach>>
Average age: <<[persons.average(p => p.Age)]>>

The Java code for generating Word document, in this case, would be the same and except for passing Java object as the data source, we’ll pass the XmlDataSource object in ReportingEngine.buildReport() method. The following code sample shows how to create a Word document by populating the document template using XML data source in Java.

Output

generate word document by template with XML in Java

Generate Word Documents from Template using JSON Data

Let’s now have a look at how to generate Word document from the DOCX template using a JSON data source. Following is the JSON data that we’ll use in this example.

In this example, we’ll generate the Word document containing a list of the clients grouped by their managers. In accordance with this scenario, the DOCX template will look like the following:

<<foreach [in managers]>>Manager: <<[Name]>>
Contracts:
<<foreach [in Contract]>>- <<[Client.Name]>> ($<<[Price]>>)
<</foreach>>
<</foreach>>

For loading JSON data source, Aspose.Words provides JsonDataSource class. The following code sample shows how to create a Word document from the template using a JSON data source in Java.

Output

create word document with JSON in Java

Generate Word Documents from Template using CSV Data

Last but not least, let’s check out how to generate the Word document by populating the Word template using the following CSV data source.

The following Word template will be used in this example:

<<foreach [in persons]>>Name: <<[Column1]>>, Age: <<[Column2]>>, Date of Birth: <<[Column3]:"dd.MM.yyyy">>
<</foreach>>
Average age: <<[persons.average(p => p.Column2)]>>

For dealing with CSV data sources, Aspose.Words offers CsvDataSource class. The following code sample shows how to generate a Word document using a CSV data source in Java.

Output

create word document with CSV in java

Learn more about LINQ Reporting Engine

LINQ Reporting Engine supports a wide range of tags for generating fully-featured Word documents dynamically in Java. You can explore more about these tags along with their syntax in this article.

In case you would have any questions or queries, you can post to Aspose.Words Forum.

Related Article(s)

Posted in Aspose.Words Product Family | Tagged , , , , , , , , , , | Leave a comment

Java API for Optical Mark Recognition and Processing in Images

Java OMR Library

Do you need a simple yet feature-rich OMR library for Java? Do you want to recognize optical marks in scanned images? Try Aspose.OMR for Java – A Java class library to perform the Optical Mark Recognition (OMR) operations in Java-based applications. Let’s have a quick walk through the features of the said Java API to see how to recognize optical marks in a variety of image formats and capture human-marked data from surveys, questionnaires or tests containing MCQs.

Dynamically Create OMR Template in Java

Aspose.OMR for Java provides a complete set of features from creating the OMR template to recognizing the optical marks to capture the data. The API supports generating the OMR template file or the image from simple text markups. You can simply pass the template’s text markup to the API and it will generate the template for you. The following is a sample text markup for an OMR template.

?text=Name__________________________________ Date____________

?grid=ID
sections_count=8
#What is Aspose.OMR main function?
() OCR () Capture human-marked data
() There is no main function () Enhance images
#Can Aspose.OMR process photos as well?
() Yes, indeed! () No
#Aspose.OMR is available on any platform, because it is:
() Cross-platform code () Cloud service
#Aspose.OMR works with any kind of OMR forms: tests, exams, questionnaires, surveys, etc.
() Yes, indeed! () No
#Excellent recognition results can be achieved only for filled bubbles at least for:
() 40% () 60% () 75% () 98%
#Do you have to mark up every question on the page?
(Yes) Yes, that will help a lot! (No) No
#Rate your preference from 0 to 9 with "0" being preference towards performance
and "9" being preference towards flexibility.
(0) (1) (2) (3) (4) (5) (6) (7) (8) (9)
#I found aspose omr to be a useful tool. (5 - strongly agree, 1 - strongly disagree)
(5) (4) (3) (2) (1)

?text= Answer sheet section
?answer_sheet=MainQuestions
elements_count=10
columns_count=5

?text=Sign________________________________

You can simply save the text markup in a text file with .txt extension. Once done, you can generate the template using the following steps:

The following code sample shows how to generate the OMR template from text markup using Java.

Output

Optical Mark Recognition (OMR) in Images using Java

In order to perform OMR in images, you just need two things – the prepared OMR template (.omr) and the images (user-filled forms/sheets) to perform OMR on. The API supports the OMR for the following image formats:

The following are the steps to perform OMR in images:

The following code sample shows how to recognize optical marks in images using Java.

Using a Custom Recognition Threshold for OMR

You can also fine-tune the OMR results by defining a custom threshold between 0 to 100. Increasing the threshold makes the API more strict in recognizing the answers. The threshold values can be set in TemplateProcessor.recognizeImage() method as the second parameter as shown in the following Java code sample.

Recalculating the OMR Results

In some cases, you may want to recalculate the OMR results with different threshold values. Instead of calling TemplateProcessor.recognizeImage() again and again in such cases, you can configure the API for automatic recalculation using TemplateProcessor.recalculate() method to improve image processing efficiency. The following code sample shows how to implement the recalculation of the OMR results.

Contact us via our forum for any questions or queries.

Posted in Aspose.OMR Product Family | Tagged , , , , , , | Leave a comment

Create Pivot Tables in Excel and Sort or Hide Data using C# .NET

C# Library to Create and Sort PivotTable in Excel

In this article, you’ll learn how to create Pivot Tables in Excel and sort or hide the Pivot Table data or items programmatically in C# using Aspose.Cells for .NET – .NET API to create and manipulate Excel spreadsheets without requiring Microsoft Excel.

Things have gone digital and the automated solutions for the generation and manipulation of Excel spreadsheets are widely used. The Pivot Tables in Excel are extensively used to summarize and analyze the data. Whereas sorting the data in the Pivot Tables is very useful for critical inspection of the huge data in Excel spreadsheets. The sorting of data in Pivot Tables can be applied for arranging the items alphabetically (A-Z or Z-A) for text values or from the highest to lowest or lowest to highest values in case of numbers.

Based on the importance of Excel Pivot Tables, this article aims to show you how to:

  • create a Pivot Table in Excel,
  • sort Pivot Table by row field values,
  • sort Pivot Table by column field values,
  • and hide Pivot Table rows.

For the demonstration, the following sample Excel spreadsheet will be used throughout the examples.

Create Pivot Table in Excel in C#

Create a Pivot Table in Excel using C#

Let’s first check out how to create an Excel Pivot Table in C# using Aspose.Cells for .NET. Once we have created the Pivot Table, we’ll hide the rows and sort the data based on its column or the row fields. The following code sample shows how to create an Excel Pivot Table.

Output

Pivot Table in Excel in C#

Sort Pivot Table by Row Field Values in C#

In the previous section, we simply created the Pivot Table using the data in the Excel spreadsheet. Now, we’ll create another Pivot Table and apply the sorting on the data. The following code sample creates and sorts the PivotTable by “SeaFood” row field values.

Output

Sort Pivot Table in Excel in C#

Sort Pivot Table by Column Field Values in C#

You can also sort the data in a Pivot Table by the column field values. The following C# code sample applies the sorting on field values of the “28/07/2000” column.

Output

Sort and Hide Data in Pivot Table in Excel

Hide PivotTable Rows in C#

You can hide the rows in the Excel Pivot Table based on certain conditions you want to apply. The following code sample shows how to hide particular rows in the Pivot Table using C#.

Have a look at the documentation of Aspose.Cells for .NET for more details on how to work with Pivot Tables in Excel using C# in any .NET based application. Reach us at our forum in case of any questions or queries.

Posted in Aspose.Cells Product Family | Tagged , , , , , , , | Leave a comment

C# .NET Word Automation – Create, Edit or Convert MS Word Documents Programmatically

C# .NET Word Automation

Are you looking for a .NET Word Automation solution to generate and process word processing documents in C#? Do you want to create, read, edit/modify and convert Word documents programmatically without requiring MS Office? Let’s try out Aspose.Words for .NET API – A complete set of features for generation and processing of Word documents (.doc, .docx, etc.) in your .NET or .NET Core based applications.

MS Word document automation and report generation are in high demand by enterprises. Aspose.Words for .NET is a complete and feature-rich Word automation solution to create, edit or analyze Word documents in such cases. This article covers all the basic features required for generating and manipulating the Word documents programmatically using C#. Once you read this article, you will be able to:

  • Create a Word (.doc, .docx) document.
  • Edit or modify a Word document.
  • Convert a Word document to other formats such as PDF.
  • Parse a Word document.

Aspose.Words for .NET – C# Word Automation API

Aspose.Words for .NET DLL can be downloaded from here. Another option is to install it via NuGet Package Manager or Package Manager Console in Visual Studio.

Using NuGet Package Manager

C# .NET Word Automation Library

Using Package Manager Console

PM> Install-Package Aspose.Words

Create a Word Document Dynamically using C#

Let’s start our journey by creating a new Word document using Aspose.Words for .NET. The DocumentBuilder class of the API contains all the methods and properties to create Word documents from scratch. In combination with the Document class, DocumentBuilder supports inserting elements such as text/paragraphs, checkboxes, tables, lists, images and the other objects that a Word document can contain. Moreover, you can specify the font and other formatting options using this class. The following are the steps to create a Word document using DocumentBuilder class.

  • Create a new Document object.
  • Create and new DocumentBuilder object and initialize it with the Document object.
  • Insert/write elements using the DocumentBuilder object.
  • Save the document using Document.Save method.

The following code sample shows how to create a Word DOCX document with formatted text, table, and image in C#.

The following is the document we get after executing the above code.

Create Word document in C# .NET

Visit these articles to explore more about the elements you can add to a Word document using Aspose.Words for .NET.

Edit or Modify a Word Document in C#

You can also edit or modify the existing Word documents using Aspose.Words for .NET. Aspose.Words Document Object Model classes let you access and modify the document’s elements as well as their formatting. DOM is actually the in-memory representation of the document. To understand the document representation as DOM, please see the DOM overview.

Let’s now check out how to edit an existing element in a Word document. Suppose we need to update the text “This is the first page.” in the document that we have recently created. Since this is the first paragraph in the first section of the document, we can access it by specifying the index of the first section and the first paragraph. The following code sample shows how to edit the paragraph in the Word document using C#.

The following is the updated Word document.

Word Automation in C# .NET

Convert Word Document to Other Formats in C#

Along with creating and manipulating Word documents, Aspose.Words for .NET also allows converting a document to other formats including (but not limited to) PDF, XPS, EPUB, HTML, and image formats such as BMP, PNG or JPEG. The following code sample shows how to convert a Word document to PDF in C#.

Visit this article to see how to convert a Word document to other formats.

Parse a Word Document in C#

You can also parse a Word document by extracting its content as a plain text. The following code sample shows how to extract text from a Word document and save it into a .txt file.

Visit the documentation of Aspose.Words for .NET for a complete Developer’s Guide. In case you would find anything confusing for you, do let us know via our forum.

Related Article(s)

Posted in Aspose.Words Product Family | Tagged , , , , , , , , , , , , , , | Leave a comment

Aspose.Words for .NET 20.1 released

This month was finished with good productivity, as the result 63 improvements and fixes (with 7 Enterprise/Priority Support issues among them) were included to this regular monthly release . Totally 105 issues have been processed.

The most notable public API changes are:

  • Added feature to insert IconCaption while using InsertOleObject method.
  • New public properties of Table class are exposed to allow floating table position manipulation.
  • Implemented an ability to check if VbaProject is signed.
  • Supported dynamic bookmark insertion for LINQ Reporting Engine.

Aspose.Words .NET/Rendering Team implemented direct embedding of OpenType fonts as planned feature for PDF 1.7 standard. The preparation of the first release of 3D Effects Rendering through OpenGL is ongoing. Also, various tasks related to SmartArt Cold Rendering support were investigated and achieved.

Aspose.Words .NET/Layout Team implemented support for paragraph rules in footnotes. The HarfBuzz plugin was upgraded to improve different cases with Arabic rendering. Also, number of fixes related to text wrapping and table sizing were delivered by Layout Team.

Posted in Aspose.Words Product Family | Tagged , , , , , , , , | Leave a comment

How to Convert PDF to Excel in C# .NET – PDF to XLS or XLSX

PDF to Excel in C# .NET

PDF to Excel conversion is an important use case when you need to export the tabular data from PDF documents to Excel spreadsheets. Copying/exporting the data from PDF to Excel manually could be a time-consuming task when you are dealing with a bunch of documents. So why not automate this process and minimize the time and effort? In this article, you will learn how to convert PDF to Excel programmatically using C# .NET.

Converting PDF to Excel in C# .NET

This article covers the following PDF to Excel conversions using C#.

  • Converting PDF to XLS format.
  • Converting PDF to XLSX format.
  • Inserting a blank first column in converted Excel worksheet.
  • Minimizing the number of worksheets in the converted Excel spreadsheet.

For PDF to Excel conversion in C#, we’ll use Aspose.PDF for .NET API that supports creating and manipulating PDF documents as well as converting PDF files to other formats. You can either download DLL of the API or install it using one of the following ways.

Install via NuGet Package Manager

  • Open/create the project in Visual Studio.
  • Go to NuGet Package Manager and search Aspose.PDF.
  • Install the API.

Install via Package Manager Console

PM> Install-Package Aspose.PDF

Converting PDF to XLS in C#

In order to convert a PDF document to the XLS spreadsheet, you can simply load the PDF file and save it with the “.xls” extension. The following code sample shows how to convert PDF to Excel in XLS format using C#.

PDF Document

Converted Excel Spreadsheet

Converting PDF to XLSX in C#

By default, Aspose.PDF converts the PDF document to XLS format. In case you want to get the converted Excel spreadsheet in XLSX format, you can specify it using ExcelSaveOptions class. The following code sample shows how to convert a PDF document to Excel with XLSX format using C#.

Convert PDF to Excel with a Blank First Column

You can also insert a blank first column in the converted Excel spreadsheet. This can be done using ExcelSaveOptions.InsertBlankColumnAtFirst option as shown in the following code sample.

Convert PDF to Excel with Minimized Number of Worksheets

By default, every page in the input PDF document is converted into a separate worksheet. For the large PDF documents with a number of pages, the converted Excel spreadsheet will also contain a number of worksheets. In such a case, you can customize the PDF to Excel conversion and minimize the number of worksheets in the converted spreadsheet using ExcelSaveOptions.MinimizeTheNumberOfWorksheets option.

The following code sample shows how to minimize the number of worksheets in PDF to Excel conversion using C#.

Read more about Aspose.PDF for .NET here.

Related Article(s)

Posted in Aspose.PDF Product Family | Tagged , , , , , , , , | Leave a comment

Converting Word Document to PDF Programmatically in C# .NET – A Complete Guide

C# Word to PDF - DOC to PDF

Word to PDF conversion is a common practice these days and it is preferred before sharing the documents. MS Word provides a builtin feature to save Word documents as PDF, however, there might be the case when you want to convert Word document to PDF programmatically such as in your web applications or you may require batch Word to PDF conversions without installing MS Office. So in this article, you will learn how to convert Word (DOC, DOCX) to PDF programmatically using C# in .NET or .NET Core framework.

Word to PDF Conversion Features

In this article, we’ll perform the following Word to PDF conversions in C#.

  • Simple Word to PDF conversion.
  • Converting desired pages of Word document to PDF.
  • Converting Word to PDF with a particular PDF Standard such as PDF 1.7, PDF/A-1a, etc.
  • Converting Word to PDF with image/text compression.
  • Converting Word to PDF with a digital signature.
  • Converting Word to PDF with the desired JPEG quality for images.

.NET API for Word to PDF Conversion in C#

Aspose.Words for .NET is a powerful API for creating and manipulating popular Word document formats. The API also provides an easy way of converting Word documents to PDF with a high degree of fidelity. Therefore, for Word to PDF conversion in C#, we’ll first add a reference to Aspose.Words for .NET DLL in the project or install it using one of the following methods.

Using NuGet Package Manager

  • Create/open the project in Visual Studio.
  • Go to NuGet Package Manager and search Aspose.Words.
  • Install the Aspose.Words for .NET.
Convert Doc to PDF C# .NET

Using the Package Manager Console

PM> Install-Package Aspose.Words

Simple Word to PDF Conversion in C#

To convert a Word document to PDF, you’ll have to invoke the Document.Save() method and specify the output file name with the “.pdf” extension. The following code sample shows a simple DOC to PDF conversion in C#.

Word Document

Converted PDF Document

Convert Selected Pages of Word Document to PDF in C#

You can also customize the Word to PDF conversion by specifying the range of pages you want to get in the resultant PDF document. You can either convert first N pages or define a range of pages specifying the starting page’s index. The following C# code sample shows how to convert 3 pages starting from the second page of Word document to PDF.

Convert Word to PDF with a Particular PDF Standard in C#

PDF documents may compliant with different PDF standards such as PDF 1.7, PDF 1.5, PDF/A-1a, etc. In accordance with this, Aspose.Words for .NET allows specifying the PDF compliance level in Word to PDF conversion. You can specify the compliance level using PdfCompliance enum. The following code sample shows how to set the compliance level in DOCX to PDF conversion in C#.

Convert Word to PDF with Text/Image Compression in C#

The PDF format supports text and image compression to reduce the size of the document. Since a PDF document could be bulky in size, the compression of its content makes it easy to upload, share, print, etc. The text and image compression can also be applied in Word to PDF conversion using Aspose.Words for .NET.

Text Compression Options

The following text compression options are available in PdfTextCompression enum.

  • None: Saving PDF without text compression.
  • Flate: Saving PDF with flate (ZIP) compression.

Image Compression

The following image compression options are available in PdfImageCompression enum.

  • Auto: The API automatically selects the most appropriate compression for every image in the document.
  • Jpeg: Compression to JPEG images (does not support transparency).

The following code sample shows how to convert DOCX to PDF with text and image compression in C#.

Convert Word to PDF with a Digital Signature in C#

You can also apply a digital signature to the output PDF while performing Word to PDF conversion. The CertificateHolder class allows you to specify the digital certificate and the password. The PdfDigitalSignatureDetails class allows providing the details of the digital signature such as certificate holder, reason, location and date/time. The following code sample shows how to convert Word document to PDF with a digital signature in C#.

Convert Word to PDF with Desired JPEG Quality in C#

You can also specify the desired JPEG quality you want to get in the converted PDF document using PdfSaveOptions.JpegQuality property. The value of JpegQuality may vary from 0 to 100 where 0 means the worst quality but maximum compression and 100 means the best quality but minimum compression.

The following code sample shows how to set JPEG quality when converting DOCX to PDF in C#.

Visit documentation of Aspose.Words for .NET to see the complete set of features offered by the API. For any questions or queries, contact us via our forum.

Related Article(s)

Posted in Aspose.Words Product Family | Tagged , , , , , , , , , , , , | Leave a comment

Aspose.Total Discount Offer ends January 31st

LinkedIn YouTube Twitter Facebook
Share this issue:

Monthly Newsletter

January 2020

25% off Aspose.Total
Hurry! Offer ends January 31st.
 

Get 25% off Aspose.Total for .NET, Java, C++, Android via Java, SharePoint, SSRS and JasperReports.

Quote HOLOFF2019 when placing your order.

Buy Now
This offer is only available on new Aspose.Total purchases and cannot be used in conjunction with other offers, renewals or upgrades. Only available directly from aspose.com, not through third parties or resellers. Ts&Cs Apply.
Product News
Product News
Product News
 
From the Library
From the Library
From the Library
 
Feedback
Feedback
Feedback
 
Aspose for .NETAspose for JavaAspose for C++Aspose for Androidaspose.cloud
Product Releases and Updates
Posted in Customer Newsletters | Tagged , , , | Leave a comment