Skip to content

foryforx/docxtopdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docxtopdf

golang docx to pdf convertor and S3 package

  • Packages dependent on aws sdk go: https://github.com/aws/aws-sdk-go
  • For PDF generation, since libreoffice/soffice is sequential,we use collector, dispatcher and worker model to run things in sequence
git clone https://github.com/karuppaiah/docxtopdf.git
cd docxtopdf
dep ensure // make sure https://github.com/aws/aws-sdk-go is installed
apt-get install -y libreoffice // If linux env else install libreoffice for mac and put the executables in env PATH
go run main.go // will show a sample of S3 put, pull and del and also main1() for worker,dispatcher and collector pdf generator. Enable the respective main and view the sample


#TODO

  • Unit testing for S3 repository
  • Unit testing for collector, dispatcher and worker pdf generator