Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. flashpaper
      C:\Documents and Settings\Mvestel\Local Settings\Application Data\Macromedia\Macromedia FlashPaper\OfficeTemplates ...
    5. 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...
  3. #2

    Default Re: FlashPaper and PDF

    Make sure you have the CSS file included *inside* the cfdocument start/end
    tags.

    --
    Tom Jordahl
    Macromedia


    Tom Jordahl Guest

  4. #3

    Default Re: FlashPaper and PDF

    It is inside... and doesn't work
    gborgesbr Guest

  5. #4

    Default Re: FlashPaper and PDF

    Can you post a test case?
    --
    Tom Jordahl


    Tom Jordahl Guest

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default 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

  9. #8

    Default Re: FlashPaper and PDF

    to display the bg image try using this attribute in the cfdocument tag: backgroundvisible = 'yes'
    waver Guest

  10. #9

    Default Re: FlashPaper and PDF

    It doesn't work too :(
    gborgesbr Guest

  11. #10

    Default 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

  12. #11

    Default 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

  13. #12

    Default 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

  14. #13

    Default 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

  15. #14

    Default 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

  16. #15

    Default 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

  17. #16

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139