Page 1 of 1

where is the file "fig1.pdf" for the AddImage example?

PostPosted: Sun Mar 21, 2010 8:38 pm
by debarcar
Hi Jason,

In the AddImage example, File file = new File("/home/dev/lanl/testing/fig1.pdf" ); How can I get this file?

Thanks and Best Regards!

debarcar

Re: where is the file "fig1.pdf" for the AddImage example?

PostPosted: Sun Mar 21, 2010 11:21 pm
by jason
Hi debarcar

If you are specifically interested in conversion/adding of a pdf, pls substitute a pdf of your own for that.

If you are interested in adding another image type, you can substitute that instead. That pdf file is not supplied as part of docx4j, it is merely an example.

cheers .. Jason

Re: where is the file "fig1.pdf" for the AddImage example?

PostPosted: Mon Mar 22, 2010 2:18 pm
by debarcar
Hi Jason,

If the testing file also included in the "sample-docs" folder, it would be perfect...

The ContentTypeManager.java and FlatOpcXmlImporter.java have compile error in my environment for:
import org.docx4j.openpackaging.packages.PresentationMLPackage;
import org.docx4j.openpackaging.parts.PresentationML.JaxbPmlPart;

Have I miss these two class?


Thanks and Best Regards!

debarcar

Re: where is the file "fig1.pdf" for the AddImage example?

PostPosted: Mon Mar 22, 2010 7:38 pm
by jason
In addition to your main source path, you need:
Code: Select all
            <src path="src/diffx"/>
            <src path="src/pptx4j/java"/>
            <src path="src/svg"/>


cheers .. Jason

Re: where is the file "fig1.pdf" for the AddImage example?

PostPosted: Tue Mar 23, 2010 2:45 pm
by debarcar
It's all ok now...Thanks a lot!