PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
This page provides the complete steps from launching the AMI in AWS Marketplace to having the service available.
Please prepare your LICENSE_KEY in advance.
For getting or purchasing your license, feel free to contact our sales team.
Allow at least:
22/tcp (SSH): Used for login, configuration, and operations (recommended to restrict source IPs)7000/tcp (HTTP API): Provides the external service (open as needed to the calling clients)Optional:
3306/tcp (MySQL): Decide whether to open it based on your access needs (if not required, it is not recommended to expose it to the public Internet)After the instance starts, log in via SSH:
ssh -i /path/to/your-key.pem ubuntu@<EC2_PUBLIC_IP>This AMI comes with Docker / Docker Compose pre-installed. You only need to modify the Docker Compose configuration file and start the service.
Docker Compose file path:
/var/www/compdf/docker-compose.ymlsudo vi /var/www/compdf/docker-compose.ymlReplace the following:
LICENSE_KEY: your LICENSE_KEYWith your actual License Key, for example:
LICENSE_KEY: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxSave and exit.
Docker / Docker Compose is pre-installed in the AMI. Run the following command to start the service:
cd /var/www/compdf
sudo docker compose up -dThis will start two containers:
compdfkit_processor: Conversion service (exposes port 7000)dbmysql: MySQL databasesudo docker psYou should see:
compdfkit_processordbmysqlsudo docker logs -f compdfkit_processorDatabase logs:
sudo docker logs -f dbmysqlStop:
cd /var/www/compdf
sudo docker compose downStart:
cd /var/www/compdf
sudo docker compose up -d