Coldfusion PDF DDX problem.

I have a problem when trying to add footers to the bottom of a PDF.  It would seem that there might be a BUG in ADOBE's DDX processing;
When I try to add a footer on this particular document I get the following when I cfdump out the ddx variable:
failed: CCITTFaxDecode Filter
So this document has a fax image in it (not a real shocker) but why do we get these sort of problems?
Does anyone have a solution?

It sounds like a bug.  As a work-around, you can use iText instead of ddx to add footers.  Here is an example that adds page x of y footers.
<cfscript>
    pathToInputFile = ExpandPath("GDC.pdf");
    pathToOutputFile = ExpandPath("GDC_Stamped.pdf");
    try {
        // create the footer font
        BaseFont = createObject("java", "com.lowagie.text.pdf.BaseFont");
        footerFont = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.WINANSI, BaseFont.NOT_EMBEDDED);
        // read in the input file
        reader = createObject("java", "com.lowagie.text.pdf.PdfReader").init(pathToInputFile);
        totalPages = reader.getNumberOfPages();
        // create a stamper for modifying the pdf
        outStream = createObject("java", "java.io.FileOutputStream").init( pathToOutputFile );
        stamper = createObject("java", "com.lowagie.text.pdf.PdfStamper").init(reader, outStream);
        // for each page
        i = 0;
         while (i LT totalPages) {
            i = i + 1;
            // add page numbers to the overcontent layer
            over = stamper.getOverContent( javacast("int", i) );
            over.beginText();
            over.setFontAndSize(footerFont, javacast("float", 18) );
            over.setTextMatrix( javacast("float", 30), javacast("float", 30) );
            over.showText("Page " & i &" of "& totalPages);
            over.endText();
        WriteOutput("Finished!");
    catch (java.lang.Exception e) {
        savedErrorMessage = e;
        WriteOutput("Unable to create document "& e.message);
    // closing PdfStamper will generate the new PDF file
    if (IsDefined("stamper")) {
        stamper.close();
    if (IsDefined("outStream")) {
        outStream.close();
</cfscript>

Similar Messages

  • Good day, I have installed Acrobat DC, and would like to combine 2 files. One is excel allready converted to PDF - No problem. The other one is from Pastel mailed as PDF.

    Good day,
    I have installed Acrobat DC, and would like to combine 2 files. One is excel allready converted to PDF - No problem. The other one is from Pastel mailed as PDF.
    When trying to merge the files, this file ask for a Password. No password was issued from the setup or mail?

    Good day abrieb93050306,
    I can understand your concern, however can you please let me know that are you able to open both the PDF files ( the one you converted form excel to pdf & the other pdf that was mailed to you ) individually without using any password?
    As it asks for the password, it means that the postal mailed PDF is password protected. You can ask for the password from the sender of the postal mail & then try to combine the files.
    Please follow the steps in the provided KB doc.to combine the files : Combine files into single PDF | Adobe Acrobat DC tutorials
    This will probably resolve your issue.
    Let me know if you still experience any issue.
    Regards,
    Aadesh

  • 10.6.8 combo & 10.6.7 pdf fonts problem

    Does the 10.6.8 update combo correct the pdf fonts problem that was inherent to 10.6.7?  After a couple days of stress I had to do the lengthy 10.6.7 uninstall process in order to refine my doctoral dissertation.  This has made me gun-shy & fearful of updates.  Is it safe to update now?

    The combo should fix your problem.  As always have a back-up in case you have to revert.
    The Font update came out to fix the problem in 10.6.7
    http://support.apple.com/kb/DL1377
    It should be rolled into the Combo-Update:
    http://support.apple.com/kb/DL1399

  • Illustrator cs6 + msword to pdf + links problem

    Hello!
    BACKGROUND:
    I have a TABLE that I need to inserted into my ILLUSTRATIOR file.
    Whatever method I'm using is failing as the text comes in but NOT the table.
    Instead, I just do this:   MSWORD > Print PDF > in Illustrator >  Place PDF.
    PROBLEM:
    But when I want to make CHANGES TO THE PDF (changes in MS WORD DOC - REprint to PDF).  The PDF file does NOT show up in the LINKS Box. 
    Therefore, I can't UPDATE it.  I'm always having to re-insert the PDF file  -- INSTEAD of like the other files PSD, or .JPG, or whatever else gets UPDATED.
    QUESTION: 
    WHY DOES THE PDF FILE not like the OTHER files that just hang out and can be updated in the LINKS box?
    Thank you,
    M>

    I'm using PC... but the LINK selection was NOT CHECKED.
    Funny.  I never checked that when I placed all the other IMAGES -- like ever.
    Thanks, Larry, that's exactly what needed to be done!!!!!
    SOLUTION:  PLACE >  Check LINK box. Done.

  • Help - PDF Attachment Problem

    Hi,
    Receently, some of our users experienced pdf attachment problem. The user sent a 4mb pdf attachment but after the mail was sent out it only showed 4k in sent item. When the recipient received the e-mail the attachment also showed 4kb and it can't be opend too. These users are using Outlook 2000 and our Exchange server is 2000 Enterprise.
    Thanks for the help,
    JY

    Hi Suresh,
    I just tried this thing in my systtem and it is working... BADI is trigerred everytime there is a change in the PO... even when you release there is a change in the PO so this BADI will be triggerred....
    I suggest you should implement BADI in your dev system and place a break point in the POST method...
    After that create a PO and release it using ME29N... thereafter when you save the PO... this method will trigger and you will have access to PO details...
    PS: Remember this BADI wont work for transaction ME29...
    Regards
    Gautam

  • Pdf attachment problems on osx lion

    Hello
    i was wondering if apple has fixed the pdf attachment problem seen on other iOS' such as 7.1.  I get the same error (blank pdf file, white screen), however, it doesn't happen all the time. 
    any explanations and comments would be greatly appreciated!

    OS 7 or IOS 7?
    If IOS 7, try the iPad community.
    iPad Community

  • Pdf fonts problem in 10.6.7 - resolved in 10.6.8 combo update?

    The pdf fonts problem in 10.6.7 forced me to go through the long uninstall process after a couple days stressing over what the problem was -- it was Adobe tech support that finally informed me what the problem was. Is the problem fixed in the 10.6.8 combo update?  Since I got no replies when I asked this question a different way yesterday, can anyone say (for helpful answer points) whether Apple would be inclined to answer this question if I just call them up (i.e., without existing AppleCare)?   Any other suggestions for getting official support on this question?   As it stands, I fear updating at all, and could be stuck with 10.6.6 for a long time.

    The combo should fix your problem.  As always have a back-up in case you have to revert.
    The Font update came out to fix the problem in 10.6.7
    http://support.apple.com/kb/DL1377
    It should be rolled into the Combo-Update:
    http://support.apple.com/kb/DL1399

  • Frame Maker 9 and 10 PDF Print problem

    Frame Maker 9 and 10 PDF Print problem
    Hi I have an computer with windows 7 and the Adobe Software.
    The Distiller 9 with adobe Acrobat 9 and Adobe Design Standard CS3 is also installed.
    Now, I open in Frame Maker 9(Full Version) or 10(Trial Version)   an *.fm File. Then I go to “File- save as pdf” and then save I receive an message like this:
    “to execute the ‘Save as PDF’  is necessary to have install Acrobat Distiller 5.05 or higher”.  But I have the Distiller 9.
    Then I can click OK and now I receive another message like this:  “you must  define “PDF job options” if you want to execute it.”
    If I look for the PDF job options I can’t select something. But if I look in the Distiller I have a lot of option I can select.
    What is the problem. Is there a solution?
    Can somebody help me?

    Using AW 6.2.9 and Mac OS X v10.5.7, the file prints successfully to pdf using the "Save as PDF..." option in the print dialogue. I didn't try to print the result to paper, but that appears to eliminate the file itself as the cause of the problem.
    Two first aid steps that might resolve the issue:
    Delete the AW preferences.
    In the Finder, click the house icon (yourname) in the sidebar of a Finder window, then Library > Preferences..
       Locate and delete the file com.apple.appleworks.plist
       Open the folder AppleWorks
          Delete both cache files and the two preferences files.
          It's also safe to delete the Button Bars file, but unless you have issues related to the Button Bars, you're also safe to leave it there.
    AppleWorks will create new (and clean) versions of these files as it needs them.
    Repair Permissions.
    Go Applications > Utilities > Disk Utility
    Launch the application, select your startup drive, click First Aid, click Repair Permissions.
    Regards,
    Barry

  • PDF Export Problems

    bei using interactive functions in inDesign CS5 and then exporting to pdf, I am able to see exactly everithing I wanted in AcrobatPro, but not in Adobe Reader. What can I do, so that anybody who uses Reader can see it too? Anybody knows?? Thanks

    Re: PDF Export Problems
    created by Jeffrey_Smith <http://forums.adobe.com/people/Jeffrey_Smith>  in
    InDesign - View the full discussion
    <http://forums.adobe.com/message/4271659#4271659>
    What is it that you can not see in Reader: button behavior, rollover effect,
    hyperlink, etc. ?
    Wow, I am impressed about the fast reaction:-)
    The interactive function I am using (unfortunately in German inDesign) is
    "button" > Action: by letting go (?). It's a file with some 100 pages and
    some 500 links. Exported as pdf interactive...
    The effect In AcrobatPro: when clicking on the thumbnail the original
    picture shows in a separate window without closing the original file. After
    closing the new window, I could continue in the multipage file...
    This is not happening in Adobe Reader. It says: the link was not found, and
    here and then, when shown in e new window, the multipage file is closed...
    Hope this helps..
    Thanks Jaro
    PS
    I did reply on the forum directly, but no success. There trying via mail.
    Hope it works:-)

  • More PDF Printing Problems

    There are lots of notes in this forum crying about PDF printing problems. For what it's worth, I'd like to add mine.
    I'm using Jakarta FOP to generate a PDF on the fly from XML data. The PDFs it's producing are read and displayed nicely by Adobe Acrobat and print from Acrobat without a problem.
    I've also written a simple desktop app that exercises the java.print package. (I won't bore anybody with a listing.) It uses the PrintServiceLookup to discover the two networked printers I have attached to my machine, using DocFlavor.INPUT_STREAM.AUTOSENSE. I have it discover all the supported document flavors. Here's the result:
    application/octet-stream
    application/x-java-jvm-local-objectref
    image/gif
    image/jpeg
    image/png
    I can sent text documents to the printer without a problem. But when I try to send a PDF generated by FOP that renders and prints fine from Acrobat, I get gibberish text out. I'm using DocFlavor.INPUT_STREAM.AUTOSENSE as my DocFlavor when I create the doc.
    I don't see application/pdf on my list of supported document flavors. Should I? If that's a requirement, what do I have to do to the printer to get it on the list? Why is Adobe Acrobat smart enough to print to a printer wo/ this flavor and javax.print not? TIA - MOD

    Now I get it - I can't send PDFs from Java to a printer. A careful reading of forum threads and John Zukowski's note have driven a stake into the heart of the vampire.
    I can bring them up just fine by creating the PDF using FOP and then sending the page back to the browser for rendering. If my client could just print the document from his machine, all would be well.
    However, my app has a situation where some label printers will ONLY be attached to the server. They won't be visible from the client. I thought I had a solution with javax.print, but now that hope's gone.
    The printers I have aren't Postscript, so suggestions to ask FOP to generate Postcript won't help me.
    Adobe's site didn't offer any relief.
    I haven't been able to find any for-fee or open source packages that might help. Plenty of stuff out there to convert to PDF, but nothing that helps to print it once you have it.
    Is there any point in entering this as a bug in the database? It's less bug and more vaporware. After all, the docs never SAID they'd thrown an invalid flavor exception if you tried to print a PDF.
    Sun, are you listening? - MOD

  • Adobe Reader X creates problems w/coldfusion pdf forms

    Ever since I upgraded to Adobe Reader X, I can not open any of my odf forms on my webapp.  these forms were designed with Acrobat Pro 8.0 and are prepopulated by coldfusion server.  When I browse to one since upgrade, I get the following message:
    To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade
    to the latest version of Adobe Reader from www.adobe.com/products/acrobat/readstep2.html
    Obviously, I have the latest version and Acrobat 8 and Acrobat 9 readers both worked.  Is there an easy work around or a way to get rid of Acrobat X and go back?

    Could you please try turning off reader X protected mode and check if you continue to see the problem?
    You could turn off protected mode using following steps:
    1. Launch Reader X and select Edit->Preferences...
    2. Select General from left navigation
    3. Under application startup uncheck "Enable Protected Mode at Startup"
    Note: You should switch "ON" protected mode after verifying the problem. Purpose of Reader X Protected Mode is to keep your system safe from PDF based exploits and keeping protected mode OFF will leave your system vulnerable.

  • PDF Printing Problem with HP UPD Printer

    Hi,
    in our Company we use the HP UPD Driver PCL5 in Version 5.9.0.18326. The Printermodells are HP LaserJet Pro 400 M401, HP LaserJet Pro 400 Color M451, HP LaserJet Enterprise Flow M830z, HP LaserJet Enterprise 500 MFP M525dn, HP LaserJet Enterprise M630dn, HP LaserJet Enterprise Flow M680z and HP LaserJet Enterprise Flow M880z with newest Firmware.
    If a PDF file is printed using Adobe Reader, it takes a long time until the file is printed on the printer. Partially individual pages are printed in one-minute intervals. But if I use another PDF viewer such as Foxit Reader, PDF documents can be printed at normal speed.
    Other documents, such as Word or Excel files are printed normally. Only PDF documents that are printed with Acrobat Reader or Adobe Acrobat are affected. We use the Acrobat Reader version 11.0.10. With version 11.0.6, the problem also occurs.
    Sometimes it also happens that the PDF document fills up the memory of the printer when it was printed with Adobe Reader. With Foxit Reader this does not happen with the same document.
    Does anyone know this problem and knows what to do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select
    /var/log ▹ cups ▹ error_log
    from the hierarchical list on the left side of the Console window. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar. Then select the messages from the time of the last failed printing attempt. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.

  • PDF Exaprom, problem with multitext in one header

    Problem is,that according to my simply thiking when I connect two elements Append Text HF one by one serialy with some text in header, and in their properties I set alligment both of them at left- MIDDLE in my opinion it suppose to overwrite one text on secand. When I set one text at left-MIDDLE and secont text in center-MIDDLE is should firstly create one text at left side, another at the middle. I doesn't.... When you try to combine with alligment of text,you easly notice,that when it's creating first text at the left side,it devide page on 3 and locate it at 1 collumn, and then when you pass this PDF Report to second Append Text HF this subVI divide not the same lenght of the side, but those 2-3 columnt whose left!!!! In effect text wich suppose to be at center of document is the center of 2-3 parts of document. 
    Do I doing something wrong or is it program bug? 
    Attachments:
    pdf_report_test.vi ‏53 KB
    Report.pdf ‏20 KB

    Now I see,
    I just haven't know about this specyfication of that subvi.
    I managed to deal with that, but unfortanatly I have another problem.
    In help context of create table.vi you can read that in cell can be eiter text or pictures. I want to add 2D array of pictures and it show mistake. Do I ones again don't understand description or I have to do it in other way? I just wanted to create table ona the page,which will contain pictures, let's say 2x2 size table, picture in each cell. Is it possible to using this program? 
    Attachments:
    pdf_report Folder.zip ‏2270 KB
    pdf report.JPG ‏402 KB
    pdf_report Folder.zip ‏2270 KB

  • Report fonts mapping and PDF output problem(Easten European languages)

    Hi experts,
    I have such a problem.
    If i run oracle reports(10g) via reports builder all layouts looks fine.
    When i run them in PDF format via application server - report text and numbers strech out off frames, also textfields and text itself becomes bigger in size.
    Aplication server runs over windows OS.
    Uifont.ali file looks:
    [ PDF:Subset ]
    Arial..Italic.Bold.. = "Arialbi.ttf"
    Arial...Bold.. = "Arialbd.ttf"
    Arial..Italic... = "Ariali.ttf"
    Arial..Plain... = "Arial.ttf"
    Arial..... = "Arial.ttf"
    "Times New Roman"...Bold.. = "TIMESBD.TTF"
    "Times New Roman"..Italic... = "TIMESI.TTF"
    "Times New Roman"..... = "TIMES.TTF"
    I think the problem is with Lithuanian(baltic) letters in the text. If i do not map fonts in uifont.ali file i get PDF report without the
    lithuanian alphabet letters, but in this case it looks fine(The same as in report builder)
    After fonts mapping, i get my lithuanian alphabet letters, but text and numbers strech out off frames, changes the size and etc.
    I put the example of my report uotput:
    http://pirmas.50webs.com/index.html
    What else can i do to solve this problem?
    Thanks for any suggestions
    Sky_lt

    Vangel
    For the html output issue , there is a patch available on top of 9021. Please contact your Oracle support representative to get a 90211 patch nd apply the one-off patch of Bug 2472932.
    For PDF, please ensure that you are setting the NLS_LANG in the server config file using the dynamic environment switch feature introduced in 90 patch 1 (9021). Please see the patch 1 release notes for the details
    Thanks
    The Oracle Reports Team

  • PDF Download Problem

    Hi,
    I have one report using Reuse_Alv_List_Display as output. After that I have to download the output to PDF.
    By using the following code I can able to download, But the Problem is I have 54 fields( total length to 900 characters) in the out put and while downloading through Spool I am getting only 17 fields in one row and remaining fields are getting in 2nd and 3rd rows and are getting overlap.
    So is there any Possibility to download to 54 Fields in PDF.If so, Please help me...
    *&      Form  USER_COMMAND
          Form for user-command for providing Pdf Functionlity.
    -->  No Import / Export Parameters.
    FORM user_command USING l_okcode LIKE sy-ucomm
                           l_selfield TYPE slis_selfield .
      CASE l_okcode.
        WHEN '&PDF'.
          g_flag = 'X'.
          PERFORM pdf_download.
      ENDCASE.
    ENDFORM.                    " USER_COMMAND
    *&      Form  PDF_DOWNLOAD
          Form for Pdf functionalty
    -->  No Import / Export Parameters
    FORM pdf_download .
      DATA l_spoolid TYPE tsp01-rqident.
    Without archiving
      DATA: params LIKE pri_params,
      days(1) TYPE n VALUE 2,
      count(3) TYPE n VALUE 1, p_file TYPE rlgrap-filename,
      valid TYPE c.
      CLEAR l_spoolid.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination    = 'LOCA'
          copies         = count
          list_name      = 'TEST'
          list_text      = 'SUBMIT ... TO SAP-SPOOL'
          immediately    = 'X'
          release        = 'X'
          new_list_id    = 'X'
          expiration     = days
          line_size      = 132
          line_count     = 25
          layout         = 'X'
          sap_cover_page = 'X'
          cover_page     = 'X'
          receiver       = 'SAP*'
          department     = 'System'
          no_dialog      = ' '
        IMPORTING
          out_parameters = params
          valid          = valid.
      IF valid <> space.
        EXPORT g_flag TO MEMORY ID 'M1'.
        SUBMIT z_fi_exec_customercollection WITH s_kunnr IN s_kunnr
                                    WITH s_bukrs IN s_bukrs
                                    WITH s_budat IN s_budat
                                         TO SAP-SPOOL
        SPOOL PARAMETERS params
        WITHOUT SPOOL DYNPRO
        AND RETURN.
      ENDIF.
      DATA: lt_spooltab TYPE STANDARD TABLE OF  rsporq WITH HEADER LINE ,
        lc_rq2name LIKE tsp01-rq2name.
      CONCATENATE sy-repid+0(8)
                    sy-uname+0(3)
          INTO lc_rq2name SEPARATED BY '_'.
      CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
        EXPORTING
          rq2name       = lc_rq2name
          rqowner       = sy-uname
        TABLES
          spoolrequests = lt_spooltab
        EXCEPTIONS
          no_permission = 1
          OTHERS        = 2.
      IF sy-subrc <> 0.
        WRITE:/ 'Error in Find Spool request '.
      ENDIF.
      SORT lt_spooltab DESCENDING BY rqcretime.
      READ TABLE lt_spooltab INDEX 1.
      l_spoolid = lt_spooltab-rqident.
      SUBMIT rstxpdft4 WITH spoolno EQ l_spoolid
                       WITH download EQ 'X'
                       WITH  p_file EQ p_file
                       AND RETURN.
    ENDFORM.                    " PDF_DOWNLOAD
    *&      Form  SET_PF_STATUS
          Setting Modified Pf-Status to our program.
    -->  No Import / Export Parameters.
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZSTANDARD_ALV_C'.
    ENDFORM.                    " SET_PF_STATUS

    Hi,
    I dont know the possibility but we can do some thing by using the hirarchial list display, reduce the field lengths where ever is unnecessary you will get it.
    Regards,
    venkat appikonda.

Maybe you are looking for