Skip to content

Commit

Permalink
Update content 2024-04-30 14:34:57
Browse files Browse the repository at this point in the history
  • Loading branch information
yevgen-nykytenko committed Apr 30, 2024
1 parent 0c471ed commit 71bd4ab
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 79 deletions.
97 changes: 18 additions & 79 deletions english/java/com.groupdocs.viewer.options/pdfviewoptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ Example usage:

| Method | Description |
| --- | --- |
| [getJpgQuality()](#getJpgQuality--) | Retrieves the quality of the JPG images contained by the output PDF document. |
| [setJpgQuality(int value)](#setJpgQuality-int-) | Sets the quality of the JPG images contained by the output PDF document. |
| [getPdfOptimizationOptions()](#getPdfOptimizationOptions--) | Reduce output PDF file size applying optimization techniques with different options. |
| [setPdfOptimizationOptions(PdfOptimizationOptions pdfOptimizationOptions)](#setPdfOptimizationOptions-com.groupdocs.viewer.options.PdfOptimizationOptions-) | Reduce output PDF file size applying optimization techniques with different options. |
| [getImageMaxWidth()](#getImageMaxWidth--) | Retrieves the maximum width of an output image in pixels. |
| [setImageMaxWidth(int imageMaxWidth)](#setImageMaxWidth-int-) | Sets the maximum width of an output image in pixels. |
| [getImageMaxHeight()](#getImageMaxHeight--) | Retrieves the maximum height of an output image in pixels. |
Expand All @@ -57,8 +57,6 @@ Example usage:
| [setImageHeight(int imageHeight)](#setImageHeight-int-) | Sets the height of the output image in pixels. |
| [getSecurity()](#getSecurity--) | Retrieves the security options for the output PDF document. |
| [setSecurity(Security value)](#setSecurity-com.groupdocs.viewer.options.Security-) | Sets the security options for the output PDF document. |
| [isOptimize()](#isOptimize--) | Reduce output file size by excluding common fonts like Times New Roman and Arial, and applying other optimization techniques. |
| [setOptimize(boolean optimize)](#setOptimize-boolean-) | Reduce output file size by excluding common fonts like Times New Roman and Arial, and applying other optimization techniques. |
| [getDocumentSavingCallback()](#getDocumentSavingCallback--) | Retrieves the callback used to estimate the progress of saving a Words or Email document. |
| [setDocumentSavingCallback(IDocumentSavingCallback documentSavingCallback)](#setDocumentSavingCallback-com.groupdocs.viewer.domain.documents.converting.tohtml.utils.IDocumentSavingCallback-) | Sets the callback used to estimate the progress of saving a Words or Email document. |
### PdfViewOptions(CreateFileStream createFileStream) {#PdfViewOptions-com.groupdocs.viewer.interfaces.CreateFileStream-}
Expand Down Expand Up @@ -139,32 +137,38 @@ Initializes a new instance of the PdfViewOptions class.
| --- | --- | --- |
| outputFilePath | java.nio.file.Path | The path for the output PDF file. |

### getJpgQuality() {#getJpgQuality--}
### getPdfOptimizationOptions() {#getPdfOptimizationOptions--}
```
public final int getJpgQuality()
public PdfOptimizationOptions getPdfOptimizationOptions()
```


Retrieves the quality of the JPG images contained by the output PDF document. The JPG quality determines the level of compression applied to the images in the PDF document.
Reduce output PDF file size applying optimization techniques with different options.

***Note:** Valid values range from 1 to 100, where 1 represents the lowest quality and 100 represents the highest quality.*
This option is supported for any input file formats which are supported for conversion to PDF: [Supported document formats][]


[Supported document formats]: https://docs.groupdocs.com/viewer/net/supported-document-formats/

**Returns:**
int - the quality of the JPG images in the output PDF document.
### setJpgQuality(int value) {#setJpgQuality-int-}
com.groupdocs.viewer.options.PdfOptimizationOptions - PdfOptimizationOptions object or null.
### setPdfOptimizationOptions(PdfOptimizationOptions pdfOptimizationOptions) {#setPdfOptimizationOptions-com.groupdocs.viewer.options.PdfOptimizationOptions-}
```
public final void setJpgQuality(int value)
public void setPdfOptimizationOptions(PdfOptimizationOptions pdfOptimizationOptions)
```


Sets the quality of the JPG images contained by the output PDF document. The JPG quality determines the level of compression applied to the images in the PDF document.
Reduce output PDF file size applying optimization techniques with different options.

This option is supported for any input file formats which are supported for conversion to PDF: [Supported document formats][]

***Note:** Valid values range from 1 to 100, where 1 represents the lowest quality and 100 represents the highest quality.*

[Supported document formats]: https://docs.groupdocs.com/viewer/net/supported-document-formats/

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | The quality of the JPG images in the output PDF document. |
| pdfOptimizationOptions | com.groupdocs.viewer.options.PdfOptimizationOptions | PdfOptimizationOptions object or null. |

### getImageMaxWidth() {#getImageMaxWidth--}
```
Expand Down Expand Up @@ -281,71 +285,6 @@ Sets the security options for the output PDF document.
| --- | --- | --- |
| value | [Security](../../com.groupdocs.viewer.options/security) | The security options for the output PDF document. |

### isOptimize() {#isOptimize--}
```
public boolean isOptimize()
```


Reduce output file size by excluding common fonts like Times New Roman and Arial, and applying other optimization techniques.

In version 24.2 this option is supported for [Spreadsheet file formats][] only.

Learn more how to export Excel and Apple Numbers spreadsheets to PDF

* [Render spreadsheets as PDF][]

**Example:**

```
try (Viewer viewer = new Viewer("employees.xlsx")) {
PdfViewOptions viewOptions = new PdfViewOptions();
viewOptions.setOptimize(true);
viewer.view(viewOptions);
}
```


[Spreadsheet file formats]: https://docs.groupdocs.com/viewer/java/supported-document-formats/#spreadsheet-file-formats
[Render spreadsheets as PDF]: https://docs.groupdocs.com/viewer/java/render-excel-and-apple-numbers-spreadsheets/#render-spreadsheets-as-pdf

**Returns:**
boolean
### setOptimize(boolean optimize) {#setOptimize-boolean-}
```
public void setOptimize(boolean optimize)
```


Reduce output file size by excluding common fonts like Times New Roman and Arial, and applying other optimization techniques.

In version 24.2 this option is supported for [Spreadsheet file formats][] only.

Learn more how to export Excel and Apple Numbers spreadsheets to PDF

* [Render spreadsheets as PDF][]

**Example:**

```
try (Viewer viewer = new Viewer("employees.xlsx")) {
PdfViewOptions viewOptions = new PdfViewOptions();
viewOptions.setOptimize(true);
viewer.view(viewOptions);
}
```


[Spreadsheet file formats]: https://docs.groupdocs.com/viewer/java/supported-document-formats/#spreadsheet-file-formats
[Render spreadsheets as PDF]: https://docs.groupdocs.com/viewer/java/render-excel-and-apple-numbers-spreadsheets/#render-spreadsheets-as-pdf

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| optimize | boolean | |

### getDocumentSavingCallback() {#getDocumentSavingCallback--}
```
public IDocumentSavingCallback getDocumentSavingCallback()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ Example usage:
| [forJpgView(boolean extractText)](#forJpgView-boolean-) | Initializes a new instance of the ViewInfoOptions class to retrieve information about the view when rendering into JPG. |
| [forPngView()](#forPngView--) | Initializes a new instance of the ViewInfoOptions class to retrieve information about the view when rendering into PNG. |
| [forPngView(boolean extractText)](#forPngView-boolean-) | Initializes a new instance of the ViewInfoOptions class to retrieve information about the view when rendering into PNG. |
| [forPdfView()](#forPdfView--) | Initializes a new instance of the ViewInfoOptions class to retrieve information about view when rendering into PDF. |
| [fromHtmlViewOptions(HtmlViewOptions options)](#fromHtmlViewOptions-com.groupdocs.viewer.options.HtmlViewOptions-) | Initializes a new instance of the ViewInfoOptions class based on the [HtmlViewOptions](../../com.groupdocs.viewer.options/htmlviewoptions) object. |
| [fromPngViewOptions(PngViewOptions options)](#fromPngViewOptions-com.groupdocs.viewer.options.PngViewOptions-) | Initializes a new instance of the ViewInfoOptions class based on the [PngViewOptions](../../com.groupdocs.viewer.options/pngviewoptions) object. |
| [fromJpgViewOptions(JpgViewOptions options)](#fromJpgViewOptions-com.groupdocs.viewer.options.JpgViewOptions-) | Initializes a new instance of the ViewInfoOptions class based on the [JpgViewOptions](../../com.groupdocs.viewer.options/jpgviewoptions) object. |
| [fromPdfViewOptions(PdfViewOptions options)](#fromPdfViewOptions-com.groupdocs.viewer.options.PdfViewOptions-) | Initializes a new instance of the [ViewInfoOptions](../../com.groupdocs.viewer.options/viewinfooptions) class based on a PdfViewOptions object. |
### isExtractText() {#isExtractText--}
```
public boolean isExtractText()
Expand Down Expand Up @@ -247,6 +249,16 @@ Initializes a new instance of the ViewInfoOptions class to retrieve informatio

**Returns:**
[ViewInfoOptions](../../com.groupdocs.viewer.options/viewinfooptions) - New instance of ViewInfoOptions class.
### forPdfView() {#forPdfView--}
```
public static ViewInfoOptions forPdfView()
```


Initializes a new instance of the ViewInfoOptions class to retrieve information about view when rendering into PDF.

**Returns:**
[ViewInfoOptions](../../com.groupdocs.viewer.options/viewinfooptions) - A new instance of the [ViewInfoOptions](../../com.groupdocs.viewer.options/viewinfooptions) class.
### fromHtmlViewOptions(HtmlViewOptions options) {#fromHtmlViewOptions-com.groupdocs.viewer.options.HtmlViewOptions-}
```
public static ViewInfoOptions fromHtmlViewOptions(HtmlViewOptions options)
Expand Down Expand Up @@ -292,3 +304,18 @@ Initializes a new instance of the ViewInfoOptions class based on the [JpgViewO

**Returns:**
[ViewInfoOptions](../../com.groupdocs.viewer.options/viewinfooptions) - New instance of ViewInfoOptions class.
### fromPdfViewOptions(PdfViewOptions options) {#fromPdfViewOptions-com.groupdocs.viewer.options.PdfViewOptions-}
```
public static ViewInfoOptions fromPdfViewOptions(PdfViewOptions options)
```


Initializes a new instance of the [ViewInfoOptions](../../com.groupdocs.viewer.options/viewinfooptions) class based on a PdfViewOptions object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| options | [PdfViewOptions](../../com.groupdocs.viewer.options/pdfviewoptions) | The PDF view options. |

**Returns:**
[ViewInfoOptions](../../com.groupdocs.viewer.options/viewinfooptions) - A new instance of the ViewInfoOptions class.
11 changes: 11 additions & 0 deletions english/java/com.groupdocs.viewer/license/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Example usage:
| [setLicense(Path licensePath)](#setLicense-java.nio.file.Path-) | Licenses the component. |
| [setLicense(String licensePath)](#setLicense-java.lang.String-) | Licenses the component. |
| [setLicense(URL licenseUri)](#setLicense-java.net.URL-) | Licenses the component. |
| [isLicensed()](#isLicensed--) | |
### License() {#License--}
```
public License()
Expand Down Expand Up @@ -140,3 +141,13 @@ This method should be called before using any functionality.
| --- | --- | --- |
| licenseUri | java.net.URL | The license URI. |

### isLicensed() {#isLicensed--}
```
public final boolean isLicensed()
```




**Returns:**
boolean

0 comments on commit 71bd4ab

Please sign in to comment.