107 Commits

Author SHA1 Message Date
zerx-lab 5912554659 Manual validation testing for all project features (#92)
* Fix template engine bugs for Issue #91 and #88

Issue #91: Table image placeholders not being replaced
- Added processImagePlaceholdersInTable function to handle image
  placeholders inside table cells
- Previously only top-level paragraphs were processed for images

Issue #88: {{#each}} loop output incorrectly styled as bold
- Removed hardcoded Bold and font family settings in processDocumentLevelLoops
- Loop output now preserves original paragraph styles instead of
  forcing bold "仿宋" font

* Add comprehensive validation test suite

- main.go: 34 feature validation tests
- issue_reproduction.go: Issue #91/#88 reproduction tests
- comprehensive_issue_check.go: Multi-issue validation
- docx_validator.py: Python OOXML validator
- validate_with_external_tools.sh: External tool validation script
- run_validation.sh: Test runner script

Tests verify:
- Document creation, formatting, tables, images
- Template engine (variables, loops, conditionals)
- Headers/footers, footnotes, TOC, lists
- Markdown conversion, page settings

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-17 09:44:49 +08:00
Copilot b0345be6b2 Update repository path from ZeroHawkeye/wordZero to zerx-lab/wordZero (#90)
* Initial plan

* Update repository path from ZeroHawkeye to zerx-lab

Co-authored-by: zerx-lab <161401688+zerx-lab@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: zerx-lab <161401688+zerx-lab@users.noreply.github.com>
2026-01-05 15:45:41 +08:00
Copilot 021687f3bc Fix Go 1.19+ compatibility: Remove Go 1.22 syntax and downgrade goldmark (#87)
* Initial plan

* Fix Go 1.22 syntax for backward compatibility with Go 1.19+

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Downgrade goldmark to v1.7.8 for Go 1.19+ compatibility

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Remove backup file

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-12-30 17:41:19 +08:00
Copilot ced266718f Update CHANGELOG.md and README for v1.6.0 release (#85)
* Initial plan

* Update CHANGELOG.md and README files for v1.6.0 release

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
v1.6.0
2025-12-26 23:29:19 +08:00
Joceleen ba4fdb29ee Preserve template header/footer references during DOCX rendering (#76) (#77)
*Initial Plan

* Parse `<w:sectPr>` blocks even when Word nests them inside paragraph
  properties and surface them through a new `setSectionProperties` helper so
  relationships when reading DOCX files, preventing `r:id` references from
  being dropped during serialization

* Add a regression test that rewrites a DOCX to place section
  properties inside a paragraph and confirms header/footer variables are
  still replaced
2025-12-26 23:15:14 +08:00
xNeo404 12e509c244 修复OpenFromMemory的bug(#81) (#83)
Co-authored-by: xNeo404 <xNeo404>
2025-12-26 23:14:09 +08:00
Copilot 0a2b79d74a Add LaTeX math formula support for Markdown to Word conversion (#75)
* Initial plan

* Add support for LaTeX math formula conversion in markdown to Word

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Address code review comments: fix formatting, extract helper method, improve comments

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Fix LaTeX command replacement order to prevent partial replacements

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
v1.5.0
2025-11-25 16:40:26 +08:00
Copilot 1a679b9967 Add documentation for table cell image functionality (#74)
* Initial plan

* Add documentation for table cell image functionality to README

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-25 15:16:38 +08:00
Copilot c0fd8f8a4f Add SnapToGrid support to fix custom line spacing in Chinese documents (#73)
* Initial plan

* Add SnapToGrid support for custom styles and paragraphs

- Add SnapToGrid field to ParagraphProperties in both style and document packages
- Add SnapToGrid option to QuickParagraphConfig for custom style creation
- Add SnapToGrid option to ParagraphFormatConfig for paragraph formatting
- Add SetSnapToGrid method to Paragraph for direct control
- Add cloning support for SnapToGrid in style inheritance
- Add test for SnapToGrid functionality

This allows users to disable grid alignment (设置为false可禁用网格对齐), which is
necessary to make custom LineSpacing work correctly when document has grid enabled.

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Improve documentation for SnapToGrid and LineSpacing

- Add clearer documentation for LineSpacing conversion (multiplier × 240 = OOXML units)
- Add comments explaining intentional type duplication between packages

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Update pkg/style/style.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-25 14:22:50 +08:00
Copilot 21b3a1e5b2 Initial plan (#72)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-11-25 12:58:26 +08:00
Copilot 881891c296 Fix template replacement losing images by adding drawing element parsing (#71)
* Initial plan

* Fix template replacement preserving images and formatting

- Added parseDrawingElement method to parse drawing (image) elements when opening documents
- Added parseInlineDrawing and parseAnchorDrawing for both inline and floating images
- Added supporting parsers for all nested drawing element structures
- Added test case TestTemplateImagePreservation to verify image preservation
- Template replacement now correctly preserves images and their formatting

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Address code review comments: use strings.Contains and fix xmlns parsing

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-25 11:40:53 +08:00
Copilot 90f24b746d feat: Add complex table cell content APIs (paragraphs, nested tables, lists, images) (#70)
* Initial plan

* Implement complex table cell content features for issue #27

- Add AddCellParagraph method to add paragraphs to table cells
- Add AddCellFormattedParagraph for formatted paragraphs in cells
- Add ClearCellParagraphs and GetCellParagraphs methods
- Add AddNestedTable method for nested tables in cells
- Add AddCellList method with support for various list types
- Add AddCellImage, AddCellImageFromFile, AddCellImageFromData methods
- Add comprehensive tests for all new features
- Add complex_table_demo example demonstrating all features

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Remove accidental binary and update .gitignore

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-25 11:06:10 +08:00
Copilot e2f4402c5d Return error from AddTable and CreateTable instead of nil (#69)
* Initial plan

* Add error return to AddTable and CreateTable functions

- Modified CreateTable to return (*Table, error) instead of *Table
- Modified AddTable to return (*Table, error) instead of *Table
- Updated all test files to handle the new error return
- Updated markdown renderer to handle the new error return
- Added proper validation errors for invalid table configurations

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Update examples and fix test indentation for AddTable/CreateTable changes

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-25 10:28:08 +08:00
Copilot e2588d68a6 Fix template variable replacement losing paragraph numbering (#68)
* Initial plan

* Fix template variable replacement losing numbering format

- Add parsing for numPr (numbering properties) in parseParagraphProperties
- Add new parseNumberingProperties function to extract ilvl and numId
- Add test TestTemplateNumberingPropertiesPreservation to verify numbering is preserved

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-25 08:31:39 +08:00
Copilot 4ce3c24a54 [WIP] Fix unavailability of text underlining feature (#67)
* Initial plan

* Add paragraph-level text formatting methods for underline, bold, italic, etc.

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Fix test cleanup to use defer for proper resource management

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-25 08:18:26 +08:00
Copilot e7ac6f9ab1 Add Paragraph.AddPageBreak() and document page break functionality (#65)
* Initial plan

* Add Paragraph.AddPageBreak() method and enhance page break documentation

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-25 07:53:15 +08:00
Copilot 2ae1941406 [WIP] Fix document structure issue when rendering Word templates (#64)
* Initial plan

* Fix template rendering to preserve document structure (headers, footers, etc.)

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-25 07:50:56 +08:00
Copilot f4bcba5223 Fix template engine to recognize variables in headers and footers (#63)
* Initial plan

* Fix template engine to support header/footer variables

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Address code review feedback

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-25 07:28:24 +08:00
Copilot e0ac449c09 Add formatted header/footer support with TextFormat and alignment (#62)
* Initial plan

* Add formatted header/footer support with TextFormat and alignment options

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Address code review feedback: fix font color handling and add ID comments

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-25 07:07:51 +08:00
Copilot 9b97a025d1 Fix floating images causing Word document open failures (#61)
* Initial plan

* Initial analysis of floating image issue

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Fix floating image XML structure - remove empty text elements

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Address code review feedback and add floating images demo

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Add documentation for floating image fix

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Delete docs/floating_image_fix.md

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-25 06:52:16 +08:00
Copilot 32b12bad4f [WIP] Fix disappearing inner table in template export (#60)
* Initial plan

* Fix nested table support in template export

- Add Tables []Table field to TableCell struct to support nested tables
- Add custom MarshalXML for TableCell to ensure proper XML ordering
- Update cloneTableCell to deep clone nested tables
- Update replaceVariablesInTable to recursively process nested tables
- Add test case for nested table template rendering
- All existing tests pass

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Add real-world nested table scenario test

- Add comprehensive test simulating the issue scenario (resume with family members table)
- Test validates nested tables are preserved during template rendering
- Test includes clear success/failure messages for bug verification
- All tests pass successfully

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 23:34:10 +08:00
Copilot f582b3f1a6 [WIP] Fix issue with converting markdown containing line breaks to docx (#59)
* Initial plan

* Fix markdown soft line break handling in Word conversion

- Add space after text nodes with soft line breaks
- Handle soft line breaks in both regular content and task lists
- Add comprehensive test cases for soft line break scenarios

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Add soft linebreak demo example

- Create comprehensive demo showing soft linebreak fix
- Demonstrate various scenarios including tables and formatting
- Include the original issue scenario for verification

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 23:22:06 +08:00
Copilot 7637e60d51 [WIP] Update documentation for page break methods (#58)
* Initial plan

* Add AddPageBreak() method to API documentation

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 23:10:10 +08:00
Copilot c73a896710 Fix Word document corruption when using non-ASCII image filenames (#57)
* Initial plan

* Fix Chinese filename issue in images - convert to ASCII-safe filenames

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Clean up code: fix string conversion and format Chinese filename tests

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 23:01:01 +08:00
Copilot 75101265f7 Add Copilot instructions for repository (#56)
* Initial plan

* Add Copilot instructions for repository

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 22:27:29 +08:00
Copilot 976e0c97f5 [WIP] Fix alignment issue after merging cells in table (#54)
* Initial plan

* Add comprehensive tests for table dynamic row insertion and merging

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Address code review feedback - improve test code quality

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 22:27:04 +08:00
Copilot 0713edcf59 Fix UpdateTOC failing to locate TOC created by GenerateTOC (#53)
* Initial plan

* Add test case to reproduce UpdateTOC issue

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Fix UpdateTOC to work with SDT-based TOC from GenerateTOC

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Address code review feedback - improve error handling and readability

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Add test for exact issue scenario from bug report

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 22:08:40 +08:00
Copilot 43fdc66808 Fix nested {{#each}} loop rendering in template engine (#52)
* Initial plan

* Fix nested loop rendering in template engine

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Add nested loop demo and documentation

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

* Remove historical problem explanation from README

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 21:41:52 +08:00
ZeroHawkeye 3246c76e00 Merge pull request #51 from ZeroHawkeye/copilot/fix-function-issues
Add comprehensive paragraph formatting properties (KeepNext, KeepLines, PageBreakBefore, WidowControl, OutlineLevel)
2025-11-24 21:14:52 +08:00
ZeroHawkeye 7e3f6d460f Delete IMPLEMENTATION_SUMMARY.md 2025-11-24 21:13:03 +08:00
copilot-swe-agent[bot] 51aae3cf0d Add implementation summary document
- Create comprehensive technical summary
- Document all changes, tests, and improvements
- Provide usage examples and scenarios

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 12:52:44 +00:00
copilot-swe-agent[bot] 627ce1b509 Fix Justification struct to add omitempty tag
- Add omitempty to Justification.Val field for XML schema consistency
- Ensures valid XML generation for default/empty alignment values

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 12:51:03 +00:00
copilot-swe-agent[bot] fd5cb2f7e2 Update documentation for paragraph formatting features
- Add paragraph_format_demo README
- Update README_zh.md with new features
- Add new example to examples list
- Update feature descriptions

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 12:48:35 +00:00
copilot-swe-agent[bot] 5871f85e5e Add comprehensive paragraph formatting features
- Add new paragraph properties: KeepNext, KeepLines, PageBreakBefore, WidowControl, OutlineLevel
- Implement individual setter methods for each property
- Add ParagraphFormatConfig struct for comprehensive formatting
- Add SetParagraphFormat method for one-call configuration
- Remove duplicate type definitions from table.go
- Add comprehensive test coverage for all new features
- Create paragraph_format_demo example
- Update documentation with new features

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 12:45:41 +00:00
copilot-swe-agent[bot] 4720df1d14 Initial plan 2025-11-24 12:35:41 +00:00
ZeroHawkeye a94181ba31 Merge pull request #50 from ZeroHawkeye/copilot/add-pagination-and-delete-functionality
Add document pagination and paragraph deletion APIs
2025-11-24 20:28:50 +08:00
copilot-swe-agent[bot] 4a5918e5e1 Final refinements based on code review
- Add bilingual comment to assertParagraphContent helper
- Update Break struct comment to accurately reflect page break support only
- Add early validation for negative index in RemoveParagraphAt
- Update inline comment for Break field to be concise

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 12:17:08 +00:00
copilot-swe-agent[bot] 5aca986297 Add documentation and refactor test helper
- Add bilingual documentation for Break struct
- Add inline comment for Break field in Run struct
- Extract assertParagraphContent helper function to reduce test duplication
- Improve test maintainability

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 12:15:17 +00:00
copilot-swe-agent[bot] 7396140e2c Address code review feedback
- Remove unnecessary variable assignments in example
- Add bounds checking in test to prevent potential panics
- Optimize RemoveParagraphAt to use single iteration instead of double iteration

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 12:12:37 +00:00
copilot-swe-agent[bot] fb4a663300 Update documentation for pagination and deletion features
- Add pagination and paragraph deletion to features list in both README files
- Add code examples showing how to use the new features
- Update examples list to include pagination_deletion_demo

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 12:09:18 +00:00
copilot-swe-agent[bot] debd3b1409 Add document pagination and paragraph deletion features
- Add Break structure for page breaks in Run
- Implement AddPageBreak() method to add page breaks to documents
- Implement RemoveParagraph() method to delete paragraphs by reference
- Implement RemoveParagraphAt() method to delete paragraphs by index
- Implement RemoveElementAt() method to delete any element by index
- Add comprehensive tests for all new features
- Update template_from_file_demo to use new AddPageBreak() method
- Add pagination_deletion_demo example showing both features

Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 12:06:31 +00:00
copilot-swe-agent[bot] ad7b502b85 Initial plan 2025-11-24 11:58:23 +00:00
ZeroHawkeye a2aca3c53f Merge pull request #49 from ZeroHawkeye/copilot/fix-image-disappearance-issue
Fix: Images lost when opening and re-saving Word documents
2025-11-24 19:56:40 +08:00
copilot-swe-agent[bot] f4f7e642a4 Add README for image persistence demo
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 11:36:10 +00:00
copilot-swe-agent[bot] 24b2b48dd8 Fix image disappearance issue when modifying and saving documents
Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
2025-11-24 11:33:52 +00:00
copilot-swe-agent[bot] 67fb8c1c9e Initial plan 2025-11-24 11:27:31 +00:00
ZeroHawkeye 0a7ed25071 Merge pull request #38 from xNeo404/main
feat: 实现从内存中打开文档的 新增 OpenFromMemory 函数
v1.4.0
2025-11-11 11:02:03 +08:00
ZeroHawkeye 0039dd8437 Merge pull request #40 from xNeo404/fix-m2w-table
fix: 修改md转word问题
2025-11-11 11:01:53 +08:00
ZeroHawkeye 36d5731124 Merge pull request #43 from Padane22-spec/main
Fix: 修复通过Open打开的文档在Save后无法正常打开的问题
2025-11-11 11:01:27 +08:00
Padane22 d75c38c3d6 Fix: 修复通过Open打开的文档在Save后无法正常打开的问题 2025-11-06 09:12:44 +08:00