<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – Render, Print, and Preview</title>
    <link>https://docs.aspose.com/cells/java/rendering/</link>
    <description>Recent content in Render, Print, and Preview on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="https://docs.aspose.com/cells/java/rendering/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Java: Printing Workbooks</title>
      <link>https://docs.aspose.com/cells/java/printing-workbooks/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/printing-workbooks/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

This document is designed to provide developers with an understanding (in a compact manner) of how to print spreadsheets.
&lt;/div&gt;

&lt;h2 id=&#34;usage-scenario&#34;&gt;Usage Scenario&lt;/h2&gt;
&lt;p&gt;After you finish creating your spreadsheet, you will probably want to print a hard copy of the sheet for your needs. When you are printing, MS Excel assumes you want to print the entire worksheet area unless you specify your selection. The following screenshot shows the dialog box for printing a workbook with Excel.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;printing-workbooks_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Figure:&lt;/strong&gt; Print Dialog Box&lt;/p&gt;
&lt;h2 id=&#34;printing-workbooks-using-asposecells&#34;&gt;Printing Workbooks using Aspose.Cells&lt;/h2&gt;
&lt;p&gt;Aspose.Cells for Java provides a &lt;strong&gt;toPrinter&lt;/strong&gt; method of the &lt;strong&gt;SheetRender&lt;/strong&gt; class. By using the &lt;strong&gt;SheetRender.toPrinter&lt;/strong&gt; method, you can provide the printer name as well as the print job name.&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;Sample Code&lt;/h2&gt;
&lt;h3 id=&#34;print-selected-worksheet&#34;&gt;Print Selected Worksheet&lt;/h3&gt;
&lt;p&gt;The following code snippet demonstrates the use of the &lt;strong&gt;SheetRender.toPrinter&lt;/strong&gt; method to print your selected worksheet.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-main-java-com-aspose-cells-examples-articles-PrintingSelectedWorksheet-PrintingSelectedWorksheet.java&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;print-whole-workbook&#34;&gt;Print Whole Workbook&lt;/h3&gt;
&lt;p&gt;You can also use the &lt;strong&gt;WorkbookRender.toPrinter&lt;/strong&gt; method to print the whole workbook. The following code snippet demonstrates the use of the &lt;strong&gt;WorkbookRender.toPrinter&lt;/strong&gt; method to print the whole workbook.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-main-java-com-aspose-cells-examples-articles-PrintingWholeWorkbook-PrintingWholeWorkbook.java&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;related-articles&#34;&gt;Related Articles&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/specify-job-or-document-name-while-printing-with-aspose-cells/&#34;&gt;Specify Job or Document Name while printing with Aspose.Cells&lt;/a&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Converting Worksheet to Different Image Formats</title>
      <link>https://docs.aspose.com/cells/java/converting-worksheet-to-different-image-formats/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/converting-worksheet-to-different-image-formats/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Aspose.Cells allows you to export a worksheet from the workbook and convert it into different formats. This article explains how to convert a worksheet to different formats.
&lt;/div&gt;

&lt;h2 id=&#34;converting-worksheet-to-image&#34;&gt;&lt;strong&gt;Converting Worksheet to Image&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Sometimes, it is useful to save a picture of a worksheet. Images can be shared online, inserted into other documents (reports written in Microsoft Word, for example, or PowerPoint presentations).&lt;/p&gt;
&lt;p&gt;Aspose.Cells provides image export through the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/sheetrender&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt; class. This class represents the worksheet that will be rendered to an image. The &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/sheetrender&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt; class provides the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/sheetrender#toImage-int-java.io.OutputStream-&#34;&gt;&lt;strong&gt;toImage()&lt;/strong&gt;&lt;/a&gt; method for converting a worksheet to an image file. BMP, PNG, JPEG, TIFF, and EMF formats are supported.&lt;/p&gt;
&lt;p&gt;

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Aspose.Cells for Java also supports conversion to TIFF format. To convert a worksheet to a TIFF image, add the JAI library to your classpath.
&lt;/div&gt;
 

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

At present, the worksheet-to-image conversion API does not support 3D-bubble charts.
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;The code below shows how to convert a worksheet in a Microsoft Excel file to a PNG file.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-LoadingSavingConvertingAndManaging-WorksheetToImage-1.java&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;converting-worksheet-to-svg&#34;&gt;&lt;strong&gt;Converting Worksheet to SVG&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;SVG stands for &lt;strong&gt;Scalable Vector Graphics&lt;/strong&gt;. SVG is a specification based on XML standards for two-dimensional vector graphics. It is an open standard that has been under development by the World Wide Web Consortium (W3C) since 1999.&lt;/p&gt;
&lt;p&gt;Since the release of v7.1.0, &lt;strong&gt;Aspose.Cells for Java&lt;/strong&gt; can convert worksheets into SVG images.&lt;/p&gt;
&lt;p&gt;To use this feature, you need to import the com.aspose.cells namespace to your program or project. It has several valuable classes for rendering and printing, for example, &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/sheetrender&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/ImageOrPrintOptions&#34;&gt;&lt;strong&gt;ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/workbookrender&#34;&gt;&lt;strong&gt;WorkbookRender&lt;/strong&gt;&lt;/a&gt;, and others.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/ImageOrPrintOptions&#34;&gt;&lt;strong&gt;com.aspose.cells.ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt; class specifies that the worksheet will be saved in SVG format.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/sheetrender&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt; class takes an &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/ImageOrPrintOptions&#34;&gt;&lt;strong&gt;ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt; object as a parameter, which sets the save format to SVG.&lt;/p&gt;
&lt;p&gt;The following code snippet shows how to convert a worksheet in an Excel file to an SVG image file.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-main-java-com-aspose-cells-examples-loading_saving-ConvertingWorksheetToSVG-ConvertingWorksheetToSVG.java&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;render-active-worksheet-in-a-workbook&#34;&gt;&lt;strong&gt;Render active worksheet in a workbook&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;A simple way to convert the active worksheet in a workbook is to set the active sheet index and then save the workbook as SVG. It will render the active sheet to SVG. Following sample code demonstrates this feature:&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-LoadingSavingConvertingAndManaging-ConvertActiveWorksheetToSVG-1.java&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;related-articles&#34;&gt;Related Articles&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/export-chart-to-svg-with-viewbox-attribute/&#34;&gt;Export Chart to SVG with viewBox attribute&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/export-worksheet-or-chart-into-image-with-desired-width-and-height/&#34;&gt;Export Worksheet or Chart into Image with Desired Width and Height&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/converting-worksheet-to-image-and-worksheet-to-image-by-page/&#34;&gt;Converting Worksheet to Image and Worksheet to Image by Page&lt;/a&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Generate a Thumbnail Image of a Worksheet</title>
      <link>https://docs.aspose.com/cells/java/generate-a-thumbnail-image-of-a-worksheet/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/generate-a-thumbnail-image-of-a-worksheet/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

It can be useful to generate thumbnails of worksheets. A thumbnail is a small image that can be pasted into a Word document or a PowerPoint presentation to give a preview of what&amp;rsquo;s on the worksheet. It can be added to a webpage with a link to download the original document and has a host of other uses.
&lt;/div&gt;

&lt;p&gt;Aspose.Cells for Java allows you to output worksheets to image files, so making a thumbnail is easy.&lt;/p&gt;
&lt;p&gt;The sample code below shows you how, step by step.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-GenerateThumbnailofWorksheet-1.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Create Transparent Image of Excel Worksheet</title>
      <link>https://docs.aspose.com/cells/java/create-transparent-image-of-excel-worksheet/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/create-transparent-image-of-excel-worksheet/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Sometimes, you need to generate the image of your worksheet as a transparent image. You want to apply transparency to all cells which have no fill colors. Aspose.Cells provides the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setTransparent-boolean-&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.setTransparent()&lt;/strong&gt;&lt;/a&gt; property to apply transparency to worksheet image. When this property is &lt;strong&gt;false&lt;/strong&gt;, then cells with no fill colors are drawn with white color and when it is &lt;strong&gt;true&lt;/strong&gt;, cells with no fill colors are drawn transparent.
&lt;/div&gt;

&lt;p&gt;In the following worksheet image, transparency has not been applied. The cells with no fill colors are drawn white.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Worksheet image without applying transparency&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;create-transparent-image-of-excel-worksheet_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;While, in the following worksheet image, transparency has been applied. The cells with no fill colors are transparent.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Worksheet image after applying transparency&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;create-transparent-image-of-excel-worksheet_2.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;You can use the following sample code to generate a transparent image of your Excel worksheet.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-CreateTransparentImage-1.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Output Blank Page when there is Nothing to Print</title>
      <link>https://docs.aspose.com/cells/java/output-blank-page-when-there-is-nothing-to-print/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/output-blank-page-when-there-is-nothing-to-print/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;If the sheet is empty, then Aspose.Cells will not print anything when you export worksheet to image. You can change this behavior by using &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setOutputBlankPageWhenNothingToPrint-boolean-&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.OutputBlankPageWhenNothingToPrint&lt;/strong&gt;&lt;/a&gt; property. When you will set it to &lt;strong&gt;true&lt;/strong&gt;, it will print the blank page.&lt;/p&gt;
&lt;h2 id=&#34;output-blank-page-when-there-is-nothing-to-print&#34;&gt;&lt;strong&gt;Output Blank Page when there is Nothing to Print&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code creates the empty workbook which has an empty worksheet and renders the empty worksheet to an image after setting the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setOutputBlankPageWhenNothingToPrint-boolean-&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.OutputBlankPageWhenNothingToPrint&lt;/strong&gt;&lt;/a&gt; property as &lt;strong&gt;true&lt;/strong&gt;. Consequently, it generates the blank page as there is nothing to print which you can see as below.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;output-blank-page-when-there-is-nothing-to-print_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-Rendering-OutputBlankPageWhenThereIsNothingToPrint-1.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Aspose.Cells Font Usage</title>
      <link>https://docs.aspose.com/cells/java/aspose-cells-font-usage/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/aspose-cells-font-usage/</guid>
      <description>
        
        
        &lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Java: Convert Excel to High-Resolution Image</title>
      <link>https://docs.aspose.com/cells/java/convert-excel-to-high-resolution-image/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/convert-excel-to-high-resolution-image/</guid>
      <description>
        
        
        &lt;p&gt;With the increasing prevalence of high-resolution screens, images generated at the default 96 DPI often appear blurry and unclear. To ensure clarity on high-resolution screens, it&amp;rsquo;s essential to generate images at a higher DPI. Aspose.Cells offers the functionality to set &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions/#setHorizontalResolution-int-&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.HorizontalResolution&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions/#setVerticalResolution-int-&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.VerticalResolution&lt;/strong&gt;&lt;/a&gt;, allowing you to create high-quality images from Excel files that look sharp on high-resolution displays.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Docs-Image-ExcelToHighResolutionImage.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Java: Render Sequence of Pages using PageIndex and PageCount Properties of ImageOrPrintOptions</title>
      <link>https://docs.aspose.com/cells/java/render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;You can render a sequence of pages of your Excel file to images using Aspose.Cells with &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setPageIndex-int-&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.PageIndex&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setPageCount-int-&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.PageCount&lt;/strong&gt;&lt;/a&gt; properties. These properties are useful when there are so many e.g. thousands of pages in your worksheet but you want to render some of them only. This will not only save the processing time but will also save the memory consumption of the rendering process.&lt;/p&gt;
&lt;h2 id=&#34;render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions&#34;&gt;&lt;strong&gt;Render Sequence of Pages using PageIndex and PageCount Properties of ImageOrPrintOptions&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code loads the &lt;a href=&#34;55541812.xlsx&#34;&gt;sample Excel file&lt;/a&gt; and renders only pages 4, 5, 6, and 7 using the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setPageIndex-int-&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.PageIndex&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setPageCount-int-&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.PageCount&lt;/strong&gt;&lt;/a&gt; properties. Here are the rendered pages generated by the code.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;img src=&#34;render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/th&gt;
&lt;th style=&#34;text-align:left&#34;&gt;&lt;img src=&#34;render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions_2.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;img src=&#34;render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions_3.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/td&gt;
&lt;td style=&#34;text-align:left&#34;&gt;&lt;img src=&#34;render-sequence-of-pages-using-pageindex-and-pagecount-properties-of-imageorprintoptions_4.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-Rendering-RenderLimitedNoOfSequentialPages-1.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Fonts</title>
      <link>https://docs.aspose.com/cells/java/fonts/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/fonts/</guid>
      <description>
        
        
        &lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Java: Get Warnings for Font Substitution while Rendering Excel File</title>
      <link>https://docs.aspose.com/cells/java/get-warnings-for-font-substitution-while-rendering-excel-file/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/get-warnings-for-font-substitution-while-rendering-excel-file/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;Sometimes, when rendering Microsoft Excel files to PDF, Aspose.Cells substitutes fonts. Aspose.Cells provides a feature that lets developers know that a particular font has been substituted by firing a warning. This is a useful feature that can help you identify why Aspose.Cells rendered PDF is differently than the actual Excel file and you can then take appropriate actions. For example, you can install the missing fonts so that rendering results could look same.&lt;/p&gt;
&lt;p&gt;If you want to get the warnings for font substitution while rendering an Excel file to PDF, implement the IWarningCallback interface and set the PdfSaveOptions.setWarningCallback() method with your implemented interface.&lt;/p&gt;

&lt;/div&gt;

&lt;p&gt;The screenshot below shows the source Excel file used in the following code. It has some text in cells A6 and A7 in fonts that are not rendered well by Microsoft Excel.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;get-warnings-for-font-substitution-while-rendering-excel-file_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;Aspose.Cells will substitute the fonts in the cells A6 and A7 with suitable fonts as shown below.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;get-warnings-for-font-substitution-while-rendering-excel-file_2.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;download-source-file-and-output-pdf&#34;&gt;&lt;strong&gt;Download Source File and Output PDF&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;You can download the source Excel file and the output PDF from the following links&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;5472700.xlsx&#34;&gt;source.xlsx&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;5472699.pdf&#34;&gt;output.pdf&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following code implements the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/IWarningCallback&#34;&gt;&lt;strong&gt;IWarningCallback&lt;/strong&gt;&lt;/a&gt; and set the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/pdfsaveoptions#setWarningCallback-com.aspose.cells.IWarningCallback-&#34;&gt;&lt;strong&gt;PdfSaveOptions.setWarningCallback()&lt;/strong&gt;&lt;/a&gt; method with the implemented interface. Now, whenever any font will be substituted in any cell, Aspose.Cells will fire a warning inside the WarningCallback.warning() method.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt; &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;class&lt;/span&gt; &lt;span class=&#34;nc&#34;&gt;WarningCallback&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;implements&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;IWarningCallback&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;nd&#34;&gt;@Override&lt;/span&gt;

    &lt;span class=&#34;kd&#34;&gt;public&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;warning&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;WarningInfo&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;info&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

        &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;info&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getWarningType&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;==&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;WarningType&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;FONT_SUBSTITUTION&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;

        &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

            &lt;span class=&#34;n&#34;&gt;System&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;out&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;println&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;WARNING INFO: &amp;#34;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;+&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;info&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;getDescription&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;());&lt;/span&gt;

        &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

    &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;

&lt;span class=&#34;c1&#34;&gt;//........
&lt;/span&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;
&lt;span class=&#34;c1&#34;&gt;//........
&lt;/span&gt;&lt;span class=&#34;c1&#34;&gt;&lt;/span&gt;
&lt;span class=&#34;kd&#34;&gt;static&lt;/span&gt; &lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;Run&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;kd&#34;&gt;throws&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Exception&lt;/span&gt;

&lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;

    &lt;span class=&#34;n&#34;&gt;Workbook&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;workbook&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Workbook&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;source.xlsx&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;

    &lt;span class=&#34;n&#34;&gt;PdfSaveOptions&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;options&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;PdfSaveOptions&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;();&lt;/span&gt;

    &lt;span class=&#34;n&#34;&gt;options&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;setWarningCallback&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;new&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;WarningCallback&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;());&lt;/span&gt;

    &lt;span class=&#34;n&#34;&gt;workbook&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;na&#34;&gt;save&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;output.pdf&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;options&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;);&lt;/span&gt;

&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&#34;warnings-output&#34;&gt;&lt;strong&gt;Warnings Output&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;After converting the source file, the following warnings are output to the debug console:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt;&lt;span class=&#34;n&#34;&gt;WARNING&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;INFO&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Font&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;substitution&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Font&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Athene&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Logos&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Regular&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;has&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;been&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;substituted&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;in&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Cell&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;A6&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;in&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Sheet&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Sheet1&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;].&lt;/span&gt;

&lt;span class=&#34;n&#34;&gt;WARNING&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;INFO&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Font&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;substitution&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Font&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;B&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Traffic&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Regular&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;has&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;been&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;substituted&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;in&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Cell&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;A7&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;in&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Sheet&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Sheet1&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;].&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

If your spreadsheet contains formulas, it is best to call Workbook.calculateFormula method just before rendering the spreadsheet to PDF format. Doing so will ensure that the formula dependent values are recalculated, and the correct values are rendered in the PDF.
&lt;/div&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Export Range of Cells in a Worksheet to Image</title>
      <link>https://docs.aspose.com/cells/java/export-range-of-cells-in-a-worksheet-to-image/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/export-range-of-cells-in-a-worksheet-to-image/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

You can make an image of a worksheet using Aspose.Cells. However, sometimes you need to export only a range of cells in a worksheet to an image. This article explains how to achieve this.
&lt;/div&gt;

&lt;p&gt;To take an image of a range, set the print area to the desired range and then set all margins to 0. Also set &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setOnePagePerSheet-boolean-&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.setOnePagePerSheet()&lt;/strong&gt;&lt;/a&gt; to &lt;strong&gt;true&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The following code takes an image of the range E8:H10. Below is a screenshot of the source workbook used in the code. You can try the code with any workbook.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Input file&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;export-range-of-cells-in-a-worksheet-to-image_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;Executing the code creates an image of the range E8:H10 only.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Output image&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;export-range-of-cells-in-a-worksheet-to-image_2.jpg&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-ExportRangeofCells-1.java&#34;&gt;&lt;/script&gt;

&lt;p&gt;You may also find the article &lt;a href=&#34;https://docs.aspose.com/cells/cells/java/converting-worksheet-to-different-image-formats/&#34;&gt;Converting Worksheet to Different Image Formats&lt;/a&gt; helpful.
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Workbook and Worksheet Print Preview</title>
      <link>https://docs.aspose.com/cells/java/workbook-and-worksheet-print-preview/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/workbook-and-worksheet-print-preview/</guid>
      <description>
        
        
        &lt;h2 id=&#34;usage-scenario&#34;&gt;&lt;strong&gt;Usage Scenario&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;There may be cases where Excel files with millions of pages need to be converted to PDF or images. Processing such files will consume a lot of time and resources. In such cases, the Workbook and Worksheet Print Preview feature might prove to be useful. Before converting such files, the user can check the total number of pages and then decide whether the file is to be converted or not. This article focuses on using the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/WorkbookPrintingPreview&#34;&gt;&lt;strong&gt;WorkbookPrintingPreview&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/SheetPrintingPreview&#34;&gt;&lt;strong&gt;SheetPrintingPreview&lt;/strong&gt;&lt;/a&gt; classes to find out the total number of pages.&lt;/p&gt;
&lt;h2 id=&#34;workbook-and-worksheet-print-preview&#34;&gt;&lt;strong&gt;Workbook and Worksheet Print Preview&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells provides the print preview feature. For this, the API provides &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/WorkbookPrintingPreview&#34;&gt;&lt;strong&gt;WorkbookPrintingPreview&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/SheetPrintingPreview&#34;&gt;&lt;strong&gt;SheetPrintingPreview&lt;/strong&gt;&lt;/a&gt; classes. To create the print preview of the whole workbook, create an instance of the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/WorkbookPrintingPreview&#34;&gt;&lt;strong&gt;WorkbookPrintingPreview&lt;/strong&gt;&lt;/a&gt; class by passing &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/Workbook&#34;&gt;&lt;strong&gt;Workbook&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/ImageOrPrintOptions&#34;&gt;&lt;strong&gt;ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt; objects to the constructor. The &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/WorkbookPrintingPreview&#34;&gt;&lt;strong&gt;WorkbookPrintingPreview&lt;/strong&gt;&lt;/a&gt; class provides an &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/workbookprintingpreview#getEvaluatedPageCount--&#34;&gt;&lt;strong&gt;EvaluatedPageCount&lt;/strong&gt;&lt;/a&gt; method which returns the number of pages in the generated preview. Similar to &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/WorkbookPrintingPreview&#34;&gt;&lt;strong&gt;WorkbookPrintingPreview&lt;/strong&gt;&lt;/a&gt; class, the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/SheetPrintingPreview&#34;&gt;&lt;strong&gt;SheetPrintingPreview&lt;/strong&gt;&lt;/a&gt; class is used to generate a print preview for a specific worksheet. To create the print preview of a worksheet, create an instance of the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/SheetPrintingPreview&#34;&gt;&lt;strong&gt;SheetPrintingPreview&lt;/strong&gt;&lt;/a&gt; class by passing &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/Worksheet&#34;&gt;&lt;strong&gt;Worksheet&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/ImageOrPrintOptions&#34;&gt;&lt;strong&gt;ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt; objects to the constructor. The &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/SheetPrintingPreview&#34;&gt;&lt;strong&gt;SheetPrintingPreview&lt;/strong&gt;&lt;/a&gt; class also provides an &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/sheetprintingpreview#getEvaluatedPageCount--&#34;&gt;&lt;strong&gt;EvaluatedPageCount&lt;/strong&gt;&lt;/a&gt; method which returns the number of pages in the generated preview.&lt;/p&gt;
&lt;p&gt;The following code snippet demonstrates the use of both &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/WorkbookPrintingPreview&#34;&gt;&lt;strong&gt;WorkbookPrintingPreview&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/SheetPrintingPreview&#34;&gt;&lt;strong&gt;SheetPrintingPreview&lt;/strong&gt;&lt;/a&gt; classes by using the &lt;a href=&#34;Book1.xlsx&#34;&gt;sample excel file&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h3&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-Workbook-PrintPreview-1.java&#34;&gt;&lt;/script&gt;

&lt;p&gt;The following is the output generated by executing the above code.&lt;/p&gt;
&lt;h3 id=&#34;console-output&#34;&gt;&lt;strong&gt;Console Output&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt;&lt;span class=&#34;n&#34;&gt;Workbook&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;page&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;count&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;br&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&#34;n&#34;&gt;Worksheet&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;page&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;count&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;1&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Specify Job or Document Name while printing with Aspose.Cells</title>
      <link>https://docs.aspose.com/cells/java/specify-job-or-document-name-while-printing-with-aspose-cells/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/specify-job-or-document-name-while-printing-with-aspose-cells/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

You can specify job or document name while printing your workbook or worksheet using the &lt;strong&gt;WorkbookRender&lt;/strong&gt; or &lt;strong&gt;SheetRender&lt;/strong&gt; objects. Aspose.Cells provides the &lt;strong&gt;WorkbookRender.toPrinter(printerName, jobName)&lt;/strong&gt; and &lt;strong&gt;SheetRender.toPrinter(printerName, jobName)&lt;/strong&gt; methods that you can use to specify a job name while printing your workbook or worksheet.
&lt;/div&gt;

&lt;h2 id=&#34;specify-job-or-document-name-while-printing-with-asposecells&#34;&gt;&lt;strong&gt;Specify Job or Document Name while printing with Aspose.Cells&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The sample code loads the source Excel file and then sends it to the printer by specifying the job or document name using the &lt;strong&gt;WorkbookRender.toPrinter(printerName, jobName)&lt;/strong&gt; and &lt;strong&gt;SheetRender.toPrinter(printerName, jobName)&lt;/strong&gt; methods. The screenshot shows how the job name looks in the printer queue.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;specify-job-or-document-name-while-printing-with-aspose-cells_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-main-java-com-aspose-cells-examples-articles-SpecifyJoborDocumentName-SpecifyJoborDocumentName.java&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;related-articles&#34;&gt;Related Articles&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/printing-workbooks/&#34;&gt;Printing Workbooks&lt;/a&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Generate Conditional Formatting DataBars Images</title>
      <link>https://docs.aspose.com/cells/java/generate-conditional-formatting-databars-images/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/generate-conditional-formatting-databars-images/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Sometimes, you need to generate images of Conditional Formatting DataBars. You can use Aspose.Cells &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/databar#toImage-com.aspose.cells.Cell-com.aspose.cells.ImageOrPrintOptions-&#34;&gt;&lt;strong&gt;DataBar.toImage()&lt;/strong&gt;&lt;/a&gt; method to generate these images. This article shows how to generate a DataBar image using Aspose.Cells.
&lt;/div&gt;

&lt;h2 id=&#34;example&#34;&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code generates the DataBar image of cell C1. First, it accesses the format‑condition object of the cell; then, from that object, it accesses the DataBar object and uses its &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/databar#toImage-com.aspose.cells.Cell-com.aspose.cells.ImageOrPrintOptions-&#34;&gt;&lt;strong&gt;DataBar.toImage()&lt;/strong&gt;&lt;/a&gt; method to generate the image of the cell. Finally, it saves the image on disk.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-GenerateDatabarImage-1.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Export Worksheet or Chart into Image with Desired Width and Height</title>
      <link>https://docs.aspose.com/cells/java/export-worksheet-or-chart-into-image-with-desired-width-and-height/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/export-worksheet-or-chart-into-image-with-desired-width-and-height/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

You can use Aspose.Cells to export your worksheet or chart into an image with the desired width and height. It provides the &lt;strong&gt;ImageOrPrintOptions.setDesiredSize()&lt;/strong&gt; method to set the desired width and height of the exported image. The width and height are specified in units of pixels.
&lt;/div&gt;

&lt;h2 id=&#34;export-worksheet-into-image-with-desired-width-and-height&#34;&gt;&lt;strong&gt;Export Worksheet into Image with Desired Width and Height&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following code exports the worksheet into an image with a size of 400 × 400 pixels.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-ExportWorksheettoImage-1.java&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;related-articles&#34;&gt;Related Articles&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/chart-rendering/&#34;&gt;Chart Rendering&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/converting-worksheet-to-different-image-formats/&#34;&gt;Converting Worksheet to Different Image Formats&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/export-chart-to-svg-with-viewbox-attribute/&#34;&gt;Export Chart to SVG with viewBox attribute&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Java: Converting Worksheet to Image and Worksheet to Image by Page</title>
      <link>https://docs.aspose.com/cells/java/converting-worksheet-to-image-and-worksheet-to-image-by-page/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/converting-worksheet-to-image-and-worksheet-to-image-by-page/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;This document is designed to provide developers with a detailed understanding of how to convert a worksheet to an image file and a worksheet with multiple pages to an image file per page.&lt;/p&gt;
&lt;p&gt;Sometimes, you might need to present worksheets as images, for example, to use them in applications or web pages. You might need to insert the images into a Word document, a PDF file, a PowerPoint presentation, or use them in some other scenario. Simply, you want to render the worksheet as an image. Aspose.Cells APIs support converting worksheets in Microsoft Excel files to images. Also, Aspose.Cells supports converting a workbook to multiple image files, one per page.&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;using-asposecells-to-convert-worksheet-to-image-file&#34;&gt;&lt;strong&gt;Using Aspose.Cells to Convert Worksheet to Image File&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;This article shows how to use the Aspose.Cells for Java API to convert a worksheet to an image. The API provides several valuable classes, such as &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/SheetRender&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/ImageOrPrintOptions&#34;&gt;&lt;strong&gt;ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/WorkbookRender&#34;&gt;&lt;strong&gt;WorkbookRender&lt;/strong&gt;&lt;/a&gt;, and so on. The &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/SheetRender&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt; class represents a worksheet for rendering images and has an overloaded &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/sheetrender#toImage-int-java.io.OutputStream-&#34;&gt;&lt;strong&gt;toImage&lt;/strong&gt;&lt;/a&gt; method that can convert a worksheet to image files directly with any attributes or options set.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-ConvertWorksheettoImageFile-1.java&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;result&#34;&gt;&lt;strong&gt;Result&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;After executing the above code, the worksheet named Sheet1 is converted into an image file SheetImage.jpg.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The output JPG&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;converting-worksheet-to-image-and-worksheet-to-image-by-page_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;using-asposecells-to-convert-worksheet-to-image-file-by-page&#34;&gt;&lt;strong&gt;Using Aspose.Cells to Convert Worksheet to Image File by Page&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;This example shows how to use Aspose.Cells to convert a worksheet from a template workbook that has several pages into one image file per page.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-ConvertWorksheetToImageByPage-1.java&#34;&gt;&lt;/script&gt;

&lt;h3 id=&#34;result-1&#34;&gt;&lt;strong&gt;Result&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;After executing the above code, the worksheet named Sheet1 is converted into two image files (one per page): Sheet 1 Page 1.Tiff and Sheet 1 Page 2.Tiff.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Generated image file (Sheet 1 Page 1.Tiff)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;converting-worksheet-to-image-and-worksheet-to-image-by-page_2.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Generated image file (Sheet 1 Page 2.Tiff)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;converting-worksheet-to-image-and-worksheet-to-image-by-page_3.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;


&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

This article shows how to convert a worksheet to an image file and convert worksheets with multiple pages to multiple image files (one per page) using Aspose.Cells. Aspose.Cells offers more flexibility than other components and provides outstanding speed, efficiency, and reliability. The results show that Aspose.Cells has benefited from years of research, design, and careful tuning.
&lt;/div&gt;

&lt;h2 id=&#34;related-articles&#34;&gt;Related Articles&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/converting-worksheet-to-different-image-formats/&#34;&gt;Converting Worksheet to Different Image Formats&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/export-worksheet-or-chart-into-image-with-desired-width-and-height/&#34;&gt;Export Worksheet or Chart into Image with Desired Width and Height&lt;/a&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Render the Worksheet and Workbook to Image using ImageOrPrintOptions</title>
      <link>https://docs.aspose.com/cells/java/render-the-worksheet-and-workbook-to-image-using-imageorprintoptions/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/render-the-worksheet-and-workbook-to-image-using-imageorprintoptions/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

This document is designed to provide a detailed understanding of how to convert a worksheet or a workbook to an image file and apply different image and print options for the image, such as resolution, TIFF compression, image format, and page quality.
&lt;/div&gt;

&lt;h2 id=&#34;overview&#34;&gt;&lt;strong&gt;Overview&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Sometimes, you might require presenting your worksheets as a pictorial representation. You may need to present the worksheet images in your applications or web pages. You might need to insert the images into a Word document, a PDF file, a PowerPoint presentation, or use them in some other scenario. Simply, you want a worksheet rendered as an image so that you can use it elsewhere. Aspose.Cells supports converting worksheets in Excel files to images. It also supports setting different options like image format, resolution (both vertical and horizontal), image quality, and other image and print options.&lt;/p&gt;
&lt;p&gt;The API provides several valuable classes, for example, &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/SheetRender&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/ImageOrPrintOptions&#34;&gt;&lt;strong&gt;ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt;, &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/WorkbookRender&#34;&gt;&lt;strong&gt;WorkbookRender&lt;/strong&gt;&lt;/a&gt;, etc.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/SheetRender&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt; class handles the task of rendering images for the worksheet, whereas the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/WorkbookRender&#34;&gt;&lt;strong&gt;WorkbookRender&lt;/strong&gt;&lt;/a&gt; does the same for a workbook. Both aforesaid classes have several overloaded versions of the &lt;em&gt;toImage&lt;/em&gt; method that can directly convert a worksheet or a workbook to image file(s) specified with your desired attributes or options. You can save the image file to the disk/stream. There are several image formats supported, e.g., BMP, PNG, GIF, JPEG, TIFF, EMF, and so on.&lt;/p&gt;
&lt;h3 id=&#34;convert-worksheet-to-image&#34;&gt;&lt;strong&gt;Convert Worksheet to Image&lt;/strong&gt;&lt;/h3&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-ConvertWorksheettoImage-1.java&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;conversion-options&#34;&gt;&lt;strong&gt;Conversion Options&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;It is possible to save specific pages as images. The following code converts the first and second worksheets in a workbook to JPG images.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-ConversionOptions-1.java&#34;&gt;&lt;/script&gt;

&lt;p&gt;Or you can cycle through the workbook and render each worksheet in it to a separate image:&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-WorksheetToSeparateImage-1.java&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;convert-workbook-to-image&#34;&gt;&lt;strong&gt;Convert Workbook to Image&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;In order to render the complete workbook to image format, you may either use the above approach or simply use the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/WorkbookRender&#34;&gt;&lt;strong&gt;WorkbookRender&lt;/strong&gt;&lt;/a&gt; class that accepts an instance of &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/Workbook&#34;&gt;&lt;strong&gt;Workbook&lt;/strong&gt;&lt;/a&gt; as well as an object of &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/ImageOrPrintOptions&#34;&gt;&lt;strong&gt;ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can save the whole workbook to a single TIFF image with multiple frames or pages:&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-ConvertWorkbooktoImage-1.java&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;related-articles&#34;&gt;Related Articles&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/converting-worksheet-to-different-image-formats/&#34;&gt;Converting Worksheet to Different Image Formats&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/export-chart-to-svg-with-viewbox-attribute/&#34;&gt;Export Chart to SVG with viewBox attribute&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/export-worksheet-or-chart-into-image-with-desired-width-and-height/&#34;&gt;Export Worksheet or Chart into Image with Desired Width and Height&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/java/converting-worksheet-to-image-and-worksheet-to-image-by-page/&#34;&gt;Converting Worksheet to Image and Worksheet to Image by Page&lt;/a&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Extract Images from Worksheets</title>
      <link>https://docs.aspose.com/cells/java/extract-images-from-worksheets/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/extract-images-from-worksheets/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Microsoft Excel users can add images to spreadsheets. With Aspose.Cells, it&amp;rsquo;s possible to read images from Microsoft Excel files and save them to a local drive. This article shows how to achieve this using Aspose.Cells for Java API.
&lt;/div&gt;

&lt;p&gt;The sample code below shows how to extract images from an Excel file and save them.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-ExtractImagesfromWorksheets-1.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Remove White Spaces from the Data before Rendering to Image</title>
      <link>https://docs.aspose.com/cells/java/remove-white-spaces-from-the-data-before-rendering-to-image/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/remove-white-spaces-from-the-data-before-rendering-to-image/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Sometimes, you need to present worksheet images in applications or web pages. For example, you might need to insert images into a Word document, a PDF file, a PowerPoint presentation, or some other document. Basically, you want to render a worksheet as an image so that it can be pasted into other applications. Aspose.Cells API allows you to convert Microsoft Excel worksheets to images.
&lt;/div&gt;

&lt;p&gt;The &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/SheetRender&#34;&gt;&lt;strong&gt;SheetRender&lt;/strong&gt;&lt;/a&gt; class is capable of converting a worksheet to an image file with any specified attributes, for example, image format, paginated sheets, etc. Several image formats are supported, including BMP, GIF, JPG, TIFF, and EMF.&lt;/p&gt;
&lt;p&gt;When you use the sheet‑to‑image feature, the output image has white/blank space (i.e., a border) around it by default. You can remove this. Set the top, left, bottom, and right page‑setup margins for the source worksheet to 0 and specify &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/ImageOrPrintOptions&#34;&gt;&lt;strong&gt;ImageOrPrintOptions&lt;/strong&gt;&lt;/a&gt; attributes accordingly.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-AsposeCellsExamples-TechnicalArticles-RemoveWhitespaceAroundData-1.java&#34;&gt;&lt;/script&gt;
&lt;br&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Java: Render Worksheet to Graphic Context</title>
      <link>https://docs.aspose.com/cells/java/render-worksheet-to-graphic-context/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/render-worksheet-to-graphic-context/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;Aspose.Cells can now render a worksheet to a graphic context. A graphic context can be anything such as an image file, screen, or printer, etc. Please &lt;strong&gt;use&lt;/strong&gt; the following method to render a worksheet to a graphic context.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SheetRender.toImage(int pageIndex, Graphics2D graphic)&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;

&lt;h2 id=&#34;render-worksheet-to-graphic-context&#34;&gt;&lt;strong&gt;Render Worksheet to Graphic Context&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following code illustrates how to use Aspose.Cells to render a worksheet to a graphic context. Once you execute the code, it will print the entire worksheet and fill the leftover empty space with blue color in the graphic context and save the image as &lt;strong&gt;test.png&lt;/strong&gt; file. You can use any source &lt;strong&gt;Excel&lt;/strong&gt; file to try this code. Please also read the comments inside the code for better understanding.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-main-java-com-aspose-cells-examples-articles-RenderWorksheetToGraphicContext-ReleaseUnmanagedResources.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Java: Set Default Font while rendering spreadsheet to images</title>
      <link>https://docs.aspose.com/cells/java/set-default-font-while-rendering-spreadsheet-to-images/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/java/set-default-font-while-rendering-spreadsheet-to-images/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Please use the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setDefaultFont-java.lang.String-&#34;&gt;ImageOrPrintOptions.DefaultFont&lt;/a&gt; property to set the default font while rendering spreadsheet to images. This property will only be effective when the default font of workbook could not render your characters. The default font specified with &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setDefaultFont-java.lang.String-&#34;&gt;ImageOrPrintOptions.DefaultFont&lt;/a&gt; property is used for all those cells which have invalid or non-existent fonts.
&lt;/div&gt;

&lt;h2 id=&#34;set-default-font-while-rendering-spreadsheet-to-images&#34;&gt;&lt;strong&gt;Set Default Font while rendering spreadsheet to images&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code creates a workbook, adds some text in cell A4 of the first worksheet and sets its font to invalid or non-existent font. Then, it takes two images of the worksheet. The first image is taken by setting the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setDefaultFont-java.lang.String-&#34;&gt;ImageOrPrintOptions.DefaultFont&lt;/a&gt; property to &lt;em&gt;Courier New&lt;/em&gt; and the second image is taken by setting the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setDefaultFont-java.lang.String-&#34;&gt;ImageOrPrintOptions.DefaultFont&lt;/a&gt; property to &lt;em&gt;Times New Roman&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;This is the output image after setting the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setDefaultFont-java.lang.String-&#34;&gt;ImageOrPrintOptions.DefaultFont&lt;/a&gt; property to &lt;em&gt;Courier New&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;set-default-font-while-rendering-spreadsheet-to-images_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;This is the output image after setting the &lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#setDefaultFont-java.lang.String-&#34;&gt;ImageOrPrintOptions.DefaultFont&lt;/a&gt; property to &lt;em&gt;Times New Roman&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;set-default-font-while-rendering-spreadsheet-to-images_2.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-main-java-com-aspose-cells-examples-files-utility-SetDefaultFontWhileRenderingSpreadsheetToImages-.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
