CFX_HTML2PDF Help

2002-11-08 Thread Frank Mamone
Can someone guide me on how to setup the java CFX_HTML2PDF tag in CFMX?

I never setup a java tag. There are so many calsses in the pacakage I'm not sure what 
to put where.

Thanks,

Frank Mamone

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



cfx_html2pdf

2001-07-20 Thread Trace

Hello

I am using cfx_html2pdf (the java version) and have it working except that
images do not show up in the pdf. Has anybody come across this before? I am
only converting a template with some text and an image but for the rest, I
am using the exact example code that came with the tag.
I set the
Java Virtual Machine Path= c:/jdk1.3.1/jre/bin/classic/jvm.dll
Class Path= c:/cfusion/java/classes
When installing JDK 1.3.1, I set the system paths (under control
panel/system/advanced) to the correct path (C:\jdk1.3.1\bin ).

If anyone has an idea about this I would greatly appreciate it. Below is
code used:

The page that gets converted:

A sample for HTML2PDF tag

This is a sample page for HTML2PDF custom
tag.
Sample text


A nice picture





*


The topdf.inc template:
*
http://"; & CGI.SERVER_NAME & CGI.SCRIPT_NAME>






 
  
*


The topdf.cfm template:
*
PDF Generator
 




 







*



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Anyone used cfx_html2pdf dll version?

2001-02-10 Thread jperlmutter

HTMLDOC works fine with ColdFusion, but you need to check couple things
first.
1. Make sure HTMLDOC.exe works fine with the static htm file.
 Create the htm on the harddisk.
 Use HTMLDOC.exe application to generate the pdf.
 Open the generated pdf with Adobe Reader.
 If Acrobat can't open the file or HTMLDOC crashes then check the
static htm file.
2. Validate the static HTML code. You can use ColdFusion(Tools, Validate
Document from the top menu) to validate the code. I found that 
sequence crashes HTMLDOC.exe version  1.8. You might find other cases where
HTMLDOC is not going to be able to create the pdf file. So, you need 100%
valid HTML. The browsers are very forgivingHTMLDOC is not.
3. Check the HTMLDOC documentation for the supported HTML tags.
4. Good luck.
Sample:

 
 


 
  //cfCode contains HTML static code.
  rv = cfCode;
  rv = REReplaceNoCase(rv,'
*','','ALL'); //  crashing HTMLDOC
  // add date and time to filename to solve "delete pdf file too
slow" problem
  uniqueKey = DateFormat(now(),"mmdd") &
TimeFormat(now(),"HHmmss");
  path   = gcPDFPath;
  // from setvars.cfm
  htmtempfile = path & 'f_' & Client.CFToken & '_' &
URL.RptID &  '_' & uniqueKey & "_pdf.htm"; // result of this tag
  pdffilename = 'f_' & Client.CFToken & '_' & URL.RptID &
'_' & uniqueKey & "_pdf.pdf"; // name of pdf file
  pdftempfile = path & pdffilename;
   // full path and name of pdf file
  cfCodetempfile = path & 'f_' & Client.CFToken & '_' & URL.RptID &
  '_' & uniqueKey & "_cfCode.htm"; // for debug purposes only. cfCode.
 
 
 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Anyone used cfx_html2pdf dll version?

2001-02-07 Thread Stuart Duncan


I have recently downloaded cfx_html2pdf, to convert an html page to a pdf. 
The DLL version, not the java one.
Everything seems to work fine, I cfhttp the page, cffile write it so it's 
static, and then run the cfx tag.

All goes well, no errors, however, there is no pdf file to be found.  I 
have read the documentation and all the documentation on the htmldoc.exe 
file as well, yet still can not seem to be able to get it to return a pdf 
file to me. And since it gives me no errors, I don't have much to go on.

So if anyone has used this, and run into similar problems, or might know a 
solution this problem, please help me out, before I pull the last few hairs 
I have out! :)

Stuart Duncan
MaracasMedia Inc.



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists