Comments (3)
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.
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.
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:
Reply to this email directly or view it on GitHub:
#5 (comment)
from docx4j.
Related Issues (20)
- handling broken node docx library output HOT 3
- NullPointerException in deleteEmbeddedFontTempFiles
- Is there any plan to implement support for text boxes and shapes in docx to html conversion?
- Converting xHTML to docx doesn't keep table width HOT 1
- Add part for .wdp JPEG XR HOT 2
- Version 11.4.8 and 11.4.9 - What would cause this ? HOT 3
- Closed
- When being used in AWS lambda environment , its unable to run and throws an exception. HOT 1
- Excessive logs on startup HOT 1
- XHTMLImporterImpl can't handle converting custom data attributes for br tags to xhtml
- FileInputStream is not closed, causing the image to not be deleted HOT 1
- Unable to generate Flat XML for docx containing a diagram
- 🚨 New namespace "w16du" was added in the upcoming office update HOT 4
- using VariablePrepare.prepare won't prepare all variables correctly
- ignore namespace w16du not in namespaces list HOT 2
- Add html type content inside content control HOT 1
- Docx4J.toPDF(...) fails on links without destination
- css style: overflow-wrap: break-word didn't work when export to pdf
- java.lang.ClassNotFoundException: com.plutext.merge.DocumentBuilder HOT 1
- fontbox 3 版本升级 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docx4j.