A picture shows cells as the Copy Picture command in Microsoft Excel shows them: the cells as on screen, with charts and pictures. It does not show the selection or the frozen-pane lines. It shows row and column headers only when you set labels: true (see Labels).You can make a picture in Node and in the browser:
Where
Use
You get
Node
book.toPng()
One PNG for each sheet, or one PNG of a range
Node or browser
range.getImage()
Base64 PNG of one range, from the JS API
Browser, with a view
view.rangeImage()
A Blob of one range, with the column widths the user sees
In Node
toPng needs skia-canvas and @reductoai/portable-fonts (see Installation).
Every sheet
With no options, toPng makes one PNG for each visible sheet. Each picture holds the sheet’s used cells, from A1.
import { writeFile } from "node:fs/promises";import { ExcelWorkbook } from "@reductoai/xlsx/node";const book = await ExcelWorkbook.open("model.xlsx");for (const { sheet, png, width, height } of await book.toPng({ scale: 2 })) { await writeFile(`${sheet}.png`, png); console.log(sheet, width, height);}
Each entry is { sheet, width, height, png }. png is a Buffer. width and height are in pixels.
One sheet
Give the sheet names or zero-based indexes in sheets. Hidden sheets are included when you name them.
import { writeFile } from "node:fs/promises";import { ExcelWorkbook } from "@reductoai/xlsx/node";const book = await ExcelWorkbook.open("model.xlsx");const [summary] = await book.toPng({ sheets: ["Summary"] });await writeFile("summary.png", summary!.png);
One range
Give an A1 range in range. Put the sheet name before !, and toPng returns one entry. Without a sheet name, toPng makes a picture of that range on each sheet in sheets, or on each visible sheet.
import { writeFile } from "node:fs/promises";import { ExcelWorkbook } from "@reductoai/xlsx/node";const book = await ExcelWorkbook.open("model.xlsx");const [table] = await book.toPng({ range: "Summary!A1:H30", scale: 2 });await writeFile("table.png", table!.png);
To check an edit by eye, make a picture of only the range you changed.
Options
Option
Default
Notes
sheets
every visible sheet
Sheet names or zero-based indexes
range
each sheet’s used cells
One A1 range, such as "Summary!A1:H30". With a sheet name, sheets is not used
gridlines
false
true paints the gridlines. Excel’s Copy Picture and print do not paint them
labels
false
true adds column letters and row numbers (see Labels)
scale
1
Image pixels for each sheet pixel: 2 for a sharp image, 0.25 for a thumbnail
From the JS API
range.getImage() returns a Base64 PNG of the range, at one image pixel for each sheet pixel. It is the Office.js Range.getImage. Office.js returns a ClientResult that you read after context.sync(). Here you await the string.
import { ExcelWorkbook } from "@reductoai/xlsx/node";const book = await ExcelWorkbook.open("model.xlsx");const base64 = await book.worksheets.getItem("Summary").getRange("A1:H30").getImage();const img = `<img src="data:image/png;base64,${base64}">`;
getImage needs a painter. @reductoai/xlsx/node brings one. In the browser, import @reductoai/xlsx/view once, anywhere in your app:
import "@reductoai/xlsx/view";import { ExcelWorkbook } from "@reductoai/xlsx/officejs";const book = ExcelWorkbook.fromBytes(bytes);const base64 = await book.worksheets.getItem("Summary").getRange("A1:H30").getImage();
Without a painter, getImage rejects with an error that names the two entries.The image has gridlines when the sheet shows them, as in Office.js. Set worksheet.showGridlines to false, or give gridlines: false, to leave them out.In Office.js, getImage has no parameters. Here it takes the options labels, gridlines and scale, as toPng does:
import { ExcelWorkbook } from "@reductoai/xlsx/node";const book = await ExcelWorkbook.open("model.xlsx");const range = book.worksheets.getItem("Summary").getRange("A1:H30");const base64 = await range.getImage({ labels: true, gridlines: true, scale: 2 });
In the browser, from a view
When the workbook is already on screen in a view or the editor, use view.rangeImage. It uses the view’s layout, fonts and pictures. The picture has the column widths and row heights the user sees, also after the user resizes a column.
Without a sheet name, the range is on the active sheet. With no range, the picture shows the selected cells. The options are scale, gridlines and labels, as for toPng.The promise resolves after the fonts and pictures in the range have loaded, so the first picture is correct.
Labels
labels: true adds column letters above the cells and row numbers to their left, as Excel’s headers show them. Use it when a person or a language model must read a cell address from the picture. For example, a model can say “the border under C7 is missing” when it sees the labels. Without the labels, it can only describe the position.
The labels name the sheet’s own rows and columns, so a picture of B2:H30 starts at column B and row 2.
A hidden row or column has no label. The gap in the numbers shows where it is.
A label that is wider than its column is left out.
The labels are an extension. Excel’s Copy Picture does not paint them.
Limits
A picture holds at most 1,000 rows and 100 columns, from the top-left cell of the range. A whole column such as "A:A" stops after 1,000 rows.
A picture is at most 16,384 pixels on each side and 16,777,216 pixels in area, because browsers and skia-canvas cannot make a larger canvas. Rows and columns past this limit are not included. At scale: 2, the picture holds half as many rows and columns before it gets to the limit.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Reducto","colors":{"primary":"#5c0c5c","light":"#c77dba","dark":"#5c0c5c"},"logo":{"light":"https://cdn.reducto.ai/logo.svg","dark":"https://cdn.reducto.ai/logo-dark.svg"},"favicon":"https://mintcdn.com/reducto/7owl8-bq0hdh9XB8/favicon.ico?fit=max\u0026auto=format\u0026n=7owl8-bq0hdh9XB8\u0026q=85\u0026s=90372b27ca6d42c4f6192cbba673afb5","api":{"examples":{"languages":["python","javascript","go"]}},"appearance":{"default":"light"},"navbar":{"links":[{"href":"https://reducto.ai/?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_product_bridge\u0026utm_content=navbar_product","label":"Product"},{"href":"https://reducto.ai/blog","label":"Blog"}],"primary":{"type":"button","label":"Log In","href":"https://studio.reducto.ai/"}},"footer":{"socials":{"x":"https://x.com/reductoai","linkedin":"https://www.linkedin.com/company/reducto-ai"},"links":[{"header":"Product","items":[{"label":"Homepage","href":"https://reducto.ai/"},{"label":"Pricing","href":"https://reducto.ai/pricing"},{"label":"Playground","href":"https://studio.reducto.ai/"}]},{"header":"Company","items":[{"label":"Careers","href":"https://reducto.ai/careers"},{"label":"Blog","href":"https://reducto.ai/blog"},{"label":"Support","href":"mailto:support@Reducto.ai"}]},{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://reducto.ai/privacy"},{"label":"Terms of Service","href":"https://reducto.ai/terms"}]}]},"fonts":{"heading":{"family":"Reducto Sans Bold","source":"https://cdn.reducto.ai/fonts/ReductoSansBold.woff2","format":"woff2"},"body":{"family":"Reducto Sans","source":"https://cdn.reducto.ai/fonts/ReductoSans.woff2","format":"woff2"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"https://status.reducto.ai"},{"anchor":"Studio","icon":"browser","href":"https://studio.reducto.ai"},{"anchor":"Support","icon":"envelope","href":"mailto:support@reducto.ai"},{"anchor":"Model Versions","icon":"bell","href":"/reference/model-versions"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"/reference/changelog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"reducto","hasAudioNarration":false,"actualSubdomain":"reducto","customDomains":["docs.reducto.ai"],"gitSource":{"type":"github","owner":"reductoai","repo":"api","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"issues":false,"edits":false,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aff308676e1397cafb0e688","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"Office","count":222},{"language":"default","tag":"API reference","count":153},{"language":"default","tag":"Documentation","count":92},{"language":"default","tag":".xlsx","count":90},{"language":"default","tag":".docx","count":81},{"language":"default","tag":".pptx","count":42},{"language":"default","tag":"API Reference","count":36},{"language":"default","tag":"Other classes","count":30},{"language":"default","tag":"SDKs","count":30},{"language":"default","tag":"Types: editor","count":26}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@reducto.ai","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"office/xlsx/rendering/png","slug":"/office/xlsx/rendering/png","pageMetadata":{"title":".xlsx to PNG","description":null,"href":"/office/xlsx/rendering/png"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A picture shows cells as the Copy Picture command in Microsoft Excel shows them: the cells as on screen, with charts and pictures. It does not show the selection or the frozen-pane lines. It shows row and column headers only when you set `,_jsx(_components.code,{children:`labels: true`}),` (see `,_jsx(_components.a,{href:`#labels`,children:`Labels`}),`).`]}),`\n`,_jsx(_components.p,{children:`You can make a picture in Node and in the browser:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Where`}),_jsx(_components.th,{children:`Use`}),_jsx(_components.th,{children:`You get`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Node`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`book.toPng()`})}),_jsx(_components.td,{children:`One PNG for each sheet, or one PNG of a range`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Node or browser`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`range.getImage()`})}),_jsx(_components.td,{children:`Base64 PNG of one range, from the JS API`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Browser, with a view`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`view.rangeImage()`})}),_jsxs(_components.td,{children:[`A `,_jsx(_components.code,{children:`Blob`}),` of one range, with the column widths the user sees`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`in-node`,children:`In Node`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`toPng`}),` needs `,_jsx(_components.code,{children:`skia-canvas`}),` and `,_jsx(_components.code,{children:`@reductoai/portable-fonts`}),` (see `,_jsx(_components.a,{href:`/office/xlsx/getting-started/installation`,children:`Installation`}),`).`]}),`\n`,_jsx(Heading,{level:`3`,id:`every-sheet`,children:`Every sheet`}),`\n`,_jsxs(_components.p,{children:[`With no options, `,_jsx(_components.code,{children:`toPng`}),` makes one PNG for each visible sheet. Each picture holds the sheet’s used cells, from A1.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`writeFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:fs/promises\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@reductoai/xlsx/node\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` book`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"model.xlsx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`sheet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`png`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`width`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`height`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`of`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` book`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toPng`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`scale:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` writeFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sheet`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\".png`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`png`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sheet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`width`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`height`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Each entry is `,_jsx(_components.code,{children:`{ sheet, width, height, png }`}),`. `,_jsx(_components.code,{children:`png`}),` is a `,_jsx(_components.code,{children:`Buffer`}),`. `,_jsx(_components.code,{children:`width`}),` and `,_jsx(_components.code,{children:`height`}),` are in pixels.`]}),`\n`,_jsx(Heading,{level:`3`,id:`one-sheet`,children:`One sheet`}),`\n`,_jsxs(_components.p,{children:[`Give the sheet names or zero-based indexes in `,_jsx(_components.code,{children:`sheets`}),`. Hidden sheets are included when you name them.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`writeFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:fs/promises\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@reductoai/xlsx/node\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` book`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"model.xlsx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`summary`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` book`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toPng`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sheets:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` writeFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"summary.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`summary`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`png`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`one-range`,children:`One range`}),`\n`,_jsxs(_components.p,{children:[`Give an A1 range in `,_jsx(_components.code,{children:`range`}),`. Put the sheet name before `,_jsx(_components.code,{children:`!`}),`, and `,_jsx(_components.code,{children:`toPng`}),` returns one entry. Without a sheet name, `,_jsx(_components.code,{children:`toPng`}),` makes a picture of that range on each sheet in `,_jsx(_components.code,{children:`sheets`}),`, or on each visible sheet.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`writeFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:fs/promises\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@reductoai/xlsx/node\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` book`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"model.xlsx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`table`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` book`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toPng`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`range:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Summary!A1:H30\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`scale:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` writeFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"table.png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`table`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`png`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`To check an edit by eye, make a picture of only the range you changed.`})}),`\n`,_jsx(Heading,{level:`3`,id:`options`,children:`Options`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Option`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sheets`})}),_jsx(_components.td,{children:`every visible sheet`}),_jsx(_components.td,{children:`Sheet names or zero-based indexes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`range`})}),_jsx(_components.td,{children:`each sheet’s used cells`}),_jsxs(_components.td,{children:[`One A1 range, such as `,_jsx(_components.code,{children:`\"Summary!A1:H30\"`}),`. With a sheet name, `,_jsx(_components.code,{children:`sheets`}),` is not used`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gridlines`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` paints the gridlines. Excel’s Copy Picture and print do not paint them`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`labels`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` adds column letters and row numbers (see `,_jsx(_components.a,{href:`#labels`,children:`Labels`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`scale`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1`})}),_jsxs(_components.td,{children:[`Image pixels for each sheet pixel: `,_jsx(_components.code,{children:`2`}),` for a sharp image, `,_jsx(_components.code,{children:`0.25`}),` for a thumbnail`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`from-the-js-api`,children:`From the JS API`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`range.getImage()`}),` returns a Base64 PNG of the range, at one image pixel for each sheet pixel. It is the Office.js `,_jsx(_components.code,{children:`Range.getImage`}),`. Office.js returns a `,_jsx(_components.code,{children:`ClientResult`}),` that you read after `,_jsx(_components.code,{children:`context.sync()`}),`. Here you `,_jsx(_components.code,{children:`await`}),` the string.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@reductoai/xlsx/node\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` book`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"model.xlsx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` base64`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` book`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`worksheets`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getItem`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getRange`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A1:H30\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getImage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` img`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' `\u003cimg src=\"data:image/png;base64,'}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`base64`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\">`'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`getImage`}),` needs a painter. `,_jsx(_components.code,{children:`@reductoai/xlsx/node`}),` brings one. In the browser, import `,_jsx(_components.code,{children:`@reductoai/xlsx/view`}),` once, anywhere in your app:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@reductoai/xlsx/view\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@reductoai/xlsx/officejs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` book`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fromBytes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bytes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` base64`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` book`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`worksheets`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getItem`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getRange`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A1:H30\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getImage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Without a painter, `,_jsx(_components.code,{children:`getImage`}),` rejects with an error that names the two entries.`]}),`\n`,_jsxs(_components.p,{children:[`The image has gridlines when the sheet shows them, as in Office.js. Set `,_jsx(_components.code,{children:`worksheet.showGridlines`}),` to `,_jsx(_components.code,{children:`false`}),`, or give `,_jsx(_components.code,{children:`gridlines: false`}),`, to leave them out.`]}),`\n`,_jsxs(_components.p,{children:[`In Office.js, `,_jsx(_components.code,{children:`getImage`}),` has no parameters. Here it takes the options `,_jsx(_components.code,{children:`labels`}),`, `,_jsx(_components.code,{children:`gridlines`}),` and `,_jsx(_components.code,{children:`scale`}),`, as `,_jsx(_components.code,{children:`toPng`}),` does:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@reductoai/xlsx/node\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` book`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"model.xlsx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` range`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` book`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`worksheets`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getItem`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getRange`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A1:H30\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` base64`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` range`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getImage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`labels:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`gridlines:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`scale:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`in-the-browser-from-a-view`,children:`In the browser, from a view`}),`\n`,_jsxs(_components.p,{children:[`When the workbook is already on screen in a `,_jsx(_components.a,{href:`/office/xlsx/rendering/view`,children:`view`}),` or the `,_jsx(_components.a,{href:`/office/xlsx/ui/editor`,children:`editor`}),`, use `,_jsx(_components.code,{children:`view.rangeImage`}),`. It uses the view’s layout, fonts and pictures. The picture has the column widths and row heights the user sees, also after the user resizes a column.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Workbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@reductoai/xlsx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`previewWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@reductoai/xlsx/view\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` view`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` previewWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getElementById`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"grid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Workbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bytes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` table`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` view`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`rangeImage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Summary!A1:H30\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`scale:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` selected`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` view`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`rangeImage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// the selected cells`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`querySelector`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"img\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`src`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` URL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createObjectURL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`table`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Without a sheet name, the range is on the active sheet. With no range, the picture shows the selected cells. The options are `,_jsx(_components.code,{children:`scale`}),`, `,_jsx(_components.code,{children:`gridlines`}),` and `,_jsx(_components.code,{children:`labels`}),`, as for `,_jsx(_components.code,{children:`toPng`}),`.`]}),`\n`,_jsx(_components.p,{children:`The promise resolves after the fonts and pictures in the range have loaded, so the first picture is correct.`}),`\n`,_jsx(Heading,{level:`2`,id:`labels`,children:`Labels`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`labels: true`}),` adds column letters above the cells and row numbers to their left, as Excel’s headers show them. Use it when a person or a language model must read a cell address from the picture. For example, a model can say “the border under C7 is missing” when it sees the labels. Without the labels, it can only describe the position.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@reductoai/xlsx/node\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` book`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ExcelWorkbook`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"model.xlsx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`table`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` book`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toPng`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`range:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Summary!B2:H30\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`labels:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`gridlines:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The labels name the sheet’s own rows and columns, so a picture of `,_jsx(_components.code,{children:`B2:H30`}),` starts at column B and row 2.`]}),`\n`,_jsx(_components.li,{children:`A hidden row or column has no label. The gap in the numbers shows where it is.`}),`\n`,_jsx(_components.li,{children:`A label that is wider than its column is left out.`}),`\n`,_jsx(_components.li,{children:`The labels are an extension. Excel’s Copy Picture does not paint them.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`limits`,children:`Limits`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A picture holds at most 1,000 rows and 100 columns, from the top-left cell of the range. A whole column such as `,_jsx(_components.code,{children:`\"A:A\"`}),` stops after 1,000 rows.`]}),`\n`,_jsxs(_components.li,{children:[`A picture is at most 16,384 pixels on each side and 16,777,216 pixels in area, because browsers and `,_jsx(_components.code,{children:`skia-canvas`}),` cannot make a larger canvas. Rows and columns past this limit are not included. At `,_jsx(_components.code,{children:`scale: 2`}),`, the picture holds half as many rows and columns before it gets to the limit.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":".xlsx to PNG","description":null,"href":"/office/xlsx/rendering/png"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"In Node","slug":"in-node","depth":2,"children":[{"title":"Every sheet","slug":"every-sheet","depth":3,"children":[]},{"title":"One sheet","slug":"one-sheet","depth":3,"children":[]},{"title":"One range","slug":"one-range","depth":3,"children":[]},{"title":"Options","slug":"options","depth":3,"children":[]}]},{"title":"From the JS API","slug":"from-the-js-api","depth":2,"children":[]},{"title":"In the browser, from a view","slug":"in-the-browser-from-a-view","depth":2,"children":[]},{"title":"Labels","slug":"labels","depth":2,"children":[]},{"title":"Limits","slug":"limits","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"reducto","siteName":"Reducto","title":".xlsx to PNG - Reducto","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T17:24:05.229Z","originalFileLocation":"office/xlsx/rendering/png.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Reducto\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/reducto/riSUMTseceMg4CLB/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/reducto/riSUMTseceMg4CLB/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/reducto/riSUMTseceMg4CLB/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/reducto/riSUMTseceMg4CLB/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/reducto/riSUMTseceMg4CLB/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/reducto/riSUMTseceMg4CLB/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/reducto/riSUMTseceMg4CLB/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/reducto/riSUMTseceMg4CLB/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/reducto/riSUMTseceMg4CLB/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\".xlsx to PNG - Reducto\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Reducto\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.reducto.ai/office/xlsx/rendering/png\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://reducto.mintlify.site/_mintlify/api/og/v2?division=Rendering+and+calculation\u0026amp;title=.xlsx+to+PNG\u0026amp;theme=8265b8622ae183e65f8e9b16\u0026amp;signature=90e75cb04d175f64a9afc2b893635e4c264a71e224759308e3dcbce8ce38ade4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\".xlsx to PNG - Reducto\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://reducto.mintlify.site/_mintlify/api/og/v2?division=Rendering+and+calculation\u0026amp;title=.xlsx+to+PNG\u0026amp;theme=8265b8622ae183e65f8e9b16\u0026amp;signature=90e75cb04d175f64a9afc2b893635e4c264a71e224759308e3dcbce8ce38ade4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/reducto/riSUMTseceMg4CLB/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Reducto\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5c0c5c\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.reducto.ai/office/xlsx/rendering/png\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/office/xlsx/rendering/png.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.reducto.ai/#organization\",\"name\":\"Reducto\",\"url\":\"https://docs.reducto.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://cdn.reducto.ai/logo.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.reducto.ai#website\",\"name\":\"Reducto\",\"url\":\"https://docs.reducto.ai\",\"publisher\":{\"@id\":\"https://docs.reducto.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.reducto.ai/office/xlsx/rendering/png#webpage\",\"url\":\"https://docs.reducto.ai/office/xlsx/rendering/png\",\"name\":\".xlsx to PNG\",\"dateModified\":\"2026-11-19T17:24:05.229Z\",\"isPartOf\":{\"@id\":\"https://docs.reducto.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.reducto.ai/office/xlsx/rendering/png#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.reducto.ai/office/xlsx/rendering/png#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\".xlsx\",\"item\":\"https://docs.reducto.ai/office/xlsx/getting-started/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rendering and calculation\",\"item\":\"https://docs.reducto.ai/office/xlsx/rendering/pdf\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\".xlsx to PNG\",\"item\":\"https://docs.reducto.ai/office/xlsx/rendering/png\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.reducto.ai/office/xlsx/rendering/png#article\",\"headline\":\".xlsx to PNG\",\"name\":\".xlsx to PNG\",\"url\":\"https://docs.reducto.ai/office/xlsx/rendering/png\",\"mainEntityOfPage\":{\"@id\":\"https://docs.reducto.ai/office/xlsx/rendering/png#webpage\"},\"dateModified\":\"2026-11-19T17:24:05.229Z\",\"publisher\":{\"@id\":\"https://docs.reducto.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.reducto.ai#website\"}}]}\u003c/script>","agentPointerHref":"/office/xlsx/rendering/png.md","siteName":"Reducto","nav":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"https://status.reducto.ai"},{"anchor":"Studio","icon":"browser","href":"https://studio.reducto.ai"},{"anchor":"Support","icon":"envelope","href":"mailto:support@reducto.ai"},{"anchor":"Model Versions","icon":"bell","href":"/reference/model-versions"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"/reference/changelog"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/overview"}]},{"tab":"Office","groups":[{"group":"Reducto Office","pages":[{"title":"Reducto Office","icon":"file-word","href":"/office"},{"title":"Document server","icon":"server","href":"/office/document-server"}]},{"group":"Licensing","pages":[{"title":"How licensing works","href":"/office/licensing/overview"},{"title":"Set up","href":"/office/licensing/setup"},{"title":"Sessions and billing","href":"/office/licensing/sessions"},{"title":"License checks","href":"/office/licensing/checks"},{"title":"Troubleshooting","href":"/office/licensing/troubleshooting"},{"title":"What the package sends","href":"/office/licensing/data"},{"title":"Check protocol","href":"/office/licensing/protocol"}]},{"group":".docx","pages":[{"group":"Getting started","pages":[{"title":"Overview","href":"/office/docx/getting-started/overview"},{"title":"Installation","href":"/office/docx/getting-started/installation"},{"title":"Fonts","href":"/office/docx/getting-started/fonts"},{"title":"Migrate to 0.1.0","href":"/office/docx/getting-started/upgrading"}]},{"group":"JS API","pages":[{"title":"Concepts","href":"/office/docx/js-api/concepts"},{"title":"Office.js in Node","href":"/office/docx/js-api/node"},{"title":"Office.js in the browser","href":"/office/docx/js-api/browser"}]},{"group":"Conversion","pages":[{"title":"DOCX to PDF","href":"/office/docx/conversion/pdf"},{"title":"DOCX to PNG","href":"/office/docx/conversion/png"},{"title":"Command line","href":"/office/docx/conversion/cli"},{"title":"Blocks and citations","href":"/office/docx/conversion/blocks"}]},{"group":"Recipes","pages":[{"title":"Redlining","href":"/office/docx/recipes/redlining"},{"title":"Comments","href":"/office/docx/recipes/comments"},{"title":"Compare documents","href":"/office/docx/recipes/compare"}]},{"group":"Display and editing UI","pages":[{"title":"Choose a layer","href":"/office/docx/ui/choose-a-layer"},{"title":"Editor","href":"/office/docx/ui/editor"},{"title":"Agent edits","href":"/office/docx/ui/agent-edits"},{"title":"Custom components","href":"/office/docx/ui/custom-components"},{"title":"Headless editor","href":"/office/docx/ui/headless-editor"},{"title":"Build your own skin","href":"/office/docx/ui/custom-skin"},{"title":"Canvas viewer","href":"/office/docx/ui/canvas-viewer"},{"title":"Keyboard shortcuts","href":"/office/docx/ui/keyboard-shortcuts"}]},{"group":"API reference","pages":[{"title":"WordDocument","href":"/office/docx/api/word-document"},{"title":"Body","href":"/office/docx/api/body"},{"title":"Paragraph","href":"/office/docx/api/paragraph"},{"title":"Range","href":"/office/docx/api/range"},{"title":"Font","href":"/office/docx/api/font"},{"title":"Tables","href":"/office/docx/api/tables"},{"title":"Lists","href":"/office/docx/api/lists"},{"title":"Sections","href":"/office/docx/api/sections"},{"title":"Content controls","href":"/office/docx/api/content-controls"},{"title":"Pictures","href":"/office/docx/api/pictures"},{"title":"Comments and revisions","href":"/office/docx/api/review"},{"title":"Styles","href":"/office/docx/api/styles"},{"title":"@reductoai/docx/node","href":"/office/docx/api/node"},{"title":"@reductoai/docx/browser","href":"/office/docx/api/browser"},{"title":"Parse, layout and render","href":"/office/docx/api/pipeline"},{"title":"@reductoai/docx-editor","href":"/office/docx/api/docx-editor"},{"title":"EditorModel","href":"/office/docx/api/editor-model"},{"title":"Review, find and navigation models","href":"/office/docx/api/editor-panels"},{"title":"Editor actions","href":"/office/docx/api/editor-actions"},{"title":"Fonts, colours and galleries","href":"/office/docx/api/editor-galleries"},{"title":"Keyboard shortcuts","href":"/office/docx/api/keyboard"},{"title":"@reductoai/docx-editor/react","href":"/office/docx/api/react"},{"group":"Other classes","pages":[{"title":"Other classes","href":"/office/docx/api/more-classes"},{"title":"Other classes: References and fields","href":"/office/docx/api/more-classes-references-and-fields"},{"title":"Other classes: Content controls","href":"/office/docx/api/more-classes-content-controls"},{"title":"Other classes: Review and comments","href":"/office/docx/api/more-classes-review-and-comments"},{"title":"Other classes: Tables","href":"/office/docx/api/more-classes-tables"},{"title":"Other classes: Sections and pages","href":"/office/docx/api/more-classes-sections-and-pages"},{"title":"Other classes: Shapes, pictures and charts","href":"/office/docx/api/more-classes-shapes-pictures-and-charts"},{"title":"Other classes: Lists","href":"/office/docx/api/more-classes-lists"},{"title":"Other classes: Text and formatting","href":"/office/docx/api/more-classes-text-and-formatting"},{"title":"Other classes: Editor","href":"/office/docx/api/more-classes-editor"},{"title":"Other classes: Other","href":"/office/docx/api/more-classes-other"}]},{"group":"Types: OfficeJS","pages":[{"title":"Types: OfficeJS","href":"/office/docx/api/types-facade"},{"title":"Types: OfficeJS: References and fields","href":"/office/docx/api/types-facade-references-and-fields"},{"title":"Types: OfficeJS: Content controls","href":"/office/docx/api/types-facade-content-controls"},{"title":"Types: OfficeJS: Review and comments","href":"/office/docx/api/types-facade-review-and-comments"},{"title":"Types: OfficeJS: Tables","href":"/office/docx/api/types-facade-tables"},{"title":"Types: OfficeJS: Sections and pages","href":"/office/docx/api/types-facade-sections-and-pages"},{"title":"Types: OfficeJS: Shapes, pictures and charts","href":"/office/docx/api/types-facade-shapes-pictures-and-charts"},{"title":"Types: OfficeJS: Lists","href":"/office/docx/api/types-facade-lists"},{"title":"Types: OfficeJS: Text and formatting","href":"/office/docx/api/types-facade-text-and-formatting"},{"title":"Types: OfficeJS: Editor","href":"/office/docx/api/types-facade-editor"},{"title":"Types: OfficeJS: Other","href":"/office/docx/api/types-facade-other"}]},{"group":"Types: editor","pages":[{"title":"Types: editor","href":"/office/docx/api/types-editor"},{"title":"Types: editor: References and fields","href":"/office/docx/api/types-editor-references-and-fields"},{"title":"Types: editor: Content controls","href":"/office/docx/api/types-editor-content-controls"},{"title":"Types: editor: Review and comments","href":"/office/docx/api/types-editor-review-and-comments"},{"title":"Types: editor: Tables","href":"/office/docx/api/types-editor-tables"},{"title":"Types: editor: Sections and pages","href":"/office/docx/api/types-editor-sections-and-pages"},{"title":"Types: editor: Shapes, pictures and charts","href":"/office/docx/api/types-editor-shapes-pictures-and-charts"},{"title":"Types: editor: Lists","href":"/office/docx/api/types-editor-lists"},{"title":"Types: editor: Text and formatting","href":"/office/docx/api/types-editor-text-and-formatting"},{"title":"Types: editor: Collaboration","href":"/office/docx/api/types-editor-collaboration"},{"title":"Types: editor: Editor","href":"/office/docx/api/types-editor-editor"},{"title":"Types: editor: Other","href":"/office/docx/api/types-editor-other"}]},{"title":"Types: layout and fonts","href":"/office/docx/api/types-layout"}]},{"group":"Changelog","pages":[{"title":"@reductoai/docx","href":"/office/docx/changelog/docx"},{"title":"@reductoai/docx-editor","href":"/office/docx/changelog/docx-editor"}]}]},{"group":".pptx","pages":[{"group":"Getting started","pages":[{"title":"Overview","href":"/office/pptx/getting-started/overview"},{"title":"Installation","href":"/office/pptx/getting-started/installation"},{"title":"Fonts","href":"/office/pptx/getting-started/fonts"}]},{"group":"JS API","pages":[{"title":"Concepts","href":"/office/pptx/js-api/concepts"},{"title":"JS API in Node","href":"/office/pptx/js-api/node"},{"title":"JS API in the browser","href":"/office/pptx/js-api/browser"}]},{"group":"Conversion","pages":[{"title":".pptx to PDF","href":"/office/pptx/conversion/pdf"},{"title":".pptx to PNG","href":"/office/pptx/conversion/png"},{"title":"Command line","href":"/office/pptx/conversion/cli"}]},{"group":"Recipes","pages":[{"title":"Blank decks","href":"/office/pptx/recipes/blank-decks"},{"title":"Collaboration","href":"/office/pptx/recipes/collab"}]},{"group":"Display and editing UI","pages":[{"title":"Editor","href":"/office/pptx/ui/editor"},{"title":"Headless editor","href":"/office/pptx/ui/headless-editor"}]},{"group":"API reference","pages":[{"title":"PowerPointPresentation","href":"/office/pptx/api/presentation"},{"title":"Slides","href":"/office/pptx/api/slides"},{"title":"Shapes","href":"/office/pptx/api/shapes"},{"title":"Fill, line and effects","href":"/office/pptx/api/shape-format"},{"title":"Text","href":"/office/pptx/api/text"},{"title":"Tables","href":"/office/pptx/api/tables"},{"title":"Charts","href":"/office/pptx/api/charts"},{"title":"Notes, comments and links","href":"/office/pptx/api/notes-comments"},{"title":"Themes and backgrounds","href":"/office/pptx/api/themes"},{"title":"@reductoai/pptx/node","href":"/office/pptx/api/node"},{"title":"@reductoai/pptx/browser","href":"/office/pptx/api/browser"},{"title":"Parse, layout and render","href":"/office/pptx/api/pipeline"},{"title":"@reductoai/pptx/editor","href":"/office/pptx/api/editor"},{"title":"@reductoai/pptx/collab","href":"/office/pptx/api/collab"},{"title":"@reductoai/pptx-editor","href":"/office/pptx/api/pptx-editor"},{"title":"Keyboard shortcuts","href":"/office/pptx/api/keyboard"},{"title":"@reductoai/pptx-editor/react","href":"/office/pptx/api/react"},{"group":"Other classes","pages":[{"title":"Other classes","href":"/office/pptx/api/more-classes"},{"title":"Other classes: Slides and shows","href":"/office/pptx/api/more-classes-slides-and-shows"},{"title":"Other classes: Tables","href":"/office/pptx/api/more-classes-tables"},{"title":"Other classes: Text and fonts","href":"/office/pptx/api/more-classes-text-and-fonts"},{"title":"Other classes: Shapes and charts","href":"/office/pptx/api/more-classes-shapes-and-charts"},{"title":"Other classes: Editor","href":"/office/pptx/api/more-classes-editor"},{"title":"Other classes: Other","href":"/office/pptx/api/more-classes-other"}]},{"title":"Types: OfficeJS","href":"/office/pptx/api/types-facade"},{"title":"Types: editor","href":"/office/pptx/api/types-editor"},{"title":"Types: layout and fonts","href":"/office/pptx/api/types-layout"}]},{"group":"Changelog","pages":[{"title":"@reductoai/pptx","href":"/office/pptx/changelog/pptx"},{"title":"@reductoai/pptx-editor","href":"/office/pptx/changelog/pptx-editor"}]}]},{"group":".xlsx","pages":[{"group":"Getting started","pages":[{"title":"Overview","href":"/office/xlsx/getting-started/overview"},{"title":"Installation","href":"/office/xlsx/getting-started/installation"},{"title":"Fonts","href":"/office/xlsx/getting-started/fonts"}]},{"group":"JS API","pages":[{"title":"Concepts","href":"/office/xlsx/js-api/concepts"},{"title":"JS API in Node","href":"/office/xlsx/js-api/node"},{"title":"JS API in the browser","href":"/office/xlsx/js-api/browser"}]},{"group":"Rendering and calculation","pages":[{"title":".xlsx to PDF","description":null,"href":"/office/xlsx/rendering/pdf"},{"title":".xlsx to PNG","href":"/office/xlsx/rendering/png"},{"title":"Recalculation","description":null,"href":"/office/xlsx/rendering/recalculation"},{"title":"View","href":"/office/xlsx/rendering/view"}]},{"group":"Recipes","pages":[{"title":"Blank workbook","href":"/office/xlsx/recipes/blank-workbook"},{"title":"Formulas","href":"/office/xlsx/recipes/formulas"},{"title":"Tables","href":"/office/xlsx/recipes/tables"},{"title":"Charts","href":"/office/xlsx/recipes/charts"},{"title":"Conditional formats and validation","href":"/office/xlsx/recipes/conditional-formats"},{"title":"Pictures in cells","href":"/office/xlsx/recipes/pictures-in-cells"},{"title":"Custom functions","href":"/office/xlsx/recipes/custom-functions"}]},{"group":"Display and editing UI","pages":[{"title":"Editor","href":"/office/xlsx/ui/editor"},{"title":"Headless editor","href":"/office/xlsx/ui/headless-editor"}]},{"group":"API reference","pages":[{"title":"ExcelWorkbook","href":"/office/xlsx/api/excel-workbook"},{"title":"ExcelWorksheet","href":"/office/xlsx/api/worksheet"},{"title":"ExcelRange","href":"/office/xlsx/api/range"},{"title":"Formats and styles","href":"/office/xlsx/api/format"},{"title":"Names and functions","href":"/office/xlsx/api/names-functions"},{"title":"Tables and filters","href":"/office/xlsx/api/tables"},{"title":"Charts","href":"/office/xlsx/api/charts"},{"title":"Pivot tables","href":"/office/xlsx/api/pivots"},{"title":"Conditional formats and validation","href":"/office/xlsx/api/conditional-formats"},{"title":"Comments and notes","href":"/office/xlsx/api/comments"},{"title":"Shapes and pictures","href":"/office/xlsx/api/shapes"},{"title":"@reductoai/xlsx","href":"/office/xlsx/api/workbook"},{"title":"@reductoai/xlsx/view","href":"/office/xlsx/api/view"},{"title":"@reductoai/xlsx/editor","href":"/office/xlsx/api/editor"},{"title":"@reductoai/xlsx/collab","href":"/office/xlsx/api/collab"},{"title":"@reductoai/xlsx-editor","href":"/office/xlsx/api/xlsx-editor"},{"title":"Keyboard shortcuts","href":"/office/xlsx/api/keyboard"},{"title":"@reductoai/xlsx-editor/react","href":"/office/xlsx/api/react"},{"group":"Other classes","pages":[{"title":"Other classes","href":"/office/xlsx/api/more-classes"},{"title":"Other classes: Conditional formats","href":"/office/xlsx/api/more-classes-conditional-formats"},{"title":"Other classes: PivotTables and slicers","href":"/office/xlsx/api/more-classes-pivottables-and-slicers"},{"title":"Other classes: Charts and sparklines","href":"/office/xlsx/api/more-classes-charts-and-sparklines"},{"title":"Other classes: Tables","href":"/office/xlsx/api/more-classes-tables"},{"title":"Other classes: Shapes and pictures","href":"/office/xlsx/api/more-classes-shapes-and-pictures"},{"title":"Other classes: Formulas and names","href":"/office/xlsx/api/more-classes-formulas-and-names"},{"title":"Other classes: Page layout and printing","href":"/office/xlsx/api/more-classes-page-layout-and-printing"},{"title":"Other classes: Formatting and styles","href":"/office/xlsx/api/more-classes-formatting-and-styles"},{"title":"Other classes: Comments and protection","href":"/office/xlsx/api/more-classes-comments-and-protection"},{"title":"Other classes: Editor","href":"/office/xlsx/api/more-classes-editor"},{"title":"Other classes: Other","href":"/office/xlsx/api/more-classes-other"}]},{"group":"Types: OfficeJS","pages":[{"title":"Types: OfficeJS","href":"/office/xlsx/api/types-facade"},{"title":"Types: OfficeJS: Conditional formats","href":"/office/xlsx/api/types-facade-conditional-formats"},{"title":"Types: OfficeJS: PivotTables and slicers","href":"/office/xlsx/api/types-facade-pivottables-and-slicers"},{"title":"Types: OfficeJS: Charts and sparklines","href":"/office/xlsx/api/types-facade-charts-and-sparklines"},{"title":"Types: OfficeJS: Shapes and pictures","href":"/office/xlsx/api/types-facade-shapes-and-pictures"},{"title":"Types: OfficeJS: Formulas and names","href":"/office/xlsx/api/types-facade-formulas-and-names"},{"title":"Types: OfficeJS: Data, sorting and validation","href":"/office/xlsx/api/types-facade-data-sorting-and-validation"},{"title":"Types: OfficeJS: Page layout and printing","href":"/office/xlsx/api/types-facade-page-layout-and-printing"},{"title":"Types: OfficeJS: Formatting and styles","href":"/office/xlsx/api/types-facade-formatting-and-styles"},{"title":"Types: OfficeJS: Comments and protection","href":"/office/xlsx/api/types-facade-comments-and-protection"},{"title":"Types: OfficeJS: Editor","href":"/office/xlsx/api/types-facade-editor"},{"title":"Types: OfficeJS: Other","href":"/office/xlsx/api/types-facade-other"}]},{"group":"Types: editor","pages":[{"title":"Types: editor","href":"/office/xlsx/api/types-editor"},{"title":"Types: editor: Conditional formats","href":"/office/xlsx/api/types-editor-conditional-formats"},{"title":"Types: editor: PivotTables and slicers","href":"/office/xlsx/api/types-editor-pivottables-and-slicers"},{"title":"Types: editor: Charts and sparklines","href":"/office/xlsx/api/types-editor-charts-and-sparklines"},{"title":"Types: editor: Tables","href":"/office/xlsx/api/types-editor-tables"},{"title":"Types: editor: Shapes and pictures","href":"/office/xlsx/api/types-editor-shapes-and-pictures"},{"title":"Types: editor: Formulas and names","href":"/office/xlsx/api/types-editor-formulas-and-names"},{"title":"Types: editor: Data, sorting and validation","href":"/office/xlsx/api/types-editor-data-sorting-and-validation"},{"title":"Types: editor: Page layout and printing","href":"/office/xlsx/api/types-editor-page-layout-and-printing"},{"title":"Types: editor: Formatting and styles","href":"/office/xlsx/api/types-editor-formatting-and-styles"},{"title":"Types: editor: Comments and protection","href":"/office/xlsx/api/types-editor-comments-and-protection"},{"title":"Types: editor: Collaboration","href":"/office/xlsx/api/types-editor-collaboration"},{"title":"Types: editor: Editor","href":"/office/xlsx/api/types-editor-editor"},{"title":"Types: editor: Other","href":"/office/xlsx/api/types-editor-other"}]},{"group":"Types: layout and fonts","pages":[{"title":"Types: layout and fonts","href":"/office/xlsx/api/types-layout"},{"title":"Types: layout and fonts: Conditional formats","href":"/office/xlsx/api/types-layout-conditional-formats"},{"title":"Types: layout and fonts: PivotTables and slicers","href":"/office/xlsx/api/types-layout-pivottables-and-slicers"},{"title":"Types: layout and fonts: Charts and sparklines","href":"/office/xlsx/api/types-layout-charts-and-sparklines"},{"title":"Types: layout and fonts: Tables","href":"/office/xlsx/api/types-layout-tables"},{"title":"Types: layout and fonts: Shapes and pictures","href":"/office/xlsx/api/types-layout-shapes-and-pictures"},{"title":"Types: layout and fonts: Formulas and names","href":"/office/xlsx/api/types-layout-formulas-and-names"},{"title":"Types: layout and fonts: Data, sorting and validation","href":"/office/xlsx/api/types-layout-data-sorting-and-validation"},{"title":"Types: layout and fonts: Page layout and printing","href":"/office/xlsx/api/types-layout-page-layout-and-printing"},{"title":"Types: layout and fonts: Formatting and styles","href":"/office/xlsx/api/types-layout-formatting-and-styles"},{"title":"Types: layout and fonts: Comments and protection","href":"/office/xlsx/api/types-layout-comments-and-protection"},{"title":"Types: layout and fonts: Collaboration","href":"/office/xlsx/api/types-layout-collaboration"},{"title":"Types: layout and fonts: Other","href":"/office/xlsx/api/types-layout-other"}]}]},{"group":"Changelog","pages":[{"title":"@reductoai/xlsx","href":"/office/xlsx/changelog/xlsx"},{"title":"@reductoai/xlsx-editor","href":"/office/xlsx/changelog/xlsx-editor"}]}]}]},{"tab":"API Reference","versions":[{"version":"Current","groups":[{"group":"Document Processing","pages":[{"openapi":"openapi.json post /parse","title":"Parse","href":"/api-reference/parse"},{"title":"Parse Async","openapi":"openapi.json post /parse_async","href":"/api-reference/async-parse"},{"openapi":"openapi.json post /upload","title":"Upload","href":"/api-reference/upload"},{"openapi":"openapi.json post /extract","title":"Extract","href":"/api-reference/extract"},{"openapi":"openapi.json post /extract_async","title":"Extract Async","href":"/api-reference/extract-async"},{"openapi":"openapi.json post /split","title":"Split","href":"/api-reference/split"},{"openapi":"openapi.json post /split_async","title":"Split Async","href":"/api-reference/split-async"},{"openapi":"openapi.json post /classify","title":"Classify","href":"/api-reference/classify"},{"openapi":"openapi.json post /classify_async","title":"Classify Async","href":"/api-reference/classify-async"},{"openapi":"openapi.json post /edit","title":"Edit","href":"/api-reference/edit"},{"openapi":"openapi.json post /edit_async","title":"Edit Async","href":"/api-reference/edit-async"},{"openapi":"openapi.json post /pipeline","title":"Pipeline","href":"/api-reference/pipeline"},{"openapi":"openapi.json post /pipeline_async","title":"Pipeline Async","href":"/api-reference/pipeline-async"}]},{"group":"Job Management","pages":[{"title":"Retrieve Job","openapi":"openapi.json get /job/{job_id}","href":"/api-reference/retrieve-parse"},{"openapi":"openapi.json post /cancel/{job_id}","title":"Cancel Job","href":"/api-reference/cancel-job"},{"title":"Delete Job","openapi":"openapi.json delete /job/{job_id}","href":"/api-reference/delete-job"},{"openapi":"openapi.json get /jobs","title":"Get Jobs","href":"/api-reference/get-jobs"}]},{"group":"File Management","pages":[{"title":"Delete Upload","openapi":"openapi.json delete /upload/{file_id}","href":"/api-reference/delete-upload"}]},{"group":"Utilities","pages":[{"openapi":"openapi.json post /configure_webhook","title":"Webhook Portal","href":"/api-reference/webhook-portal"},{"openapi":"openapi.json get /version","title":"Get Version","href":"/api-reference/get-version"}]}]},{"version":"Legacy API","pages":[{"title":"Legacy API","href":"/api-reference/legacy/parse"}]}]},{"tab":"Cookbooks","pages":[{"title":"Cookbooks","href":"/cookbooks/overview"}]},{"tab":"SDKs","versions":[{"version":"Python","groups":[{"group":"Get Started","pages":[{"title":"Python SDK Overview","sidebarTitle":"Overview","href":"/sdk/python/overview"}]},{"group":"Core Methods","pages":[{"title":"Upload","sidebarTitle":"Upload","href":"/sdk/python/upload"},{"title":"Parse","sidebarTitle":"Parse","href":"/sdk/python/parse"},{"title":"Extract","sidebarTitle":"Extract","href":"/sdk/python/extract"},{"title":"Split","sidebarTitle":"Split","href":"/sdk/python/split"},{"title":"Edit","sidebarTitle":"Edit","href":"/sdk/python/edit"},{"title":"Pipeline","sidebarTitle":"Pipeline","href":"/sdk/python/pipeline"}]},{"group":"Async \u0026 Utilities","pages":[{"title":"Async Client","sidebarTitle":"Async Client","href":"/sdk/python/async"},{"title":"Job Management","sidebarTitle":"Job Management","href":"/sdk/python/job-management"},{"title":"Error Handling","sidebarTitle":"Error Handling","href":"/sdk/python/error-handling"}]}]},{"version":"JavaScript","pages":[{"title":"JavaScript","href":"/sdk/javascript/overview"}]},{"version":"Go","pages":[{"title":"Go","href":"/sdk/go/overview"}]}]},{"tab":"Studio","pages":[{"title":"Studio","href":"/studio-parse"}]}]},"basePath":"","title":".xlsx to PNG - Reducto","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":[],"chunks":[]}