Copy link to clipboard
Copied
I have a document library of hundreds of Word docs. Due to a third party extension that we are using to create these Word docs, it can take a long time to open them. I know, ditch the third party app - if only it were that simple.
Anyhow, one feature we have is in the footer of the document it let's people know the document is only valid for the date printed and it shows the date. This way each time it's opened, it has the current date.
Can I have cf9 convert these on click? I have a table of contents that displays the files.
<a href="sops/#sops_title_pk#.#Trim(SOPs_title_ext)#" target="_blank">#Trim(Sections.SOPs_manual_prefix)#.#SOPs_title_section#.#SOPs_title_number#.#SOPs_title_revision#</a>
Thanks
Copy link to clipboard
Copied
Cfdocument is for creating PDF or Flashpaper documents, not Word docs.
Copy link to clipboard
Copied
Sorry, I was unclear, I use cfdocument a lot to create pdf's from the database.
I have a lot of Word docs, I'd like those converted to pdf's when the user clicks a link referencing the Word doc. Right now, it opens the Word doc, but as I mentioned, we have a third party app installed that is making our Word difficult to work with.
Thanks again
Copy link to clipboard
Copied
Yes, you can use cfdocument to convert a word doc to a pdf, something like this:
<cfdocument format="pdf" srcfile="C:\word.doc" filename="C:\new.pdf"></cfdocument>
It does require that the OpenOffice integration is setup on your server (CF9+)