This guide explains how to get a Microsoft Word document or PDF into RMS as a Form Letter, and why you can't copy and paste it straight in.
Why can't I copy and paste a Word document into a Form Letter?
Copying a Word document or Portable Document Format (PDF) file and pasting it straight into a Form Letter brings Word's formatting with it. The letter ends up with extra blank lines and spacing, images at their full size and flag icons where Word had bookmarks and other inconsistent formatting, and each of these has to be fixed by hand. If you have already pasted a document and can't fix the formatting, start again in a new Form Letter using the steps below.
To get a Word document or PDF into a Form Letter without these problems, save it from Word as a web page first, then paste the web page's HyperText Markup Language (HTML) code into the Form Letter:
- Save the document in Microsoft Word as a filtered web page. A PDF opens in Word first.
- Open the saved file in Notepad and copy all of the code.
- Paste the code into the Form Letter editor's Source view.
The Form Letter now shows the document's headings, paragraphs, lists and tables. You then add any images again and replace guest details, such as their name, with Merge Fields.
Before you convert a document into a Form Letter
Before you start converting a Word document or PDF into a Form Letter, you need the following:
- A Security Profile with access to Setup > Correspondence > Form Letters.
- Microsoft Word and Notepad on a Windows computer. Word can also open a PDF: it makes a copy of the PDF and converts the copy into a Word document, so the original PDF is not changed.
- A decision on how the letter will be sent. A Form Letter sent as HTML becomes the body of the email, and a Form Letter sent as PDF is attached to the email. See HTML vs PDF Form Letters.
Please Note! Word converts PDFs that are mostly text best. If a PDF is mostly charts or other graphics, Word might convert a whole page into a single image, and the text on that page cannot be edited. See Microsoft's Opening PDFs in Word.
Tip! To send a PDF exactly as it is, without converting it, attach the PDF to the email when you send a Form Letter from a reservation. See Form Letter Attachments.
How to save a Word or PDF document as a web page
Saving a Word document or PDF as a filtered web page in Microsoft Word creates an .htm file of HTML code that you can paste into a Form Letter.
- Open the document in Microsoft Word. For a PDF, open Word, select File > Open and choose the PDF, then select OK when Word says it will convert the PDF.
- If you opened a PDF, check the converted document and correct any text or layout that has moved. A converted PDF might not look exactly like the original.
- Select File > Save As.
- Choose the folder to save the file in, and make a note of where it is.
- In the file type list, select Web Page, Filtered (*.htm, *.html).
- Select Save.
- When Word warns that saving in this format will remove Office-specific tags, select Yes.
The document is now saved as an .htm file in the folder you chose. If the document has images, Word also creates a folder with the same name ending in "_files" that holds the images.
How to copy the web page code from Notepad
Notepad opens the .htm file as plain HTML code, so you can copy all of the web page code and paste it into the Form Letter.
- In File Explorer, go to the folder where you saved the .htm file.
- Right-click the .htm file and select Open with > Notepad.
- In Notepad, press Ctrl+A to select all of the code.
- Press Ctrl+C to copy the code.
The whole web page code, from <html> at the top to </html> at the bottom, is now copied and ready to paste into RMS.
How to add the converted document to a Form Letter in RMS
The Form Letter editor's Source view accepts the HTML code copied from Notepad and shows it as a formatted letter when you leave Source view.
In the side menu of RMS, go to Setup > Correspondence > Form Letters.
- Select Add (+).
- Select the Send As format: HTML or PDF.
- Enter a Description. This is the name users see in the Form Letter list.
- Enter the email Subject.
- In the editor toolbar, select Source.
- Click in the editor, then press Ctrl+V to paste the code copied from Notepad.
- Select Source again to see the letter.
- Add Merge Fields where the letter needs guest or reservation details: select a Merge Table, place the cursor in the letter, then double-click the Merge Field. See the Merge Field Glossary.
- Select Save/Exit.
- In the Allow Letter Access window, select Include.
- Select the tick icon to save the letter.
RMS saves the Form Letter and adds it to the Form Letter Setup list with its Send As format, such as HTML. Users can now select the letter when they send correspondence. If you leave Exclude selected, the letter is not added to any Security Profile, and users cannot select it. To change which Security Profiles can use the letter, see User Access to Form Letters.
What to check in a converted Form Letter
A Form Letter converted from a Word document or PDF needs these checks before you send it to guests:
- Images: each image from the document shows as a broken image because the web page code points to the image files in the "_files" folder on your computer. Delete each broken image, then add the image again with the Image icon and choose Upload. See Insert an Image into a Form Letter.
- Merge Fields: text that should change for each guest, such as a name or an arrival date, is still plain text from the document. Replace it with Merge Fields (step 8 above).
- Appearance: select Preview, the page-and-magnifying-glass icon beside Source, to open the letter in a new browser window and check it without emailing it.
Troubleshooting a converted Form Letter
Two problems can appear in a Form Letter converted from a Word document or PDF. The sections below give the cause and the fix for each one.
Why do symbols such as � appear in place of apostrophes, dashes or bullets?
A question mark in a diamond (�) appears in a converted Form Letter when Word saved the web page in a Windows encoding (Windows-1252), and Notepad read the file as Unicode in the 8-bit Unicode Transformation Format (UTF-8). Apostrophes, quotation marks, dashes and bullet points are the characters affected. To fix the symbols, save the document as a web page again with Unicode (UTF-8) encoding:
- In Word, select File > Save As, then select More options... below the file type list to open the Save As window.
- In Save as type, select Web Page, Filtered (*.htm;*.html).
- Select Tools > Web Options...
- On the Encoding tab, in Save this document as, select Unicode (UTF-8) in place of the default, Western European (Windows). Then select OK.
- Select Save.
- Copy the code from Notepad again, and paste it into the Form Letter's Source view in place of the old code.
When you select Source again, the apostrophes, quotation marks, dashes and bullet points now appear correctly in the Form Letter.
Why does some text show in italics in the Form Letter editor?
Text shows in italics in the Form Letter editor and in Preview when Word has marked that text with a different language from the rest of the document, for example, English (United States) text in an English (Australia) document. The editor shows language-marked text in italics, but the saved Form Letter does not contain italic formatting. To show the text normally in the editor, set the whole document to one language in Word before you save it as a web page:
- In Word, press Ctrl+A to select all of the text.
- On the Review tab, select Language > Set Proofing Language.
- Choose one language for the document, then select OK.
- Save the document as a web page again, then copy and paste the new code into the Form Letter's Source view.
When you select Source again, the text now appears in its normal style in the Form Letter editor.
Comments
0 comments
Please sign in to leave a comment.