Giter Club home page Giter Club logo

Comments (3)

plutext avatar plutext commented on August 16, 2024

I created a docx containing a thumbnail using Word 2010, following http://superuser.com/questions/322373/how-can-i-save-a-word-2010-document-so-it-has-a-thumbnail-preview-image-in-its-m

docx4j 2.8.0 can load it:

DEBUG org.docx4j.openpackaging.io.LoadFromZipNG .addPartsFromRelationships line 342 -
For Relationship Id=rId2 Source is /, Target is docProps/thumbnail.emf, type: http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail
DEBUG org.docx4j.openpackaging.io.LoadFromZipNG .getRawPart line 512 - resolved uri: docProps/thumbnail.emf
INFO org.docx4j.openpackaging.contenttype.ContentTypeManager .getPart line 264 - Looking at extension 'emf
INFO org.docx4j.openpackaging.contenttype.ContentTypeManager .getPart line 268 - Found content type 'image/x-emf' for /docProps/thumbnail.emf
INFO org.docx4j.openpackaging.parts.Part . line 150 - /docProps/thumbnail.emf
DEBUG org.docx4j.openpackaging.io.LoadFromZipNG .getRawPart line 560 - Detected BinaryPart org.docx4j.openpackaging.parts.WordprocessingML.MetafileEmfPart
DEBUG org.docx4j.openpackaging.parts.Part .setBinaryData line 71 - reading input stream
DEBUG org.docx4j.openpackaging.parts.Part .setBinaryData line 74 - .. done
DEBUG org.docx4j.openpackaging.parts.Part .setBinaryData line 80 - closing binary input stream
INFO org.docx4j.openpackaging.parts.Part .setBinaryData line 82 - .. closed.
DEBUG org.docx4j.openpackaging.parts.relationships.RelationshipsPart .loadPart line 376 - Loading part /docProps/thumbnail.emf
DEBUG org.docx4j.openpackaging.parts.Part .setPackage line 185 - setPackage called for org.docx4j.openpackaging.parts.WordprocessingML.MetafileEmfPart
DEBUG org.docx4j.openpackaging.io.LoadFromZipNG .getRelationshipsPart line 481 - No relationships docProps/_rels/thumbnail.emf.rels

Please attach a sample docx exhibiting the issue, and explain how it was created (in Word 2011 for Mac?)

from docx4j.

Dmole avatar Dmole commented on August 16, 2024

Hi plutext,

So a file made with Word 2011 for Mac has no title making
coreProps.getTitle().getValue().getContent();
return a 0 size List.

This is what I did to get it working for me:
Dmole@8c5ed8c

from docx4j.

plutext avatar plutext commented on August 16, 2024

OK, thanks, good to know. See comments on your commit - I've added some
stuff based on that to plutext/docx4j. Thanks!

cheers .. Jason

On Thu, May 31, 2012 at 11:17 AM, Dmole <
[email protected]

wrote:

Hi plutext,

So a file made with Word 2011 for Mac has no title making
coreProps.getTitle().getValue().getContent();
return a 0 size List.

This is what I did to get it working for me:

Dmole@8c5ed8c


Reply to this email directly or view it on GitHub:
#5 (comment)

from docx4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.