Skip to content

pageseeder/pso-aspose

Repository files navigation

aspose

Aspose cloud API

To run AsposeWordsTaskTest create a pso-aspose-ant/aspose.properties file containing

clientid=
clientsecret=
#baseurl=

with values generated by creating an application on https://dashboard.aspose.cloud/

To use the ANT AsposeWordsTask in a PageSeeder project to convert a DOCX file to PDF the pso-aspose-ant-x.jar and the libraries it depends on must be manually uploaded to the project template in PageSeeder. This is because the javax.mail library used by Aspose clashes with jakarta.mail used by PageSeeder.

To do this run the publishing.copyToLib gradle task under the pso-aspose-ant module and upload the files under pso-aspose-ant/build/output/lib to a lib folder where your build.xml file is in PageSeeder.

Your build.xml will need similar to the following commands to run the task:

<property file="aspose.properties" />
<path id="aspose.classpath"><fileset dir="${basedir}/lib"><include name="*.jar" /></fileset></path>
<taskdef name="aspose-words" classname="org.pageseeder.aspose.ant.AsposeWordsTask" classpathref="aspose.classpath"/>
<aspose-words src="[DOCX file path]"
              dest="[PDF file path]"
              clientid="${aspose.clientid}"
              clientsecret="${aspose.clientsecret}"
              updatefields="[true|false]"
              baseurl="${aspose.baseurl}"/>

where aspose.properties contains aspose.clientid= and aspose.clientsecret= generated by creating an application on https://dashboard.aspose.cloud

Attribute updatefields is optional and will update fields in the docx such as table of contents. Attribute baseurl is optional and can be used if hosting aspose locally (e.g. aspose.baseurl=https://aspose.example.org )

For information on Aspose Words Cloud see https://products.aspose.cloud/words/java/

For support see https://forum.aspose.cloud/c/words

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
LICENSE_ASPOSE

Stars

Watchers

Forks

Packages

No packages published

Languages