• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

<cfpdfform>.. How to force the PDF into a new browser window?

Community Beginner ,
Sep 09, 2011 Sep 09, 2011

Copy link to clipboard

Copied


Hey all,
     I'm using ColdFusion 8 and the <cfpdfform> object to create an xml document and then write the data to fields in an existing PDF file on our intranet.  The problem is that I need the PDF to open in a new browser window, not the same browser window, which is what is happening now.

Is there any additional info I can pass along with the 'destination=' tag to force the PDF form to open in a new browser window?  Or is it possible to add a Javascript function somewhere in the .cfm such that when the <cfpdfform> pushes the data to the pdf its already open in a new window, maybe from a window.open() function?  I'd really prefer if the functionality was available somewhere through the <cfpdfform> tag but I'll take what I can get.

Thanks in advance for all replies,

Dr. Johnny Fever

TOPICS
Advanced techniques

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 24, 2012 Apr 24, 2012

Copy link to clipboard

Copied

LATEST

Hello,

You can either use

<embed src="file.pdf" />

or, alternatively, my new plugin, PIFF: https://github.com/terrasoftlabs/piff

Peace,

Gabriel Nahmias

Terrasoft

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation