質問

I am converting docx to pdf which works fine. But the problem is it misses the formatting the document. How to ensure the formatting such as [bold, tablets etc]] are not lost while converting.

I am using docx4j for conversion.

Below is the exception I am getting

NOT IMPLEMENTED: support for w:ptab -
NOT IMPLEMENTED: support for w:ptab -3
NOT IMPLEMENTED: support for w:altChunk -
NOT IMPLEMENTED: support for w:altChunk -
NOT IMPLEMENTED: support for w:altChunk -
NOT IMPLEMENTED: support for w:altChunk -
NOT IMPLEMENTED: support for w:altChunk -
NOT IMPLEMENTED: support for w:altChunk -
役に立ちましたか?

解決

ptab: as it says, there is currently no support for the ptab element. Its not commonly used. You can either remove it from your docx, or we could look at adding support for it to docx4j.

altChunk: these need to be preprocessed into "real" docx content for docx4j's PDF output. If the altChunk is of type XHTML, docx4j can do that. If it is a docx altChunk, the Enterprise Edition is required. There are other types of altChunks, which you should avoid if you want to convert to PDF...

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top