Skip to main content
Inspiring
May 18, 2010
Question

Working with .doc

  • May 18, 2010
  • 2 replies
  • 625 views

I am investigating options for a web based solution to combine 2 .doc files into one and ideally outputting them as PDF while maintaining the page numbering, formatting and embedding form fields....a tall order I know

I came across this example and have it working rtf + rtf --> 1 doc... but it's very slow.

http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/

I am wondering if there is a better way?

    This topic has been closed for replies.

    2 replies

    Inspiring
    May 19, 2010

    You might try using CFDOCUMENT to convert your doc files to PDF then use CFPDF to merge multiple PDFs into a single file.

    Alternately I can also recommend Aspose.  I have used their Words component for .NET projects, but you could use the Java version in CF.

    Using cfdocument
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS692D73AF-6338-495d-9E47-C2ECD8BF9307.html

    About assembling PDF documents
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec11e6d-7ffd.html
    codeshedAuthor
    Inspiring
    May 19, 2010

    Thanks!  I will have a look.  Unfortuately I am limited to

    CF7 for the project, but I could use asp or Java.

    Participating Frequently
    May 19, 2010

    I know our company uses Aspose.Words (http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx) to do this type of stuff.  I personally have not used it so I can't give you details on for sure if it will do what you want, but I know it has a lot of power.

    I haven't used CF9 and word docs though, so I don't know what power already lies in Coldfusion.  But I thought I would throw it out.

    Oh, and I will mention that Aspose.Words does not require you to have Word installed, which is a plus.