Skip to content

DevExpress-Examples/office-file-api-dockerize-application-chiseled-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevExpress Office File API - Generate and Convert Documents in a Chiseled .NET Docker Container

This example uses DevExpress Office File API to generate a DOCX document and save it to a PDF file. The project is designed to run in a Linux chiseled runtime image (aspnet:10.0-noble-chiseled-composite-extra) and demonstrates the following actions:

  • Uses the DevExpress Office File API in a container
  • Uses the Skia drawing engine (DevExpress.Drawing.Skia)
  • Registers custom .ttf fonts from the app directory
  • Streams binary PDF output through standard output

Build and Run with Docker

Build an image:

docker build -f CS/Dockerfile -t chiseled-docx2pdf CS

Run conversion (PDF is redirected to the host file):

docker run --rm chiseled-docx2pdf CS/fontTest.docx > out.pdf

If your input file is outside the image, mount a host folder and pass the mounted path.

Files to Review

Documentation

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Dockerize an .NET Console application in a chiseled docker image. The application uses the Office File API library to convert Word documents to PDF.

Topics

Resources

License

Stars

Watchers

Forks

Contributors