cfdocument CFPDF Bug?

Running CF 8 with the hotfix, the following code does not
work, although the documentation seems to imply that it should.

h3echo wrote:
... adding a page header.
The page header i want to add is pretty much a column header
on each new page the table spans.
You could do it like this. Ensure that the header table and
the data table align, by using the same value for
width. You would also use CSS later for finer positioning
and styling.
<cfdocument format="PDF">
<cfdocumentitem type="header">
<table width="80%">
<tr>
<th>ColHeader01</th>
<th>ColHeader02</th>
<th>ColHeader03</th>
<th>ColHeader04</th>
</tr>
</table>
</cfdocumentitem>
<table width="80%">
<cfloop from="1" to="100" index="i">
<tr>
<td>data1</td>
<td>data2</td>
<td>data3</td>
<td>data4</td>
</tr>
</cfloop>
</table>
</cfdocument>

Similar Messages

  • Secure CFIDE directory & functionality to use cfdocument, cfpdf

    Looking for your advice on the best way to create a secure CFIDE directory that will allow me to have full functionality to use cfdocument, cfpdf etc...
    My understanding is that certain folders within that need  to web accessible for cfchart,cfform,cfdocument to work, is that correct?
    We have had security issues and my hosting company has denied users access to the cfide directory and now I am getting erros when I try and merge PDF docs ...I am sure there are others I havent found yet too.
    An error occurred during MERGE operation in the cfpdf tag.
    Error: Access is denied
    java.io.IOException: Access is denied
            at java.io.WinNTFileSystem.createFileExclusively(Native Method)
            at java.io.File.checkAndCreate(File.java:1704)
            at java.io.File.createTempFile(File.java:1792)
            at coldfusion.pdf.PDFDocHandler.writeDocument(PDFDocHandler.java:900)
            at coldfusion.pdf.PDFDocHandler.writeDocument(PDFDocHandler.java:866)
            at coldfusion.pdf.PDFDocHandler.writeDocument(PDFDocHandler.java:847)
            at coldfusion.pdf.PDFDocOperation.merge(PDFDocOperation.java:524)
            at coldfusion.tagext.lang.PDFTag.doEndTag(PDFTag.java:1534)
    Etc...............
    Anyway what is Adobe's official solution to this issue?
    Either I leave the CFIDE unsecured and the cfdocument, cfpdf ...work
    OR
    I lock down the CFIDE directory and lose the functionality for creating PDFS and other things.
    Any ideas?

    There are several threads on securing the CFIDE. The best I have found involves to steps: 1) Keep up to date with the latest CF patches. 2) Break the current CFIDE virtual directory, replace it with one that points to an empty directory, then create a "scripts" one under that that points back to the original cfide/scripts directory. Most of the vulnerabilities revolve around other CFIDE modules not within the scripts branch and this will prevent probably 99% of them. Someday maybe Adobe will incorporate this into the standard distribution, but I'm not holding my breath.

  • Coldfusion 8,cfdocument, cfpdf, watermark, blank page output?

    I'm using cfdocument. No matter whether I use PDF or
    Flashpaper as the type, if I specify the "name" attribute it
    results in an outputted page that is blank. If I remove the name
    attribute, it renders the pdf or flashpaper page.
    Why is this happening? I want to use it to create a PDF
    onscreen and then add a watermark to the just generated PDF, but
    the cfpdf action="addWatermark" requires you to specify the name of
    the pdf to add the watermark to. Since I cannot set the name, I
    can't add the watermark.
    What can I do? Thanks.

    ....if I specify the "name" attribute it results in an outputted
    page that is blank. If I remove the name attribute, it renders the
    pdf or flashpaper page.
    Why is this happening?
    It is so by design in the cfdocument as well as in the cfpdf
    tag. If you specify a name attribute, Coldfusion wont display the
    PDF or Flashpaper output, but will hold it in memory as a variable.
    To do the watermark with
    cfpdf action="addWatermark" you must specify the source
    attribute. That implies that, in the cfdocument that goes before,
    you should save the PDF as a file.
    Here is an example. Coldfusion will create
    myTestDoc.pdf and store it in the current directory. For the
    watermark, I wish to use an image stored in the same directory.
    Coldfusion will then store the watermarked result as the file
    myWatermarkedDoc.pdf. The browser will only display the text
    PDF doc watermarked and saved as file.
    edited: read "watermark" in place of "bookmark"

  • Cfdocument header bug?

    Is this a bug?
    cfdocumentsection is supposed to have their own header and
    footer. This example mimics one in the documentation. I loop
    through a simple counter from 1 to 4 and name each page, header and
    footer with the loop number. But if you run this simple code, 4
    pages of a PDF will be created, the pages will be 1 to 4, but every
    pages' header and footer will say "5" on it..
    <cfdocument pagetype="letter"
    format="pdf"
    filename="#variables.filePath#" overwrite="true"
    >
    <cfloop index="ctr" from="1" to="4">
    <cfdocumentsection>
    <cfoutput><h1>Page
    #ctr#</h1></cfoutput>
    <cfdocumentitem type="header">
    <cfoutput>Header #ctr#</cfoutput>
    </cfdocumentitem>
    <cfdocumentitem type="footer">
    <cfoutput>Footer #ctr#</cfoutput>
    </cfdocumentitem>
    </cfdocumentsection>
    </cfloop>
    </cfdocument>

    Success! Upgrading to 8.0.1 fixed the header/footer issue.
    It also seems to have really helped the layout stability of
    the pdf as well. Before the scaling was unpredictable and changed
    for each page.
    Looks much better now, thanks!

  • Arrrgggh!  cfdocument font bug?

    I'm using cfdocument to create a pdf of a very simple html
    page that uses html entities (greek and math/scientific).
    Slight edits to the html completely change which entities (if
    any) actually show up in the PDF, at one time or another, virtually
    every character has shown up, so I believe the server font supports
    the characters.
    There seems to be no method to the madness. I have a test
    script running at CrystalTech (
    http://67.199.32.119/testpdf.cfm)
    that shows the html in a textarea, and creates a PDF if you submit
    it. If you try it, and then remove the table rows that contain
    entities that don't appear in the PDF and try again, you'll see a
    whole different set of entities don't show up! Whaaaat?
    Has anyone got an idea what's going on? I desperately need
    these entities in the PDF.

    I'm not sure if Times New Roman has all of the characters you
    need. If you specify "Lucida Sans Unicode", your server creates the
    correct PDF file.
    When I used Time New Roman in the CSS, the PDF file had
    Batang (a Korean font), Helvetica and TimesNewRomanPSMT. I'm not
    sure if this is a bug in cfdocument or what, but you can try
    creating a CSS class for your symbols if you do not want your whole
    document displayed in Lucida.
    Funny thing is that I have Lucida Sans Unicode installed in
    my Fonts folder but IE 7 doesn't display 20 or so of your symbols.
    Firefox is fine.
    Erik

  • CF8 cfdocuments new bugs (font size, bold, underline...)

    Hi
    I face the following problems after upgrading from CF 7.0.2
    to CF8 + Cumulative Hotfix 1 :
    - bold and underline generates white space around them if
    they are embedded in a sentence (i.e "this is <bold>bold text
    </bod> and it is fun")
    - font size behavior has changed, the text is now bigger. (My
    font-size: 12px is bigger than before)
    - when reducing it (i.e font-size: 11px) the bold/underline
    problem becomes the opposite : instead of white space, I have
    overlapping texts.
    We use a html 4.01 transitional doctype and CSS styles (i.e
    div class="myclass" and .myclass{..} in a separate css file)
    Any suggestion ?

    the cf8 cfdocument cumulative hotfix has been updated on Jan
    30 2008 -
    have you re-installed it?
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402584&sliceId=1
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • CF8 cfdocument tag has a few new bugs

    This discusses two new bugs in CF8 having to do with footers
    in cfdocument.
    ***FIRST BUG***
    With CFMX7, I could define a new footer by putting a new
    <cfdocumentitem type="footer"> tag in each cfdocumentsection
    of my pdf report. Each could have a different string, e.g., so that
    the footer could tell the reader which chapter she is reading. This
    does not work in CF8. The chapter name that appears on all pages is
    the one defined in the last <cfdocumentitem type="footer">
    tag in the cfdocument. Now only the page number changes
    dynamically. Sample code:
    <cfdocument format="pdf" unit="in" pagetype="letter"
    marginbottom="0.8" marginleft="1" marginright="1"
    margintop="0.8"
    orientation="portrait" fontembed="yes" overwrite="yes"
    filename="pdfbugdemo2.pdf" pageheight="11" pagewidth="8.5"
    scale="100">
    <cfdocumentsection>
    <cfset footerContent="1. Introduction">
    <cfdocumentitem type="footer">
    <div style="float: left;">
    <cfoutput>#footerContent#</cfoutput>
    </div>
    <div style="float: right;">
    <cfoutput>#cfdocument.currentpagenumber#</cfoutput>
    </div>
    </cfdocumentitem>
    <h1>Introduction</h1>
    </cfdocumentsection>
    <cfdocumentsection>
    <cfset footerContent="2. Body of Document">
    <cfdocumentitem type="footer">
    <div style="float: left;">
    <cfoutput>#footerContent#</cfoutput>
    </div>
    <div style="float: right;">
    <cfoutput>#cfdocument.currentpagenumber#</cfoutput>
    </div>
    </cfdocumentitem>
    <h1>Body of Document</h1>
    </cfdocumentsection>
    </cfdocument>
    *** SECOND BUG ***
    In CF8, you cannot cfinclude the same template multiple times
    in a given template - you get an error (at least sometimes). A
    workaround is to make multiple copies of the template, each with a
    different name. This was not necessary in CFMX7. Sample code:
    <cfdocument format="pdf" unit="in" pagetype="letter"
    marginbottom="0.8" marginleft="1" marginright="1"
    margintop="0.8"
    orientation="portrait" fontembed="yes" overwrite="yes"
    filename="pdfbugdemo2.pdf" pageheight="11" pagewidth="8.5"
    scale="100">
    <cfdocumentsection>
    <cfset footerContent="1. Introduction">
    <cfinclude template="pdfbugfooter.cfm">
    <h1>Introduction</h1>
    </cfdocumentsection>
    <cfdocumentsection>
    <cfset footerContent="2. Body of Document">
    <cfinclude template="pdfbugfooter.cfm">
    <h1>Body of Document</h1>
    </cfdocumentsection>
    </cfdocument>
    where pdfbugfooter.cfm is:
    <cfdocumentitem type="footer">
    <div style="float: left;">
    <cfoutput>#footerContent#</cfoutput>
    </div>
    <div style="float: right;">
    <cfoutput>#cfdocument.currentpagenumber#</cfoutput>
    </div>
    </cfdocumentitem>

    re: If you claim didn't say that,
    No "if" about it - I made no such claim and never would -
    thats just you
    talking gibberish. Who in their right mind would say, or even
    suggest, that
    forums are not helpful. The only reason a forum exists in the
    first place is
    to be helpful!
    re: So what was your actual intention in the first place?
    Not sure you would undertsand, you seem to struggle to follow
    along. But
    just a hint for you - the forum posts, or quantity thereof,
    have been used
    by several people here, and by editors at sites such as
    sitepoint.com, as a
    metric to use to gague interest and activity. A metric only
    useful when
    taken in context with other pointers (job market, book
    market, number of
    classes still running, so on and so forth)
    Again, nobody has ever said forums are not useful or helpful
    - I suspect you
    knew that much but felt the need to throw some nonsense about
    in an attempt
    at an argument - failed didn't it?
    RE: Maybe they realized Ben Forta writes such a good books,
    they felt
    ashamed? :-)
    The O'Reilly audience is typically seasoned developers, hard
    core coders.
    Their books are a tough read for beginners and O'Reilly
    delibertately do not
    cater to this audeince with many of their titles. And to put
    it bluntly, the
    main bunch of people to ditch CF early on were these "hard
    core" types. I
    belive this as the only CF developers I know are actually
    more "designers"
    than developers - I know of no professional coder/developers
    that would
    touch CF. Thats just my personal observation, btw.
    re: From what I read, people are telling I'm right.
    Are you crazy? They are all, at least 95%, in agreemenst that
    Tim Buntel
    needs to pick up the marketing act before CF dies. Seriously,
    you do seem to
    struggle to follow along at times - suggest you actually
    read.
    re: CF has always been "dead" in many places.
    How can you always be dead, doesn't make sense! You have to
    have lived in
    order to die. There used to be hundreds of cf jobs advertised
    here in
    Australia every day, literally every day. Now you may see 3
    or 4 each week -
    mostly for migrating old cf sites to new asp.net or java
    sites. And there is
    no longer any CF classes advetised or held in nearly all
    states - they
    literally shut them down. I'm confident enough that the
    comment "CF is dead"
    is accurate.
    r: Maybe you should be answering those questions, since you
    seem to know
    they're true, and I haven't heard of any such things.
    I know the answers to all of those questions - becuase CF is
    dying. If CF
    were living, then none of those questions would have been
    asked.
    re: So you know they're not investing in one?
    Yes, I know that. They will never spend that kind fo money on
    coldfusion -
    it just wouldn't be vaible for them. We're darned lucky that
    still have
    small team of enginners to write tags around the java
    libraries and release
    new versions. They are not actually going to start
    "innovating" with CF in a
    market like this - and I don't blame them.
    "Fernis" <[email protected]> wrote in
    message
    news:[email protected]...
    > >I never said you can't get help on the forums. Where
    did you get that
    > >from?
    >
    > If you claim didn't say that, and if you didn't even
    mean that by saying
    > "Forum averages about 3 new posts a day and has very
    small community -
    > very
    > quiet.", why did you say such thing in the first place,
    if it's totally
    > irrelevant to all about getting help in the forums? So
    what was your
    > actual
    > intention in the first place? Are you not reading what
    other people are
    > saying
    > before responding? The rest of my post is really useless
    compared to the
    > finding that you just really do the trolling because you
    like nit-picking.
    > Unbelievable.
    >
    > >Why did O'Reilly pull their once popular CF book
    from print and refuse to
    > write any further CF books?
    >
    > Maybe they realized Ben Forta writes such a good books,
    they felt ashamed?
    > :-)
    > I mean, if they were popular as you said.
    >
    > >No, its not not. Go here -
    >
    http://techfeed.net/blog/index.cfm/2007/8/22/Open-Letter-to-Tim-Buntel
    > >- and see actual people tell you how wrong you are.
    >
    > From what I read, people are telling I'm right. So what
    *you* say is
    > downright
    > silly.
    >
    > >But you seemed to be thing that I based my whole
    argument that CF is weak
    > >and
    > dying
    > >( is already dead in many places)
    >
    > CF has always been "dead" in many places. And it's been
    dying for 10
    > years -
    > they say. So what's new? You just don't seem to
    understand that random
    > sites
    > switching ColdFusion for something else doesn't mean
    that at the same time
    > there are likely new adopters of ColdFusion. You just
    don't know about
    > them,
    > while you can more easily track if some of them go away.
    You don't
    > actually
    > have anything but blind guesses about what's happening.
    >
    > I'm seeing more CF frameworks pop up as ever before. And
    In Finland, I'm
    > seeing more ColdFusion hosting appear than ever before.
    >
    > >Why did MM/Adobe pull an entire team of employees
    out of Australia? Why
    > >did
    > >they stop printing ads in all of the trade
    magazines? Why did MM push PHP
    > >more than CF on their website?
    >
    > Maybe you should be answering those questions, since you
    seem to know
    > they're
    > true, and I haven't heard of any such things.
    >
    > > Why don't they invest in an IDE to atract all those
    developers out there
    > that like a complete RAD platform?
    > > So on and so forth???
    >
    > So you know they're not investing in one? And I thought
    DreamWeaver would
    > act
    > as one? Or third party products like CFEclipse? Or
    Adobe's IDE extensions
    > for
    > Eclipse? Sure, the CF IDE's lack behind the automation
    and insight
    > functionality of other IDEs, and that's something I'm
    hoping for too...
    > although I've always felt that strong IDEs are strictly
    necessary only for
    > programming languages where a huge number of
    non-user-defined libraries
    > and
    > classes are to be referenced. The level of automation in
    ColdFusion (lots
    > of
    > action with little code) make complex IDEs less
    important than with most
    > other
    > languages.
    >
    > -Ari Ferneilus
    >

  • Image quality CFPDF

    Hello,
    I'm creating a PDF with CFDOCUMENT and CFPDF and I have two
    questions
    1. I'm trying to insert an image with the following code:
    <cfdocument name="cover" format="pdf">
    <img src="
    http://www.domain.com/image.jpg">
    </cfdocument>
    <cfPDF action="write" source="cover"
    destination="test.pdf" overwrite="yes" />
    The image isn't displayed. I only see a broken image link. Is
    there I way I can fix this?
    2. Because I don't know why my image isn't working I use
    <cfpdf action="addwatermark" image="images/pdf.jpg" opacity="10"
    ...>. Then I noticed that the image quality is very bad. Is
    there a way to fix that?
    Thanks!
    Sam

    What version of CF are you using?
    I remembered occasionnaly having this problem using mx7, but
    I believe there may have been a hotfix that corrected the issue of
    using an image that is not hosted locally on the machine.
    If you have all the hotfixes, and you are running 7, have you
    tried using cfdocument without the "cfpdf"?
    To my knowledge you shouldnt have this problem in cf8.

  • Streaming result of cfpdf merge to browser, NOT file on server

    Hi guys, as my title suggests...I have a PDF document that was created with cfdocument...I then have used cfpdf to merge the results of that PDF with 2 other PDF's to make a final document...my question is, how to do get this resulting PDF to open in the browser (as it can with cfdocument) instead of writing a physical PDF file on the server?  I just need the user to be able to see and print the file, not actually save it on the server itself.
    Something like:
    <cfdocument format="pdf" name="pdfsource">
    stuff here
    </cfdocument>
    <cfpdf action="merge" destination="temp/test.pdf" overwrite="yes">
        <cfpdfparam source="pdfsource">
        <cfpdfparam source="includes/nlv_affidavit.pdf">
        <cfpdfparam source="includes/nlv_certapp.pdf">
    </cfpdf>
    So far my research has turned up nothing on this particular instance, strangely.
    Thanks in advance!
    T

    I believe you can save the results to a variable, and then stream the variable to the browser using cfcontent.  Though this entry is on watermarking, it does use the same variable/cfcontent technique. See the last two lines of the code
    http://www.coldfusionjedi.com/index.cfm/2007/7/13/ColdFusion-8-Working-with-PDFs-Part-3

  • CFPDF MERGE null null Error

    Hi All,
    I discovered a CFPDF bug this week, and thought I'd post the
    bug and a work-around.
    We had an app which had been using CFPDF to MERGE files since
    August (just after upgrading to CF8). We suddenly began
    experiencing errors this past weekend.
    The Error:
    DIAGNOSTICS: "null null <br>The error occurred on line
    45."
    STACKTRACE: "java.lang.NullPointerException at
    com.adobe.internal.pdftoolkit.services.manipulations.impl.PMMPages.clonePage(Unknown
    Source) [...]"
    The Cause:
    It turns out over the weekend, the company providing the PDFs
    had changed the layout slightly. Something about the way the new
    file had been saved was throwing off the CFPDF tag when trying to
    MERGE.
    Other Symptoms:
    - When using the IsPDFFile() function, the new file checked
    out.
    - Using CFPDF GETINFO on the new file yielded identical info
    as an old file.
    - CFPDF was able to successfully READ and WRITE the new file.
    - READing the new file into a variable, or MERGEing directly
    from the new file made no difference.
    - Using a comma-list of PDF vars, or using CFPDFPARAM tags
    made no difference.
    - Specifying the pages from the new file to be included in
    the MERGE made no difference.
    The Solution:
    The solution was surprising to me. We needed to simply
    re-save (or WRITE) the file while including the "saveoption"
    attribute and setting it to "linear".
    So before we attempt a merge, we first need something like
    this:
    <cfpdf action="write"
    destination="C:\website\file-one.pdf"
    source="C:\website\file-one.pdf" overwrite="yes"
    saveoption="linear">
    Then when we try our merge, it all works fine:
    <cfpdf action="merge" name="FinalOutput">
    <cfpdfparam source="C:\website\template.pdf">
    <cfpdfparam source="C:\website\file-one.pdf">
    </cfpdf>
    I hope this helps someone else out there.

    I have now submitted this as a bug, https://bugbase.adobe.com/index.cfm?event=bug&id=3546237

  • Bug #81169 - Div bkgrnd color (of 1st div w/ content) not honored if cfdocument/pdf written to disk

    Bug for: Div background color (of 1st div w/ content) is not honored when cfdocument/pdf is written directly to disk.
    ==================
    Steps to reproduce
    ==================
    Run the following code with (and without) the cfdocument 'name' attribute.  Then compare both PDFs (the PDF written directly to browser, and the PDF written directly to disk)
    <cfdocument format="pdf" name="myPDF">
    <div style="background-color:#1a9cee;"></div>
    <div style="background-color:#1a9cee; border:2px solid #1a9cee;">I am the 1st div w/ content. Background color is only honored when PDF is written to browser. When PDF is written to disk, background color is near black.</div>
    <div style="background-color:#1a9cee; border:2px solid #1a9cee;">I am the 2nd div w/ content. Background color is always honored.</div>
    </cfdocument>
    <cfif structKeyExists(variables, "myPDF")>
      <cfpdf action="write" source="variables.myPDF" destination="#expandPath('./MyPDF.pdf')#" overwrite="yes" />
    </cfif>
    ==================
    Attachments
    ==================
    PDF written directly to disk: 20091214_Bug_81169_CFDocumentPDFDivBkgrndColorNotHonored_01.pdf
    PDF written directly to browser: 20091214_Bug_81169_CFDocumentPDFDivBkgrndColorNotHonored_02.pdf
    Thanks!,
    -Aaron Neff
    Btw, this bug is new to CF9.  This bug did not affect CF 8.0.1.

    Ok, if anyone else is experiencing this same issue, here is a workaround.  The issue is that when a cfdocument-generated PDF is written directly to disk, then the background color of the 1st non-empty block-display HTML element is ignored (unless there is an inline-display HTML element preceding it).  Instead, the background color is near-black.
    So, the workaround is to simply ensure an inline-display HTML element preceds the problematic block-display HTML element.  (a <span></span> will do the trick)
    Here was the original code.  Note that line #3 is the 1st non-empty HTML element, and that it is a div (block-display), and it has a background color.  If the PDF is written to disk, then the specified background color is ignored.  Instead, the background color is near-black.  Again, this does not occur when the PDF is written directly to browser.
    1| <cfdocument format="pdf" name="myPDF">
    2| <div style="background-color:#1a9cee;"></div>
    3| <div style="background-color:#1a9cee; border:2px solid #1a9cee;">I am the 1st non-empty block-display HTML element. Background color is only honored when PDF is written to browser. When PDF is written to disk, background color is near black (unless preceded by an inline-display HTML element).</div>
    4| <div style="background-color:#1a9cee; border:2px solid #1a9cee;">I am the 2nd div w/ content. Background color is always honored.</div>
    5| </cfdocument>
    6| <cfif structKeyExists(variables, "myPDF")>
    7|   <cfpdf action="write" source="variables.myPDF" destination="#expandPath('./MyPDF.pdf')#" overwrite="yes" />
    8| </cfif>
    Here is the 'fixed' code (note that "display:inline" has been added to line #2):
    1| <cfdocument format="pdf" name="myPDF">
    2| <div style="background-color:#1a9cee; display:inline;"></div>
    3| <div style="background-color:#1a9cee; border:2px solid #1a9cee;">I am the 1st non-empty block-display HTML element. Background color is only honored when PDF is written to browser. When PDF is written to disk, background color is near black (unless preceded by an inline-display HTML element).</div>
    4| <div style="background-color:#1a9cee; border:2px solid #1a9cee;">I am the 2nd div w/ content. Background color is always honored.</div>
    5| </cfdocument>
    6| <cfif structKeyExists(variables, "myPDF")>
    7|   <cfpdf action="write" source="variables.myPDF" destination="#expandPath('./MyPDF.pdf')#" overwrite="yes" />
    8| </cfif>
    magical

  • Is there a bug in CF8 cfpdf ?

    Further to my random question yesterday about instantiation of objects - I believe I've actually tracked my problem down to a problem with the <cfpdf> tag on CF8 - When I run certain PDF's through the following code
    <cfpdf action="processddx" ddxfile="#ddxDir#/readPDF.ddx" inputfiles="#inputStruct#" outputfiles="#outputStruct#" name="ddxVar">
    whilst on CF8 I get the following in the dump structure
    OUT1
    failed: PDFM_S20005: Encountered internal error while processing document "DOC1".
    Whereas if I run the same file through CF9 - It works perfectly- we aren't moving to CF9 on the production server for a while yet so I need to find out if there is a genuine bug and/or there is a fix available for it as it's causing me some major problems
    I've tried looking for the error message online but can't find it referenced anywhere

    I know there was at least one issue with the cfpdf/ddx functionality in Coldfusion 8. So, I would upgrade to CF8.0.1 and install the latest cumulative hot fix.

  • CFPDF action="addWatermark" ISSUE/BUG

    Hello,
    I am trying to add an image as a watermark into pdf file
    using the CFPDF tag. Here is the code:
    quote:
    <cfpdf action="addWatermark" source="template.pdf"
    image="bottle.jpg" destination="ad.pdf" overwrite="yes"
    foreground="yes" showOnPrint="yes" >
    The source file is not password protected.
    And I get always the following error:
    quote:
    An error occurred during ADDWATERMARK operation in
    <CFPDF>.
    Error: The password provided is either wrong or does not have
    sufficient permission to perform this action.
    I made the PDF password protected and used the password
    attribute in order to eliminate the pass protection error but it
    does not help.
    Please help!
    thank you!

    okay!
    I found something about this.
    A. I created the first (in the case above) source PDF using
    Adobe LiveCycle Designer 8.0, with three dynamic textfileds so I
    can update them later using CFPDFFORM. If I use this PDF to insert
    watermark I get the error message above.
    B. Than, I created plain PDF using Adobe Acrobat
    Proffesional, CFPDF/addWatermark works perfect. The sad thing is
    that I do not need just flat PDF, but with fileds on it.
    Unfortunatelly the addWatermark will not resolve my issue,
    because there is no option to set the size of the watermark/image
    inside of the PDF.
    What I need is:
    I have 1 PDF template and 1 JPG image.
    In the PDF template I have three dynamic textfileds.
    The goal is - to insert the jpg into the PDF (and to
    shrink/strech the jpg to fixed dimensions - I do not know in front,
    what the JPG size will be) and to fill into the fileds using
    CFPDFFORM.
    The final result - PDF with the inserted image and three
    fileds with new values.
    I have Coldfusion 8 on Microsoft Server 2003.
    I will really appreciate any help!
    Thanks!
    p.p. so still the bug is there if you do not have flat PDF
    (or maybe if it is created with the livecycle designer i do no know
    what is the case exactly).

  • Do we have a fix for the justification bug in cfdocument for CF8?

    Do we have a fix for the justification bug in cfdocument for CF8?

    For IDocs it is [ABAP->Data Transfers|ABAP Connectivity;.
    The rest...not sure. Maybe there as well, or XI? Other suggestions?
    Thomas

  • Possible cfdocument header/footer bug in CF8

    All-
    I'm experiencing a problem with header and footers containing
    dynamic/
    query variables in the header/footer text. The header and
    footer are
    sort of being cached or not being updated appropriately when
    a query
    variable is inserted into the content of the header or
    footer. The
    code below will generate a PDF with the header and footer
    duplicating
    the qryReps.rep_name from the last record across all document
    sections/pages.....its not showing the showing the correct
    qryReps.rep_name for
    the particular record in that loop. SO, if the last record in
    the
    query is "John Doe", the header on EVERY PAGE shows "Header:
    John
    Doe". Anyone have any ideas??? Any input would be
    appreciated!!!
    NOTE: RUNNING ON CF8

    This bug has been fixed and a hotfix for this will be
    released very soon. Stay tuned.

Maybe you are looking for

  • Replication of SAP R/3 Account Settings to BW

    Hi Guys/Gals,       we're using BI 2004s... & our R/3 is 4.6.... the requirement is we want to migrate a few of our FI reports from R/3 to BW (due to performance issues). On r/3 the reports are done on "Report Painter" & it's something like this.....

  • Java/java and java/c++ connection

    Hello, I'm new in distributed programming. Now I have to make a java application which can communicate with an other java and a c++ application. All of the 3 applications have to be made by me so I can controll all of the codes. All applications will

  • How to add a search/find field

    Hi all, On page 1 I have a report of all the employees from employee table. I want to add a text field for search on page 1. and to enter a last_name say 'THOMAS'. I need to get a report on page with all employees with last name 'THOMAS'. Can someone

  • Error Message in mysql

    I tried to import my file into mysql I got the error message below.  I have no idea what this means or what to do.  Any assistance you can provide would be greatly appreciated.  Thank you. There seems to be an error in your SQL query. The MySQL serve

  • Assembly, component and operation scrap

    Dear All, I haven't got experience in SAP, that's why I'd like to ask for your help in this issue. Could you highlight/explain how these work? (effects on MRP run + behaviour when booking against PrdOrd; e.g. when I book against PrdOrd what will be t