1

I have been working with documents4j library to convertdocx to pdf. But I want to convert only the first page of docx to pdf and store it. Where and how should I pass the arguments in order to convert only the first page?

Panda
  • 1,231
  • 18
  • 27
saibabu96
  • 11
  • 2

1 Answers1

0

Currently, there is no such option as it is not possible to communicate meta data to the transformers. You can write your own adapter, though where this would be possible by specifying a custom format.

Have a look at the MicrosoftWordBridge and how it is implemented. You will need to tweak the script that executes the conversion in order to make this happen.

Rafael Winterhalter
  • 42,759
  • 13
  • 108
  • 192