Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,14 +504,15 @@ hidden rows and manual breaks, then see the PDF that those settings will produce
- `SpreadsheetPrintPackage` makes a disposable XLSX under `JobQueue.DefaultWorkRoot`. It keeps every worksheet and
named range so cross-sheet formulas remain valid, hides the sheets not being rendered, and changes only the chosen
sheet's print settings. A new print area is written only after the user explicitly changes or accepts the range.
- `SpreadsheetPrintService` runs LibreOffice once for each region. Preview and export use the same disposable-workbook
- `SpreadsheetPrintService` prints each region once with Filee's sheet printer (`SheetPrintConverter`), or with
LibreOffice when it is chosen for spreadsheets in Settings → Engines and installed. Preview and export use the same disposable-workbook
path; export then joins the region PDFs in the chosen order with PDFsharp, or, with **One PDF per sheet**, writes
each region as `<chosen name>_<sheet>.pdf` (`PerSheetPaths` cleans the names, adds `_2` for repeats, and applies the tool preset's conflict policy to files
already there). The ordinary XLSX → PDF donut conversion
can still differ because route planning may select Filee's built-in spreadsheet reader instead of LibreOffice.
- `PdfPreviewDocument` caches a PDF's bytes and page geometry. The studio asks PDFium/PDFtoImage for small thumbnails
and only one large selected page, all decoded away from the UI thread; exporting never performs preview rendering.
Cancellation closes LibreOffice and the temporary job folder is removed on success, error or window close.
already there).
- `PdfPreviewDocument` caches a PDF's bytes and page geometry. The studio asks PDFium/PDFtoImage for the thumbnails
of the pages its virtualised strip shows (a few per document load) and only one large selected page, all decoded
away from the UI thread; exporting never performs preview rendering. Cancellation stops the printer (or closes
LibreOffice) and the temporary job folder is removed on success, error or window close.

## Settings and data

Expand Down
18 changes: 11 additions & 7 deletions docs/ENGINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -858,12 +858,16 @@ the text the spreadsheet shows, the value behind it and its Excel number format.
conditional formatting, data validation, print areas and page breaks (the print engine reads the page setup,
print areas, breaks, conditional formats and pictures for PDF).

The XLSX donut also offers **PDF + Edit** (`tool-sheet-studio`). Unlike an ordinary routed XLSX → PDF conversion,
this interactive tool always requires LibreOffice regardless of engine priority: it preserves the original workbook,
makes one disposable copy per selected sheet region, applies that region's print settings, and asks LibreOffice to
render it. PDFsharp combines the resulting PDFs. The live preview follows this exact studio export path and uses
PDFium/PDFtoImage for lazy thumbnails and the selected large page; the ordinary donut's PDF can differ because it
is printed by Filee's own print engine (below).
The XLSX donut also offers **PDF + Edit** (`tool-sheet-studio`). This interactive tool preserves the original
workbook, makes one disposable copy per selected sheet region, applies that region's print settings, and prints it
with the same engine as an ordinary XLSX → PDF: Filee's own print engine (below), or LibreOffice when **Use
LibreOffice for spreadsheets → PDF** is on and it is installed (and, as in a conversion, for a workbook with charts or
other objects the print engine doesn't draw yet; without LibreOffice the studio shows the printer's notice). Every
studio setting (paper, orientation, margins, scale or fit to pages, page order, print area, hidden rows and columns,
manual breaks, sheet choice) is written into the copy and read by the print engine; the sheet's own gridlines,
headings, centring and headers / footers are kept. PDFsharp combines the resulting PDFs. The live preview follows
this exact studio export path and uses PDFium/PDFtoImage for the thumbnails of the pages the strip shows and the
selected large page.

## Spreadsheet printing

Expand Down Expand Up @@ -941,7 +945,7 @@ services (FontResolver with font fallback, the HarfBuzz shaper, the UAX #14 line
- **Not printed yet.** Charts, shapes, text boxes, comments, sparklines; data bars, icon sets and conditional formats
with formulas of their own; conditional formats of XLS and ODS files; rich text in XLS cells; text running past the
edge of a page onto the next one; black-and-white and draft printing; the margins a real printer can't print in
(a PDF has none). The studio (*PDF + Edit*) still renders through LibreOffice.
(a PDF has none).

`tests/Filee.Engines.Tests/SheetPrintTests.cs` builds workbooks in code and checks the page count and where each page
starts against the numbers Excel's units give (10 default columns and 48 default rows on A4 with the Normal margins,
Expand Down
19 changes: 19 additions & 0 deletions src/Filee.App/Assets/i18n/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,25 @@
"notice.geo_shapefile_split": "تحتفظ Shapefile بنوع واحد من الأشكال، لذا حُفظت النقاط والخطوط والمضلعات في ملفات منفصلة",
"notice.geo_heights_dropped": "بعض النقاط بلا ارتفاع، ولا يمكن لملف Shapefile ترك ارتفاع نقطة واحدة فارغًا، لذا حُذفت جميع الارتفاعات",
"notice.osm_incomplete": "بعض الخطوط والمساحات تستخدم نقاطًا غير موجودة في الملف (مقتطف مقصوص)، لذا حُذفت",
"notice.renderer_left_out": "لم يستطع مُصيِّر Filee رسم هذا المستند كاملًا: {0}",
"notice.renderer_left_out_libreoffice": "لم يستطع مُصيِّر Filee رسم هذا المستند كاملًا: {0}. ثبّت LibreOffice من الإعدادات ← المحركات للحصول على نسخة مطابقة",
"notice.renderer_left_out.separator": "، ",
"notice.renderer_left_out.charts": "مخططات محذوفة: {0}",
"notice.renderer_left_out.charts_one": "حُذف مخطط واحد",
"notice.renderer_left_out.smartart": "رسومات SmartArt محذوفة: {0}",
"notice.renderer_left_out.smartart_one": "حُذف رسم SmartArt واحد",
"notice.renderer_left_out.objects": "كائنات مضمّنة محذوفة: {0}",
"notice.renderer_left_out.objects_one": "حُذف كائن مضمّن واحد",
"notice.renderer_left_out.form_controls": "عناصر تحكم نماذج محذوفة: {0}",
"notice.renderer_left_out.form_controls_one": "حُذف عنصر تحكم نموذج واحد",
"notice.renderer_left_out.videos": "مقاطع فيديو محذوفة: {0}",
"notice.renderer_left_out.videos_one": "حُذف مقطع فيديو واحد",
"notice.renderer_left_out.objects_pictured": "كائنات مضمّنة رُسمت من صورها المحفوظة: {0}",
"notice.renderer_left_out.objects_pictured_one": "رُسم كائن مضمّن واحد من صورته المحفوظة",
"notice.renderer_left_out.formulas": "صيغ كُتبت نصًا عاديًا: {0}",
"notice.renderer_left_out.formulas_one": "كُتبت صيغة واحدة نصًا عاديًا",
"notice.renderer_left_out.vertical_text": "وُضع النص العمودي أفقيًا",
"notice.renderer_left_out.more": "وغير ذلك",
"engine.reason.not_installed": "غير مثبّت",
"engine.reason.error": "خطأ أثناء التحقق",
"engine.reason.unsupported_platform": "غير متاح على هذا النظام",
Expand Down
19 changes: 19 additions & 0 deletions src/Filee.App/Assets/i18n/bn-BD.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,25 @@
"notice.geo_shapefile_split": "একটি Shapefile-এ এক ধরনের আকৃতি থাকে, তাই পয়েন্ট, রেখা ও বহুভুজ আলাদা ফাইল হিসেবে সংরক্ষণ করা হয়েছে",
"notice.geo_heights_dropped": "কিছু পয়েন্টের কোনো উচ্চতা নেই এবং Shapefile একটি বাদ দিতে পারে না, তাই সব উচ্চতা বাদ দেওয়া হয়েছে",
"notice.osm_incomplete": "কিছু রেখা ও এলাকা এমন পয়েন্ট ব্যবহার করে যা ফাইলে নেই (কেটে নেওয়া অংশ), তাই সেগুলো বাদ দেওয়া হয়েছে",
"notice.renderer_left_out": "Filee রেন্ডারার এই ডকুমেন্টের সবকিছু আঁকতে পারেনি: {0}",
"notice.renderer_left_out_libreoffice": "Filee রেন্ডারার এই ডকুমেন্টের সবকিছু আঁকতে পারেনি: {0}. হুবহু কপির জন্য সেটিংস → ইঞ্জিন-এ LibreOffice ইনস্টল করুন",
"notice.renderer_left_out.separator": ", ",
"notice.renderer_left_out.charts": "{0}টি চার্ট বাদ দেওয়া হয়েছে",
"notice.renderer_left_out.charts_one": "1টি চার্ট বাদ দেওয়া হয়েছে",
"notice.renderer_left_out.smartart": "{0}টি SmartArt গ্রাফিক বাদ দেওয়া হয়েছে",
"notice.renderer_left_out.smartart_one": "1টি SmartArt গ্রাফিক বাদ দেওয়া হয়েছে",
"notice.renderer_left_out.objects": "{0}টি এমবেড করা অবজেক্ট বাদ দেওয়া হয়েছে",
"notice.renderer_left_out.objects_one": "1টি এমবেড করা অবজেক্ট বাদ দেওয়া হয়েছে",
"notice.renderer_left_out.form_controls": "{0}টি ফর্ম কন্ট্রোল বাদ দেওয়া হয়েছে",
"notice.renderer_left_out.form_controls_one": "1টি ফর্ম কন্ট্রোল বাদ দেওয়া হয়েছে",
"notice.renderer_left_out.videos": "{0}টি ভিডিও বাদ দেওয়া হয়েছে",
"notice.renderer_left_out.videos_one": "1টি ভিডিও বাদ দেওয়া হয়েছে",
"notice.renderer_left_out.objects_pictured": "{0}টি এমবেড করা অবজেক্ট তাদের সংরক্ষিত ছবি থেকে আঁকা হয়েছে",
"notice.renderer_left_out.objects_pictured_one": "1টি এমবেড করা অবজেক্ট তার সংরক্ষিত ছবি থেকে আঁকা হয়েছে",
"notice.renderer_left_out.formulas": "{0}টি সূত্র সাধারণ লেখা হিসেবে লেখা হয়েছে",
"notice.renderer_left_out.formulas_one": "1টি সূত্র সাধারণ লেখা হিসেবে লেখা হয়েছে",
"notice.renderer_left_out.vertical_text": "খাড়া লেখা আড়াআড়ি বসানো হয়েছে",
"notice.renderer_left_out.more": "আরও কিছু",
"engine.reason.not_installed": "ইনস্টল করা নেই",
"engine.reason.error": "যাচাই করার সময় ত্রুটি",
"engine.reason.unsupported_platform": "এই প্ল্যাটফর্মে উপলব্ধ নয়",
Expand Down
19 changes: 19 additions & 0 deletions src/Filee.App/Assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,25 @@
"notice.geo_shapefile_split": "Ein Shapefile enthält nur einen Geometrietyp. Punkte, Linien und Polygone wurden deshalb in getrennten Dateien gespeichert",
"notice.geo_heights_dropped": "Einige Punkte haben keine Höhe, und ein Shapefile kann sie nicht einzeln weglassen. Deshalb wurden alle Höhen weggelassen",
"notice.osm_incomplete": "Einige Linien und Flächen nutzen Punkte, die nicht in der Datei sind (ein zugeschnittener Ausschnitt), und wurden weggelassen",
"notice.renderer_left_out": "Der Filee-Renderer konnte nicht alles in diesem Dokument zeichnen: {0}",
"notice.renderer_left_out_libreoffice": "Der Filee-Renderer konnte nicht alles in diesem Dokument zeichnen: {0}. Installiere LibreOffice unter Einstellungen → Module für eine originalgetreue Kopie",
"notice.renderer_left_out.separator": ", ",
"notice.renderer_left_out.charts": "{0} Diagramme weggelassen",
"notice.renderer_left_out.charts_one": "1 Diagramm weggelassen",
"notice.renderer_left_out.smartart": "{0} SmartArt-Grafiken weggelassen",
"notice.renderer_left_out.smartart_one": "1 SmartArt-Grafik weggelassen",
"notice.renderer_left_out.objects": "{0} eingebettete Objekte weggelassen",
"notice.renderer_left_out.objects_one": "1 eingebettetes Objekt weggelassen",
"notice.renderer_left_out.form_controls": "{0} Formularsteuerelemente weggelassen",
"notice.renderer_left_out.form_controls_one": "1 Formularsteuerelement weggelassen",
"notice.renderer_left_out.videos": "{0} Videos weggelassen",
"notice.renderer_left_out.videos_one": "1 Video weggelassen",
"notice.renderer_left_out.objects_pictured": "{0} eingebettete Objekte aus ihrem gespeicherten Bild gezeichnet",
"notice.renderer_left_out.objects_pictured_one": "1 eingebettetes Objekt aus seinem gespeicherten Bild gezeichnet",
"notice.renderer_left_out.formulas": "{0} Formeln als einfacher Text geschrieben",
"notice.renderer_left_out.formulas_one": "1 Formel als einfacher Text geschrieben",
"notice.renderer_left_out.vertical_text": "senkrechter Text waagerecht gesetzt",
"notice.renderer_left_out.more": "und mehr",
"engine.reason.not_installed": "Nicht installiert",
"engine.reason.error": "Fehler bei der Prüfung",
"engine.reason.unsupported_platform": "Auf dieser Plattform nicht verfügbar",
Expand Down
19 changes: 19 additions & 0 deletions src/Filee.App/Assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,25 @@
"notice.geo_shapefile_split": "A Shapefile holds one kind of shape, so points, lines and polygons were saved as separate files",
"notice.geo_heights_dropped": "Some points have no height and a Shapefile can't leave one out, so all heights were left out",
"notice.osm_incomplete": "Some lines and areas use points that aren't in the file (a cut-out extract) and were left out",
"notice.renderer_left_out": "The Filee renderer couldn't draw all of this document: {0}",
"notice.renderer_left_out_libreoffice": "The Filee renderer couldn't draw all of this document: {0}. Install LibreOffice in Settings → Engines for a faithful copy",
"notice.renderer_left_out.separator": ", ",
"notice.renderer_left_out.charts": "{0} charts left out",
"notice.renderer_left_out.charts_one": "1 chart left out",
"notice.renderer_left_out.smartart": "{0} SmartArt graphics left out",
"notice.renderer_left_out.smartart_one": "1 SmartArt graphic left out",
"notice.renderer_left_out.objects": "{0} embedded objects left out",
"notice.renderer_left_out.objects_one": "1 embedded object left out",
"notice.renderer_left_out.form_controls": "{0} form controls left out",
"notice.renderer_left_out.form_controls_one": "1 form control left out",
"notice.renderer_left_out.videos": "{0} videos left out",
"notice.renderer_left_out.videos_one": "1 video left out",
"notice.renderer_left_out.objects_pictured": "{0} embedded objects drawn from their saved pictures",
"notice.renderer_left_out.objects_pictured_one": "1 embedded object drawn from its saved picture",
"notice.renderer_left_out.formulas": "{0} formulas written as plain text",
"notice.renderer_left_out.formulas_one": "1 formula written as plain text",
"notice.renderer_left_out.vertical_text": "vertical text set horizontally",
"notice.renderer_left_out.more": "and more",

"engine.reason.not_installed": "Not installed",
"engine.reason.error": "Error while checking",
Expand Down
19 changes: 19 additions & 0 deletions src/Filee.App/Assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,25 @@
"notice.geo_shapefile_split": "Un Shapefile guarda un solo tipo de forma, así que puntos, líneas y polígonos se guardaron en archivos separados",
"notice.geo_heights_dropped": "Algunos puntos no tienen altura y Shapefile no puede omitirla en uno solo, así que se omitieron todas las alturas",
"notice.osm_incomplete": "Algunas líneas y áreas usan puntos que no están en el archivo (un recorte del mapa) y se omitieron",
"notice.renderer_left_out": "El renderizador de Filee no pudo dibujar todo este documento: {0}",
"notice.renderer_left_out_libreoffice": "El renderizador de Filee no pudo dibujar todo este documento: {0}. Instala LibreOffice en Ajustes → Motores para obtener una copia fiel",
"notice.renderer_left_out.separator": ", ",
"notice.renderer_left_out.charts": "{0} gráficos omitidos",
"notice.renderer_left_out.charts_one": "1 gráfico omitido",
"notice.renderer_left_out.smartart": "{0} gráficos SmartArt omitidos",
"notice.renderer_left_out.smartart_one": "1 gráfico SmartArt omitido",
"notice.renderer_left_out.objects": "{0} objetos incrustados omitidos",
"notice.renderer_left_out.objects_one": "1 objeto incrustado omitido",
"notice.renderer_left_out.form_controls": "{0} controles de formulario omitidos",
"notice.renderer_left_out.form_controls_one": "1 control de formulario omitido",
"notice.renderer_left_out.videos": "{0} vídeos omitidos",
"notice.renderer_left_out.videos_one": "1 vídeo omitido",
"notice.renderer_left_out.objects_pictured": "{0} objetos incrustados dibujados a partir de su imagen guardada",
"notice.renderer_left_out.objects_pictured_one": "1 objeto incrustado dibujado a partir de su imagen guardada",
"notice.renderer_left_out.formulas": "{0} fórmulas escritas como texto sin formato",
"notice.renderer_left_out.formulas_one": "1 fórmula escrita como texto sin formato",
"notice.renderer_left_out.vertical_text": "texto vertical colocado en horizontal",
"notice.renderer_left_out.more": "y más",
"engine.reason.not_installed": "No instalado",
"engine.reason.error": "Error al comprobar",
"engine.reason.unsupported_platform": "No disponible en esta plataforma",
Expand Down
Loading
Loading