Page 1 of 1

Set an CTAltChunk(HTML) cection to LANDSCAPE ?

PostPosted: Fri Sep 13, 2013 12:41 am
by RayCast
Hello everybody

I'm using docx4j-2.8.1.10 for a Dynamic Word Documents Manager App.
I'm inserting the document text via CTAltChunk(HTML), but in some cases I need to set the orientation to LANDSCAPE for some pages.

Can you get me a TIP to resolve this problem?

Thank's in advance!!!


Regards, Ray

Re: Set an CTAltChunk(HTML) cection to LANDSCAPE ?

PostPosted: Fri Sep 13, 2013 9:18 pm
by jason
I guess the ideal way would be to support CSS Paged Media @page rule in the XHTML Import

Alternatively, you could extend JaxbXmlPartAltChunkHost

Either way, ultimately you end up with it set in sectPr's setPgSz.

PgSz has: public void setOrient(STPageOrientation value)

(Run a docx with landscape formatting through the webapp, to see generated code)

Re: Set an CTAltChunk(HTML) cection to LANDSCAPE ?

PostPosted: Mon Sep 16, 2013 11:11 pm
by RayCast
Thank you Jason

I solved the problem.


Regards, Ray