Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating a PDF document based on a Microsoft Word Template [closed]

I need to take a Word document that is a template of sorts...collect user input to populate specific fields in that template..then generate a PDF file that includes the completed template as well as a few other document types. Does anyone have a good suggestion on a component to achieve this? Preferably one that does not require Microsoft Office to be installed on the web server.

like image 810
Tyler Avatar asked Sep 17 '08 17:09

Tyler


People also ask

Is it possible to create a PDF File out of Microsoft Word?

You can use Word, PowerPoint, and OneNote for the Web to convert your doc into a PDF. Select File > Print > Print (in PowerPoint you will select one of three formats). In the dropdown menu under Printer , select Save as PDF and then select Save.

What happens when you save a Word document as a template?

Select Word Template from the list. If you're saving it locally to your computer, Word automatically changes the location to the Templates folder. Saving to the Templates folder will make it easy to find the template in the New Document menu, but you can select a different location if you would prefer. Click Save.

How do I convert Word to PDF and keep formatting?

The latest versions (after MS Office 2007) allow you to save the document as a pdf, thus avoiding formatting errors. Go to Files->Save As and select ". pdf format" from Save As Type. Click to save.

How do I convert a template to a PDF?

Add PDF merge templates to the FileHold library. Create a public saved search for the PDF converter templates. Configure the PDF converter settings in Library configuration > Settings > Workflow. Create workflow templates and configure options to convert to PDF.


1 Answers

Try Aspose Words for .net. From their website: "Aspose.Words enables .NET and Java applications to read, modify and write Word® documents without utilizing Microsoft Word." Utilizing Aspose Words with Aspose PDF permits you to output to PDF.

One thing you do NOT want to do is install MS Word on your production server. Loading those objects is SLOW and EATS memory. You won't be able to use the CutePDF Writer unless you also install MS Word on the server. Yeck.

like image 194
Robert C. Barth Avatar answered Nov 03 '22 01:11

Robert C. Barth