Cfdocument and coldfusion 8
cfdocument is working fine when i use "flashpaper".
Then i've been trying to create a "PDF", and I just cannot
get it to work.
Nothing to display in browser.
<cfdocument format="pdf">
<h1>PDF Generation</h1>
<hr />This is an example of PDF generation using
ColdFusion 7.
</cfdocument>
1) My pc have acrobate 7.0 professional.
Your arguments require more specifications try:
<cfdocument fontembed="true" format="pdf"
backgroundvisible="true" filename="#expandPath('.')#\test.pdf"
pagetype="letter" >
<h1>PDF Generation</h1>
<hr />This is an example of PDF generation using
ColdFusion 7.
</cfdocument>
Similar Messages
-
How do I save a file to a server using flex and coldfusion?
How do I save a file to a server using flex and coldfusion?
On the CF side I might need to use this:
<cffile action="UPLOAD" filefield="Filedata"
destination="#expandpath('..\somepath)#"
nameconflict="overwrite">
And on the flex side I might need to use something like this:
var sendVars:URLVariables = new URLVariables();
sendVars.action = "upload";
var request:URLRequest = new URLRequest();
request.data = sendVars;
request.url = _strUploadScript;
request.method = URLRequestMethod.POST;
_refUploadFile = new FileReference();
_refUploadFile = _arrUploadFiles[_numCurrentUpload].data;
_refUploadFile.addEventListener(ProgressEvent.PROGRESS,
onUploadProgress);
_refUploadFile.addEventListener(Event.COMPLETE,
onUploadComplete);
_refUploadFile.addEventListener(IOErrorEvent.IO_ERROR,
onUploadIoError);
_refUploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
onUploadSecurityError);
_refUploadFile.upload(request, "file", false);
I just don't know how to put it all together in Coldfusion.try this...
http://cf-creations.co.uk/blog/index.cfm/2008/9/20/Flex--File-Upload-Form--Part-One--Build ing-The-Initial-Form -
Stored procedure and coldfusion.
Hi all,
My query is related with Oracle and coldfusion. I have got to write a stored procedure for updating a table. In this I have to raise an exception if the field i give for does not exist. Can anyone give an example code for this? I also want to know how it is called in a cfm page.
Following is the stored procedure i have written
create or replace package group_pack
as
procedure group_update
pt_group_id in group.group_id%type,
pt_group_name in group.group_name%type
end;
create or replace package body group_pack
as
procedure group_update
pt_group_id in group.group_id%type,
pt_group_name in group.group_name%type
as
begin
update group
set group_id = pt_group_id,
group_name = pt_group_name
where group_id = pt_group_id;
exception
when no_data_found then (what to code)
end;
end;
In this in the (what to code) part i tried returning zero...but then procedures do not return values. Then I tried to RAISE exception, which also showed error.
Also in the cfm page what should be done with the <cfstoredproc> </cfstoredproc>tags. How should it be reflected.....
Please do give a solution to my problem.....
Thanking in advance....
Regards,
Aswathy.Hi Aswathy,
Can you please tell, what error it gave when you had written RAISE command? I think, this is a better choice if you do not want to do anything else like inserting a row with the missing value.
regards,
Archana
http://justoracle.blogspot.com/ -
SQL Server 2005 and ColdFusion 7
Hi all,
I am using SQL Server 2005 and ColdFusion 7 (standalone) on
XP 64 Bit. I was using the exact setup a couple of weeks ago, but
had to reinstall my O/S due to hardware problems so am back to the
beginning. I remember having a nightmare setting datasources up in
the past, but did manage to find a solution.
I have tried the following:
SQL has TCP/IP Enabled
SQL is set to Mixed Authentication
SQL has a login set to the same as my Windows Username and
password
My database has a user (dbo) by the same name as the login
set in SQL
When I add a datasource in the administrator I enter the
windows username and password (I have tried without either as
well), the server name as localhost and the port as the default
1433.
I always get the following error:
Connection verification failed for data source: DATABASENAME
java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver]Error establishing socket. Connection refused: connect
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver]Error establishing socket.
Connection refused: connect
Can someone offer any advice? This is driving me proper nuts.
TIA,
Paulwhen i did it, i had to update my jdbc driver
http://msdn.microsoft.com/data/ref/jdbc/ -
Anyone know how to gernerate CRUD applications with flex and coldfusion?
Anyone know how to gernerate CRUD applications with flex and
coldfusion? I am working with a remote coldsfusion installation
with MS SQL and I don't have RDS.You might investigate "squidhead". It is CF based. I'm not
sure if it has any Flex related features.
http://squidhead.riaforge.org/ -
Adobe Actionscript 1.0 and Coldfusion 8
Hi ,
We are using actionscript 1.0 in our application and as the middle tier we are using Coldfusion MX 7. Now our web applications are working fine.If we upgrade MX 7 to Coldfusion 8 will this integration work fine. Is there any known issues integrating actionscript 1.0 and coldfusion 8.Please helpAS1 !?! So I suppose that you're doing SOAP calls or XML over HTTP ? In that case, there's no compatibility issue between 7 and 8: "ColdFusion MX (6.0, 6.1, and 7) applications should seamlessly migrate to ColdFusion 8."
Hope it helps,
Cyril -
New Coldfusion Server Setup in Flashbuilder and Coldfusion Builder not working
I have not found the combination for adding a new Coldfusion Server in Flash Builder 4.7 or Coldfusion Builder 2.01 with Coldfusion 10. I am running windows 7 64bit. on IIS 7. Coldfusion 10 is running fine.
All was well with Coldfusion 9 Flash Builder 4.6 and Coldfusion Builder 2.0.
Local Server Settings for CF9 were
Server Home C:\Coldfusion9
Document Root C:\inetpub\wwwroot
Version: 9.0.x
Now as soon as I put in C:\Coldfusion10 or C:\Coldfusion10\cfusion I get an error "Server home is not valid".
Any hints on getting this going.Hi Jeff,
Can you let us know the directory location for wwwroot on your system.
jeffcg2 wrote:
That does not work. As soon as I put C:\ColdFusion10\cfusion in the Server Home I get the error Server Home Invalid. I have uninstalled Coldfusion 10 and re-installed added the latest updates. Coldfusion 10 is working fine running on IIS 7.
Not necessarily. As soon as you select the "cfusion" location, it would automatically pick the wwwroot location.
jeffcg2 wrote:
With Coldfusion 10 , since you have C:\ColdFusion10\cfusion\wwwroot. as the Document root will this only work if you install the included web server?
Regards,
Anit Kumar -
Updating JVM (using IIS and Coldfusion)
I recently created my first java class and compiled it using
the new java SDK. I Registered my new CFX Tag and now I get this
error "500 HelloColdFusion (Unsupported major.minor version 50.0)"
when trying to access it in my .cfm test page. I read that this is
because I used a new version of JVM to compile the class and the
jvm coldfusion has installed is older. How do I update coldfusion
to look at the new jvm ?This fixes ERROR "Unsupported major.minor version 49.0" and
"Unsupported major.minor version 50.0" on my Windows Server 2003
SP1 and Coldfusion MX 7.02 system.
1. Make sure the ColdFusion service is stopped.
2. Download JRun4 Updater from
http://www.macromedia.com/support/jrun/updaters.ht...
jrun4-win-en-updater.exe
3. Install JRun4 Updater into the runtime folder of your
ColdFusion install directory.
C:\CFusionMX7\runtime
4. Download and install Java JDK 1.5 (
jdk-1_5_0_11-windows-i586-p.exe )
5. Open both jvm.config files found in these directories:
C:\CFusionMX7\runtime\bin
C:\CFusionMX7\runtime\updater6-backup\bin
6. Find the line that sets the java.home property under the
"VM Configuration" heading ( change
"java.home=C:/CFusionMX7/runtime/jre" to "java.home=C:/Program
Files/Java/jdk1.5.0_11/jre" in both files.
7. Restart coldfusion.
I hope this saves you all time. -
Spry and ColdFusion :: Improve Performance By Cutting Out ColdFusion
Another in my series of Spry and ColdFusion Articles:
http://www.infoaccelerator.net/client/index.cfm/2006/10/17/Spry-and-ColdFusion--Improve-Pe rformance-By-Cutting-Out-ColdFusionAndy,
Good subject.... I don't use CF, but I understand your
motivation to write the article - which to me underlines the sub
structure issues involved with using a front end xml technology
such as spry. I personally don't have much to say about spry
because I think the core of it works brilliantly, any improvements
are a bonus to me - don't flame me for this but I am not interested
in widgets and effects - the core data manipulation is what floats
my boat.
It would be even more brilliant if adobe could contribute to
the ‘spry package’ useful information about managing
XML data on the backend – I realise this would be broad - I
don’t really know how it would be approached. This would give
us 'designers' some confidence in building the applications we
choose - don't ask me specifically what that entails (if I knew I
would do it myself) – to my mind there is a lot more to the
power to spry than front end effects to display data if coupled up
with good backend coordination – although the effects
solutions are good - I am not knocking the effects etc… I am
simply supporting the above fore-mentioned article as a cause for
interest when developing with spry.
Andy -
Any good tutorials for using jQuery and ColdFusion to build mobile apps
Does anyone know of any good tutorials for using jQuery and ColdFusion to build mobile apps?
Thanks!
LeeI was just this moment looking at this website http://jquerymobile.com/
Then for you a Google search on Jquerymobile and coldfusion
http://www.google.co.uk/search?q=jquerymobile+and+coldfusion&ie=utf-8&oe=utf-8&aq=t&rls=or g.mozilla:en-GB:official&client=firefox-a
http://jquerymobile.com/resources/
Brings me onto this tutorial
http://www.raymondcamden.com/index.cfm/2011/8/26/Making-jQuery-Mobile-templates-even-easie r--with-ColdFusion -
Digital Signatures and Coldfusion
I want to add a digital signature field (3 to be exact) to a PDF file that I
generate via coldfusion (via the cfdocument tag), OR use a form built in livecycle that once it is signed by the first person, the only allowable changes to the form are the second and third digital signature.
Any help would be appreciated as digital signatures are not handled in cfdocument as well (at all) as I had hoped.
Thanks,
DrewHello Francesco,
I want to generate a digital signature (PKCS#7,XML) using SAP SSF API as explained in
http://help.sap.com/saphelp_nw04/helpdata/en/4f/65c3b32107964996a56e4165077e24/content.htm and in Amol Joshi's reply in
Digital Signatures and Document Encryption api
so my question is From which PI/XI version and its SPS this SAP SSF LIBRARY is supported ?
Kind Regards,
Kubra fatima. -
CFDocument and trouble converting to pdf
Hello,
I'm simply trying to convert a word doc to .pdf using CF9. But when I try it, I get the following error...
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Also, coldfusion services seem to go down for a few moments (i can't render any coldfusion pages on the server) and then after a few moments the CF services are back.
What could be causing this???
Here is the simple code I am using...
<cfdocument format="pdf" srcfile="\\srvTestServer\wwwroot\officetopdf\worddocs\Infograms Inventory.doc" filename="\\srvTestServer\wwwroot\officetopdf\pdfdocs\test.pdf"></cfdocument>
Now if I take out the srcfile section of the tag and hard code text into the cfdocument, it works with no problem???
example
<cfdocument format="pdf" filename="\\srvTestServer\wwwroot\officetopdf\pdfdocs\test.pdf">This is a test message for my pdf file</cfdocument>
I hope someone can shead some light on this?
Thanks In Advance,
Cedric GainesIs OpenOffice installed on your machine? I believe this is a requirement to work with Word files in CF9.
Office file interoperability
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS56EA2935-FBD2-4089-8402-FDDA2BAF55 FB.html
Configuring OpenOffice
http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WS899EE911-747B-45cf-8550-DC91238233 64.html -
Cfdocument - Save ColdFusion Report to RTF without save prompt
I am attempting to save a Coldfusion report directly to an RTF file. The following example creates a RTF file but with the SAVE PROMPT windows. Is there a way to by-pass the save prompt window and save directly to RTF file?
<cfdocument format="rtf">
SitePoint.com - Introduction to ColdFusion 7
<h1>PDF Generation</h1>
<hr />
This is an example of PDF generation using ColdFusion 7.
</cfdocument>
Thanks Alexhttp://forums.ni.com/t5/LabVIEW/Save-Report-to-File-vi-does-not-work-when-built-into-executable/td-p...
-
I am trying to get ColdFusion to use our Frutiger Roman fonts
which are in a PFM format.
The windows 2003 server sees them fine and the fonts work in
all windows software on the server but they do not show up when
publishing a PDF from cfdocument. Any ideas anyone?
I tried adding them to the cffont.properties document but got
the error message...
The cause of this exception was that:
coldfusion.document.spi.DocumentExportException:
coldfusion.document.DocumentFontException: An exception occurred
when reading the font file c:\windows\fonts\FrutiR94.pfm The cause
of this exception was that: java.awt.FontFormatException:
Unsupported sfnt C:\WINDOWS\TEMP\xxx.tmpAmplicon wrote:
> You would have thought as the fonts are a proprietary
specification of Adobe
> that ColdFusion would support them, then again if we
have to buy the fonts
> again, well that's more money for Adobe...
cfdoc is mainly driven by iText nothing to do w/selling more
fonts.
as far as supporting more font formats:
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=12&6213=6 -
Hi All,
I have been searching this forum and looking this topic up in Google but I am still a bit foggy.
Is it possible to allow a PDF to have "fillable" fields once it has been generated using the <cfdocument> tag?
I have a PDF that is generated by a user via some formfields and database queries, this works great but I needed to have some areas that can be filled in by the user once the PDF has been generated.
I didn't know if there was some trick to add blank form fields to the HTML before <cfdocument> does it's magic or something like that?
Thanks in advance for any help.No, <cfdocument...> is really used just to create a static PDF from static HTML or other simple content.
If you want to go beyond that, you will need to go to more sophisticated techniques: <cfpdf...>, DDX, and maybe the underlying Java.
This is a the first page of an eight page good blog post that gives a nice overview of the range of ColdFusion PDF tools.
http://www.coldfusionjedi.com/index.cfm/2007/7/9/ColdFusion-8-Working-with-PDFs-Part-1
Maybe you are looking for
-
How to enter a specific view size
I'm brain dead for some reason. Where do you type in a value if you need to see the page a specific size? I want to view at 137% which I think is equal to actual size. I know if CS4 it was at bottom left but I can't find it in 5.
-
Hello Experts, We have an adobe plugin(importing data from excel to pdf form )developed in older version , when migrated to version8.x.x, While importing "Adobe Acrobat 8.1 has encountered a problem and needs to close. We are sorry for the inconvenie
-
Change a string into a different format
How do I convert this CN=zeeeComputerName,OU=cars,OU=sales,OU=employees,OU=Desktop,DC=carplace,DC=com to this carplace.com/desktop/employees/sales/cars/zeeeComputerName
-
I have to complete this file in Flash 5, but the action script is being weird. When exported and viewed as a swf. file online, the links bring up new pages where the whole page is a link to another page. My action scrips is simply this: on(release){
-
Where can i download official 64 bit version even if it is beta etc
Where can i download official 64 bit version even if it is beta etc I am using win 8.1 64 bit and i can say that every application i develop as 64 bit on c# works better on this os so i want to try out 64 bit firefox as well