Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).

New Forum | Previous | Next | (P-PDF) Developers

Topic: Handling 'smart quotes' from pasted MS-Word docs on form submit
Conf: (P-PDF) Developers, Msg: 129104
From: cozzifantutti
Date: 3/10/2005 06:14 AM

have an Acrobat 5 PDF form that is submitted by calling the "this.submitForm()" method. I'm submitting this way because I'm passing a web server variable into a hidden field on the form so that I don't have to change the web server in the submit every time I migrate from our development to production server.

The form is submitted to a Cold Fusion action page.

The problem comes in when there is text that is pasted in from a Microsoft Word document that contains "smart quotes"; i.e. curly single- or double-quotes.

For a standard HTML [textarea], I can just replace the Ascii value of 8216, 8217, 8220, and 8221 with the appropriate Ascii value for the straight quotes (39 or 34). But the Acrobat submit seems to do something different. I get something that looks like this: �.

As a test, I tried an fdf export of a field with this type of entry, and it exports the "smart quotes" as follows:

left curly double quote = \215
right curly double quote = \216
left curly single quote = \217
right curly single quote = \220

But I have to use the HTML export. I would think it would handle them the same way as an HTML text area would, but obviously Acrobat is doing something to them once they're in the PDF file.

Can someone please tell me what I need to trap for in looking at what this function exports? Then it would be an easy matter to substitute the straight quotes. Thanks.

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Five visions of a PDF Day

In the world of PDFs or as we like to say Planet (of) PDF, a year isn't a real PDF year without an intense few days of industry knowledge sharing.

May 15, 2018
Platinum Sponsor

Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.


Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.