can not support doc?

Open
#451 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
backend

Research direction

Start by reproducing the reported case with a DOCX containing only three pictures, then inspect the Sections, Paragraphs, and Pictures traversal shown in the issue. The fix is done when the pictures in that document can be read through the library rather than returning zero paragraphs and pictures.

Written by the indexing model from the issue text.

Description

i test a docx with only 3 pictures

using (var document = DocX.Create(docpath))
            {
                foreach (var section in document.Sections)
                {
                    foreach (var paragraph in section.Paragraphs)
                    {
                        foreach (var pic in paragraph.Pictures)
                        {
                            //
                        }
                    }
                }
            }

but Sections.count=1, Paragraphs.count=0, document.Pictures.count=0, so i can not read picture.
can you help me?

spire.doc works fine

Dominant language
C#
Stars
1.9k
Forks
483
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from xceedsoftware/DocX

All issues in xceedsoftware/DocX

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.