CFPRINT outputs empty page or garbled content

Hi all,
okay I have to explain our situation first:
We have CF9 on a Windows Server 2003 machine. Fully patched with all latest stuff.
On CF Admin I can see our printer attached to the server. The CF9 server runs under a specified user who has full access to the system and the printer.
We create a PDF document on the server by populating a PDF Form that was made with Adobe Acrobat 9 Pro (Live Cycle Designer).
If we want to print the populated form with cfprint programmatically (the PDF output can be viewed or printed with Acrobat Reader 9.3 without problems), the printout is either a completely blank page (printer attached to server) or a garbled page with missing letters or letters replace with squares (on an other printer on a duplicate setup: Quality Management System CF9 as well).
We did use CFPDFFORM populating an existing empty PDF Form because the form layout changes often and we didn't want to use CFDOCUMENT to create the PDF because we not wanted to rewrite the cfdocument PDF generating part everytime the PDF layout would change.
Someone has a hint what is going wrong here?
Thanks for all possible help

More or less a related issue with images.  Not sure if anyone following this thread can help.
I've been able to embed an image in my pdf form and actually display the image in the resulting pdf form.
Code is quite stright forward:
<cfpdfform action="populate" source="BdTv5.pdf" xmldata="#bonData#" destination="#expandPath('/grr.pdf')#" overwrite="yes" />
the xml data contains image data inserted in the xml using the toBase64() function.
As mentioined above, the dynamic result file 'grr.pdf' outputs the image correctly, ea. I see the image previously stored in the xml.
Once I flatten the pdf form to a static pdf file, the image is gone while the text data from the xml is still there and converted to 'static' text.
Code used to convert the pdf form to static Acrobat file:
<cfpdf action="write" flatten="yes" source="#expandPath('/grr.pdf')#" destination="#expandPath('/grrStatic.pdf')#" overwrite="yes" />
I hope I'm wrong and that I'm doing something wrong, but I suspect Adobe is blocking on purpose the ablility to flatten dynamicly inserted images in ColdFusion to sell more LiveCycle / InDesign stuff while ColdFusion could do an excellent job at a fraction of the investment.

Similar Messages

  • How to get an empty page to fill content?

    every time we open a new template page, we get this pic, all was filled with words, how to get a n empty page or delete the words auto?

    Thank you all,
    but I intent to have a layout like that without words, so that I can put down the content.

  • Firefox does not correctly print - creates empty pages and cuts of content when printing

    When trying to print out pages Firefox first prints a lot of empty pages, and then only a part of the content. Example:
    https://online.medunigraz.at/mug_online/wbTvw_List.lehrveranstaltung?pStpSpNr=182778
    When entering "print prview" you can see empty pages.
    When printing this page with Internet Explorer all is fine.

    Thanks for this hint, but it does not help.
    This problem does not appear in Internet Explorer, and it should be reproduceable. At least I thought so, so it would help if others could try to click on the link and try to print. They should have the same troubles.
    https://online.medunigraz.at/mug_online/wbTvw_List.lehrveranstaltung?pStpSpNr=182778
    I also attach a Screenshot so that you can see how the Print Preview looks like.
    Kind regards,
    Herwig

  • Empty page between frames in the output file

    Hi,
    I have two individual frames in the report one below the other each in different page. Everything is good but in the output pdf file I am getting an empty page between these frames. There is an empty page after the end of first frame data and before the begning of the second page data.
    Any suggestion would be a great help.
    Thanks

    Hi,
    I'm sure I'm pointing to the obvious answer, but have you checked that there is no page break before of after both blocks. Probably you have one more than you need.
    If you have defined one block in one logical page you do not need page breaks.
    I hope this helps you.
    Elisa

  • How to print a empty page in a Layout

    Hi experts,
    i have a small requirement in forms. In my sapscript form i have 2 pages. its displaying properly the invoice layout.
    But the new requirement is the user want to print a empty page as 1st page and remaining as per now current setting.
    How to print a empty first page in a layout using sapscript?
    Anyone help this issue?
    Mohaha

    Hi Mohana,
                    Create one new page and one window of almost page size with no contents.  Move that window to this page.  Keep this page as first page and give earlier first page as next page to this newly created page.
                    Hope this should solve the problem.
    Regards
    Sravan

  • How to delete empty pages in in-design document?

    Hi All,
           How to delete empty page which may contains text frame with no contents, or may be no text frame...
    Plz provide me the script...
    Thanks in advance,
    Vel....

    Indesign CS5.
    My script is,
    doc=app.activeDocument;
    pageObj=doc.pages.item(0);
    txtObj=pageObj.textFrames.item(0);
    var temp=doc.pages.length;
    for(var i=0;i<temp;i++)
        if(doc.pages[i].textFrames.item(0)!=null)
                if(doc.pages[i].textFrames[0].contents!=null) // here, i used "contents" instead of "lines". but also not working well...
                    alert(doc.pages[i].textFrames[0].contents);
                    alert("True");
                else
                    doc.pages[i].remove();
                    i=i-1;
                    temp--;
        else
          alert("False");
          doc.pages[i].remove();
          i=i-1;
          temp--;
    I've a sample document which contains a empty page without a text frame and another empty page with text frame with no contents on it... but my script remove only the empty page and not the empty page with txt frame...
    pLZ HELP JONGWARE...

  • How to copy and paste a multi-page table of contents?

    Hi everyone.
    I have a large document with a Table Of Contents extending over two pages. I'd like to copy the entire TOC then paste it into a new Pages document.
    I have been able to copy the TOC however when I try to paste it into a new blank Word Processing pages document the following Error message appears: "The table of contents is empty because none of the paragraph styles selected in the Document Inspector are used in the document."
    I can paste it into a blank Page Layout pages document however it pastes it into a text box with only one page of the TOC in it.  Even if the new Page Layout document has two pages and I extend the text box over the two pages only one page of the TOC is copied into the new Page Layout document. At the moment the only work-around I can do is to take a screen shot of each individual page of the TOC and paste them individually into a new pages document. I have tried exporting the entire original document to a plain text file however all the formating is lost (obviously).  I have also tried exporting the entire original document to a Word document (.doc) however it won't let me copy the multi-page TOC and paste it into a new Word document. 
    Is there any way to successfully copy a multi-page table of contents to a new Pages document?

    VQM wrote:
    Thanks Peter.
    PeterBreis0807 wrote:
    The TOC is a hyperlinked text derived from the contents of the file it was generated in.
    You can try exporting the pages the TOC is on as rtf, text or pdf and transferring that, but I would question the value of a TOC for one document being in an entirely different document, which doesn't have what the TOC is pointing to.
    Have you tried copying the T.O.C. Section from the document Thumbnails and pasting into the document Thumbnails of the 2nd document?
    Peter
    How does one export individual pages from a Pages document?
    I've also tried to copy the TOC section from the document thumbnail however I can't figure out how to select multiple pages in the document thumbnails.  It only allows me to select one at a time. Furthermore, when I do select a single page from the thumbnail section and attempt to drag and drop it into the the thumbnail section of the second document it picks up the whole document and wont allow me to move it from the thumbnail section of the original document.
    Shift click to select multiple pages, and I did say Copy and Paste, not drag and drop.
    Peter

  • Output whole page to excel

    In Marvel, there is a function 'CSV output' to output a region data to MS Excel. However, I would like to output whole page/multiple regions to MS Excel. Is there any good utility or way to do it? Thanks.

    we don't provide native support to allow you to dump whole pages to csv format. i'm assuming, by the way, that you're really just asking to see if it's possible to dump the contents of multiple report regions from a page to csv format. if i'm assuming correctly, the following trick/hack might work you:
    1) create your page with the multiple report regions on it.
    2) create another report region that returns the same data as your other report regions, but as one select statement.
    3) set that last report region to allow for csv download
    4) run your page and copy the url syntax for the csv download link that this last report region generates.
    5) set this last report region to Conditionally display "Never"
    6) add a link to your page that goes to the url you grabbed from your download link in step 4 (changing the hardcoded value for your particular session_id to the string "&SESSION.")
    assuming you're happy with the way your region from step 2 dumped to csv format, the link just you've set up on your page should return those same results.
    hope this helps,
    raj

  • Merge pdf - Empty page

    Guys,
    I am trying to merge some pdf files into one file. This is my code
    - (BOOL) concateFiles:(NSArray *) filePaths {
        PDFDocument * outputDocument = [[PDFDocument alloc] init];
        NSUInteger pageIndex = 0;
        for (id file in filePaths) {
            PDFDocument * inputDocument = [[PDFDocument alloc] initWithURL: [NSURL fileURLWithPath:file]];
            for (NSUInteger page = 0; page < [inputDocument pageCount]; page ++ ) {
                [outputDocument insertPage: [inputDocument pageAtIndex:page] atIndex:pageIndex++ ];
        //BOOL done = [outputDocument writeToFile: @"/Users/bubuzzz/test.pdf"]; // does not work
        NSError *error = nil;
        NSString * filePath=@"/Users/bubuzzz/test.pdf";
        NSData * data = [outputDocument dataRepresentation];
        BOOL done = [data writeToFile:filePath options:NSDataWritingAtomic error:&error]; // does not work either
        NSLog(@"Write returned error: %@", [error localizedDescription]);
        return done;
    There is no error during run time. However, the created file only has empty page, though the number of page is correct. The only thing I find out is using CGPDFContextClose to close the context to make it work fine, since it is stated in the document
    After closing the context, all pending data is written to the context destination, and the PDF file is completed. No additional data can be written to the destination context after the PDF document is closed.
    However, I have no idea how to integrate the CGPDFContextClose into my code. Any suggestion, please?

    Just change the above code to do a page by page vopy like yours and it works
    #import <Foundation/Foundation.h>
    #import <Quartz/Quartz.h>
    int main(int argc, const char * argv[])
        @autoreleasepool {
            // insert code here...
            PDFDocument * inputDocument;
            PDFDocument * outputDocument = [[PDFDocument alloc] init];
            NSUInteger pageIndex = 0;
            NSURL * pdfFile = [NSURL  fileURLWithPath:@"/Users/frank/Desktop/Hold/TX-SR304_En_0124.pdf"];
            // open old PDF
            if ((inputDocument = [[PDFDocument alloc] initWithURL: pdfFile]) == NULL) {
                NSLog(@"error opening");
                return 0;
            // copy old PDF to new PDF
            //outputDocument = inputDocument;
            for (NSUInteger page = 0; page < [inputDocument pageCount]; page ++ ) {
                [outputDocument insertPage: [inputDocument pageAtIndex:page] atIndex:pageIndex++ ];
            //write new PDF
            [outputDocument writeToFile:@"/Users/frank/Desktop/Hold/testCard.PDF"];
        return 0;
    When this is done testCard.PDF has the contents of the input file.

  • Print Preview is OK, Printed Out as empty page

    This is problem i faced, the printed report is not as per print preview
    When i send a customized report for printing, at User Own Spool Requests, print preview, the report is display correclty,
    but when i sent to printer, it is printed out as empty page. What could be the problem?

    Hi ,
    On that case there is a Problem with writing to spool.
    try to call the CALL FUNCTION 'GET_PRINT_PARAMETERS' before displaying the Report.
    see the wiki for sample code http://wiki.sdn.sap.com/wiki/display/Snippets/HowtoCreatePDFfromABAPLIST+Output
    Prabhudas

  • Cannot delete empty page without deleting others

    I have a page with headers and footers and two columns. When I try to add another page or paste a similar one from another document, it creates a new empty page in between them. So I have one section with one page of content and one empty one and another section with the new page with content. Whenever I try to delete the empty page, it deletes the one before it as well. I have switched on the invisibles and see that it has inserted a section break at the top of the empty page. However, if I delete this, my new page is gone. If I change it to a page break and try and get rid of the empty page, then the new (or pasted) page also gets deleted. I am at my wit's end. I am an Apple fan and recently changed my business to iMac and use iWorks, but did not expect silly issues like this.
    Please help!

    • I'm sure that you aren't using iWorks which doesn't exists.
    • Insert a section break in the pair of "grouped pages" this will cut the group in two separate pages.
    Yvan KOENIG (from FRANCE jeudi 3 juillet 2008 12:24:14)

  • Stop Smart from prinying Empty Page

    Hi All,
    I have a requirement where i have to do some process in the initailization of smartform and set a flag in that event.
    Now basing on the value of the falg of The output of Smartform is decided.If flag is 'X' then no output should be dispalyed.
    I used condition attribute of main window node.I am getting an empty page as output. Can i prevent this empty page output.

    Hi
    You can try to raise an exception, if you can't change the print program, use a std exception:
    in INITIALIZATION TAB:
    IF FLAG = 'X'.
      RAISE USER_CANCELED.
    ENDIF.
    Max

  • Why SmartForm Printing empty pages??

    Hi All,
           I got a production ticket belongs to shipment (VT03N) prints packing list smart form. The Output data is only 2 pages. but it is printing 68 pages. From last two years, the same smartform working fine.
    The first page prints only 3 materials, and 68th page prints grand total. Rest 66 pages empty (header prints on every page but no items)
    Only one shipment causes this problem. Rest all shipments are printing fine. Version 4.6C.
    I appreciate your suggestion.
    Thanks in advance,
    Ashok

    The empty pages can come because of couple of reasons:
    1. Check: If you have more than one line in your text element in your main window. If yes, than put the text element in the folder and set the "page protection on" on the folder.
    .... MAIN
    ......... TABLE
    ...............TEXT ELEMENT
    ........................LINE 1
    ........................LINE 2
    Should be
    .... MAIN
    ......... TABLE
    .............FOLDER  (Page protection ON)
    ...............TEXT ELEMENT
    ........................LINE 1
    ........................LINE 2
    2. Unnecessary COMMAND which triggers the next page. If yes than remove them.
    Regards,
    Naimesh Patel

  • RWRUN60 empty page on printer

    I call rwrun60 with parameters for printing:
    OARA_HOME\bin\rwrun60.exe my_report.rep username/password@db
    BATCH=YES DESTYP=PRINTER DESNAME=HPLaser2100 PARAMFORM=NO
    When 'HPLaser2100' is not the windows standard printer,
    I get an empty page; otherwise the report output is ok.
    ( the same, when I call run_product from forms ).
    What parameter I need???
    Thanks.

    This is an error in earlier versions of report 6i (use Reports Runtime 6.0.8.18.0).
    E.Wagner

  • Empty pages being generated when report spans multiple pages

    hi folks
    I have a problem when generating my pdf form that I hope you can shed some light on.
    Firstly, I have a table within a table.
    Eg. For each line of Table_1, a new page must be displayed.
    Then for Table_2 a list of employees with the matching criteria in line_1 of Table_1 are displayed on page 1. For the next line of Table_1, the same, and so on.
    My problem comes in when there are too many employees in Table_2 to fit on a single page, they span onto the next page (as they should), but the pdf form also now displays blank pages at random.
    Something like this:
    Page 1
    --empty
    Page 2
    -Table_1-Line_1
    -Table_2 (lines 1 - 30 of 35)
    Page 3
    -Table_1-Line_1
    -Table_2 (lines 31-35 of 35)
    Page 4
    -Table_1-line_2
    -Table_2 (lines 1 - 10 of 10)
    Page 5
    --empty
    Why the empty pages? Any help will be much appreciated.
    thanks.
    Also worth noting. If Table_2 doesn't span multiple pages, then I don't get the empty pages.
    thanks in advance
    Anton Kruse

    Hello,
    it is clear why your first page is blank. That is because you set "top of next page" (tab binding) for every line of the outer table so every "section" starts on the new page. That is why even the first page starts on the second page (top of NEXT page for the first line is SECOND page).
    About the last page... I have experienced problems when I used margins - when your page content is long, but not that long to break the page and you use a margin so the last row + margin should break the page, the last row is left on the last-1 page and the margin "appears" on the last page.
    Hope this helps a bit, Otto

Maybe you are looking for