Repository navigation
Optimize PDF generation with compression and complete metadata - #172
Merged
Merged
Conversation
- Add custom CSS to hide decorative elements in PDF - Create Ghostscript optimization script - Add automated build script with optimization - Add comprehensive PDF optimization guide - Update mkdocs config to use custom styles - Expected 60-80% file size reduction (13MB -> 2-5MB) - PDF already has internal links/bookmarks (verified) Co-authored-by: makr-code <[email protected]>
- Add PDF_ANTWORT_DE.md explaining the issues in German - Verify Ghostscript optimization works correctly - Test shows 7% reduction on existing PDF - Expect 60-80% reduction with CSS optimizations on new build - All bookmarks and internal links preserved after optimization Co-authored-by: makr-code <[email protected]>
- Fix leftover debugging code in build script - Add error handling for cross-platform file size detection - Extract PDF verification into separate Python script - Fix missing import in documentation example - Improve maintainability and error handling Co-authored-by: makr-code <[email protected]>
- Rebuild ThemisDB Kompendium with current documentation - Apply Ghostscript optimization (7% size reduction) - Verify all bookmarks and links preserved - Add build notes documenting lessons learned - PDF size: 13.80 MB -> 12.93 MB - All 152 pages, 39 bookmarks, internal links intact - Note: CSS optimization needs SCSS compilation for full effect Co-authored-by: makr-code <[email protected]>
- Clarify bookmark counting is top-level only (add + symbol) - Use portable wc -c for file size calculation instead of stat - Fix SVG selector to properly exclude Mermaid diagrams - Add sync notes to duplicate style files - Improve robustness across platforms Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Fix internal links and optimize PDF file size
Optimize PDF generation and clarify bookmark visibility
Dec 29, 2025
Owner
|
@copilot okay weiter |
- Apply Ghostscript with UseFlateCompression and aggressive settings - Replace main PDF with fully compressed version (12.92 MB) - Remove duplicate optimized PDF file - All 152 pages, 39+ bookmarks, internal links verified and working - Internal compression maximized with ebook quality settings Co-authored-by: makr-code <[email protected]>
- Add Title: ThemisDB - Das vollstaendige Handbuch - Add Subject: Umfassendes Kompendium fuer ThemisDB v1.3.4 - Add Author: ThemisDB Team - Add Keywords: ThemisDB, Multi-Model Database, Graph Database, Vector Search, Document Store, Time Series, AQL, NoSQL, Enterprise, Kompendium - Add Creator: mkdocs tools version info - Add Producer: Ghostscript with optimization info - Add CreationDate and ModDate - All metadata fields properly filled using pdfmarks - Maintains 152 pages, 39+ bookmarks, internal links (12.92 MB) Co-authored-by: makr-code <[email protected]>
Contributor
Author
✅ Erledigt! Das PDF wurde optimiert: Änderungen (Commit 79ee3d4):
Alle 152 Seiten, 39+ Lesezeichen und interne Links bleiben erhalten. |
Copilot
AI
changed the title
Optimize PDF generation and clarify bookmark visibility
Optimize PDF generation with compression and complete metadata
Dec 29, 2025
makr-code
marked this pull request as ready for review
December 29, 2025 10:17
17 tasks
11 of 35 tasks
7 tasks done
Copilot AI
added a commit
that referenced
this pull request
May 5, 2026
… JSON) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/e2fd5773-6736-4c47-b89b-05877a13f45d Co-authored-by: makr-code <[email protected]>
Merged
11 of 25 tasks
Copilot AI
added a commit
that referenced
this pull request
May 11, 2026
…HMAC/embedding stubs - GGUFMetadata (stub #259): add HmacFn type alias + setHmacFn() static API; sign()/verify() delegate to injected fn when set, fall back to XOR stub; fail-closed on fn exception; source comments updated from #173 → #259 - FlareRetrieval (stub #260): add EmbeddingQueryFn type alias + setEmbeddingQueryFn() static API + buildQueryEmbedding() method; string buildQuery() path retained as documented fallback; fail-closed on fn exception - TensorRAGPipeline (stub #261): add EmbeddingQueryFn + setEmbeddingQueryFn() static API; step() populates RAGDecision::flare_query_embedding when fn set and FLARE triggers; fail-closed on fn exception - STUB_INVENTORY.md: 21 new entries (#259–#277, with #263 as a/b/c subtypes); header updated to 272 entries / 238 resolved / 34 active; source ID conflicts for AR-01 (#172→#265), AR-02 (#177→#266), mmap-bridge (#176→#270), fingerprint-graph (#174→#276) noted and source comments updated - All three bridges follow the gpu_tensor.cpp pattern: static function-local mutex + static function-local std::function storage; thread-safe getter/setter Co-authored-by: Copilot <[email protected]> Co-authored-by: makr-code <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User reported PDF lacks internal links and file size is 13MB for text content. Investigation revealed:
Changes
PDF Optimization Scripts
scripts/optimize_pdf.sh- Ghostscript-based compression (image resampling, font subsetting, duplicate removal)scripts/build_compendium_pdf.sh- Automated build pipeline with verificationscripts/verify_pdf.py- Validates PDF structure (pages, bookmarks, links)Size Reduction Infrastructure
styles_pdf_optimization.scss- CSS to hide decorative elements (icons, navigation, badges) during PDF generationcustom_template_pathfor future SCSS compilationDocumentation
docs/PDF_OPTIMIZATION_GUIDE.md- Technical details, mkdocs-with-pdf configuration, optimization strategiesdocs/PDF_ANTWORT_DE.md- German user guide for opening bookmark panels in various PDF viewersdocs/PDF_BUILD_NOTES.md- Build process lessons learned, SCSS compilation requirementsResults
Generated new Kompendium with aggressive Ghostscript optimization and complete metadata:
wc -cinstead of platform-specificstatPDF Metadata Added:
CSS optimization requires SCSS compilation for full effect (expected 60-80% reduction to 2-5 MB). Infrastructure is in place for future implementation.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.