You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9165f28
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/Features/file-context.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,3 +129,26 @@ document into one model call. The tool does not execute macros, fetch external l
129
129
OCR on embedded images. Generic text reads refuse DOCX, and text search skips it.
130
130
131
131
`file_context_pdf_text` reports a bounded text-layer prefix, total page count, and one-based pages with almost no text. It performs no OCR. `file_context_pdf_page_image` renders a complete page as PNG. `file_context_pdf_images_info` counts embedded image objects, and `file_context_pdf_image` returns one object as PNG. The direct `IFileContextPdf` methods and public byte-oriented PDF APIs support the same operations. Storage-scoped PDF reads enforce a byte cap; page rendering enforces pixel and image-byte caps. Image tools return `DataContent`; host chat pipelines must forward it as image content rather than stringify a function result.
132
+
133
+
## Workbook styling and templates
134
+
135
+
`FileContextWorkbook` accepts an optional `TemplatePath` for an existing macro-free
136
+
`.xlsx` in the same authorized storage scope. Each supplied sheet replaces that
137
+
sheet's cell values/formulas, inherits existing cell styles by Excel coordinates,
138
+
and keeps its layout and other package parts; sheets not supplied are retained.
139
+
The template is never modified. A new unique output file is created.
140
+
141
+
Each worksheet has an optional `Style` object: `BoldHeader`, `HeaderFill` (`#RRGGBB`),
142
+
`FreezeHeader`, `NumberFormats` and `ColumnWidths`. Dictionary keys are one-based
143
+
Excel column numbers. Formats are Excel codes such as `$#,##0.00`, `0.0%`, and
144
+
`yyyy-mm-dd`; date values use Excel serial numbers. Widths use Excel character
145
+
units (positive, maximum 255). These are XLSX format contracts, not app limits.
146
+
Formulas remain explicit and are calculated by Excel. New data starts at A1.
0 commit comments