For generating PDF using Aspose, you must check the system font settings. If system fonts are installed, start the configuration settings from step 2.
-
System fonts are installed by default in windows operating system. To check the
availability of system fonts on Linux operating system, navigate to the below
location:
/usr/share/fonts
If system fonts are not available, do the following:
-
Install libmspack rpm package.
- Download the latest
libmspack-0.5-0.1.alpha.el6.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/
Packages/l/libmspack-0.5-0.1.alpha.el6.x86_64.rpm
- Install the
rp
rpm –ivh libmspack-0.5-0.1.alpha.el6.x86_64.rpm
-
Install cabextract rpm package.
- Download the latest
cabextract
wget http://dl.fedoraproject.org/pub/epel/6/x86_64
/Packages/c/cabextract-1.5-1.el6.x86_64.rpm
- Install the rpm
package
rpm –ivh cabextract-1.5-1.el6.x86_64.rpm
-
Install Microsoft ttf rpm package
- Download the Microsoft ttf
rpm
wget http://nchc.dl.sourceforge.net/project/mscorefonts2
/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
- Install the rpm
package
rpm –ivh msttcore-fonts-installer-2.6-1.noarch.rpm
-
To enable or disable PDF generation for reports, follow these steps:
-
Add or edit this line in the file used to import properties into a page object:
enoTemplate.RenderPDF = True
-
Specify the value for this property depending on your business
requirements:
- True = Report is generated in the pdf format.
- False = Report is not generated in the pdf format.
- To generate the PDF, add or edit this line:
enoTemplate.RenderPDF.BuiltIn = True
Note:
The default value is true. To generate PDF using Adlib, set the value as false.
- To configure the mail settings, do the following: