Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
gborgesbr #1
Re: FlashPaper and PDF
Yeah!
It only occurs with background -image tag and when I use <link rel ... >
reference for my CSS file.
If I copy the CSS code to the CFM file, the problem doesn't occur.... but I
don't want to copy the same CSS to all CFM files, if the CSS is the same for
all, so i prefer to use <link rel ... > tag
gborgesbr Guest
-
where is flashpaper?
Hello All, I had been using Macromedia Studio 8 and was able to convert documents to FlashPaper. Now that I am using Creative Suite 3 Web... -
flashpaper and divs
I'm having a really hard time trying to use Javascript to resize, set style.display to 'none', etc. I found a livedoc that mentioned that this may... -
Mac user cannot use flashpaper
I downloaded contribute 3.11 twice and still cannot find flashpaper as a printing option on any of my Office applications or non-Office... -
flashpaper
C:\Documents and Settings\Mvestel\Local Settings\Application Data\Macromedia\Macromedia FlashPaper\OfficeTemplates ... -
PDF, Quark, and Flashpaper
1. I'm trying to create Flashpaper files with selectable text in OS X from PDF files. Is this possible? 2. Also, I've been creating FlashPaper... -
Tom Jordahl #2
Re: FlashPaper and PDF
Make sure you have the CSS file included *inside* the cfdocument start/end
tags.
--
Tom Jordahl
Macromedia
Tom Jordahl Guest
-
-
-
gborgesbr #5
Re: FlashPaper and PDF
The code is something like this... In html file, when I open it , the image
appers correctly.
<!--- Code Example
<cfdocument format="pdf" backgroundvisible="yes">
<html>
<head>
<title>Example File</title>
<script src="/portal/scripts/portal.js"
type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/portal.css">
</head>
<body>
<div id="index">
</div>
</body>
--->
CSS File
#index {
margin : auto;
position : relative;
top : 8px;
left : 8px;
width : 750px;
height : 414px;
background : url('index.jpg') no-repeat 0px 165px;
text-align : left;
}
gborgesbr Guest
-
hokugawa #6
Re: FlashPaper and PDF
Where do you place your index.jpg file? If it on webroot directory, please try to specify url('/index.jpg') instead of url('index.jpg').
Thanks,
-- Hiroshi
hokugawa Guest
-
gborgesbr #7
Re: FlashPaper and PDF
The image file is in the right directory, like I said before. The CF's bug is
that, it doesn't follow the image when I use the link rel tag like:
<link rel="stylesheet" type="text/css" href="/portal.css">
If I put the same CSS code in the middle of the CFM page, it works, so it
isn't following the web standards, or am I wrong?
Someone could help me?
gborgesbr Guest
-
waver #8
Re: FlashPaper and PDF
to display the bg image try using this attribute in the cfdocument tag: backgroundvisible = 'yes'
waver Guest
-
-
jrunrandy #10
Re: FlashPaper and PDF
I know this is a long shot, but I googled for CSS references and looked at
three. All three of them did not enclose the URL value in quotes, so maybe try
changing url('index.jpg') to url(index.jpg) (or, as Hiroshi suggested,
url(/index.jpg)). Good luck.
jrunrandy Guest
-
gborgesbr #11
Re: FlashPaper and PDF
It doesn't work again.... I think that is a CFMX bug or something related.
And you?
I use a web standard validador and the page was correct in following the
standarts. It only occurs if I use the CSS as a external file, that is called
by the HTML, if I use it in the middle of HML code, it works.
gborgesbr Guest
-
mat1492 #12
Re: FlashPaper and PDF
For what it is worth we were having problems with generating pdfs that had
graphics in them. We discovered that CF 7 has problems with large, read 600k,
size graphics. As soon as we dropped it down to about 17k it was fine. Not sure
were the window for graphic size is but it is somewhere between the two:)
mat1492 Guest
-
hokugawa #13
Re: FlashPaper and PDF
Please tell more information.
I need the information of your directory structure including their cfm, css and jpg file locations to reproduce/confirm your issue.
Thanks,
-- Hiroshi
hokugawa Guest
-
gborgesbr #14
Re: FlashPaper and PDF
All files are in the root directory. The issue is in the fact that if I use the
<link rel ... > tag in HTML code. Even if I have a CSS valid file (whithout
any bugs), the background image tag doesn't work.
If I copy and paste the same CSS code in the middle of HTML code, for example:
<html>
<head>
....
<style type="text/css">
#index #index {
margin : auto;
position : relative;
top : 8px;
left : 8px;
width : 750px;
height : 414px;
background : url('index.jpg') no-repeat 0px 165px;
text-align : left;
}
</style>
</head>
<body>
<div id="index"></div>
</body>
</html>
So, when I genetate the PDF it works, instead of if I use the same code, but
using an external CSS file (it doesn't generate the PDF with the image).
gborgesbr Guest
-
hokugawa #15
Re: FlashPaper and PDF
I couldn't reproduce your problem.
Which web server are you using? (I tested with JWS.) Did you create any
mapping?
Did you see any error message in log file? like 'xxx.jpg not found.'
Thanks,
-- Hiroshi
hokugawa Guest
-
gborgesbr #16
Re: FlashPaper and PDF
Could you copy your code here? So, I will can see if you are doing the same thing that I am. If not, I can tell you what is the difference between your code and mine.
gborgesbr Guest



Reply With Quote

