Fop printing returns 0 byte pdf files

Hi,
Spent the whole day trying to get a PDF document out of APEX using Fop, but no luck sofar. Interestingly "fop" in Dutch means: tease, fool, trick, hoax, badger, vex, swindle, hoodwink
I've tried OC4J/Apache Fop:
http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html#05
I've tried Cocoon Fop:
http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
Both OC4J and Cocoon work fine when trying their sample pages.
I've setup the Apex print server parameters pointing first to the oc4j printserver and then to the cocoon printserver.
This is as far as the documentation gets me. How do I get a document produced? Here is what I did:
I created a form with a sql_query report, entered some query (select * from user_tables) and enabled PDF printing.
Both OC4J and Cocoon produce a zero byte pdf document.
I wonder if the printserver a being called at all since no activity is logged in ...\cocoon\WEB-INF\logs\cocoon.log
How do I find out what is going on. Is Apex calling the print server at all? What logs to check, any additional info to be sent to logfiles?
Another strange behaviour. When I turned on printing for an existing report region the print link has the following URL:
http://ngdwsrv/pls/apex/f?p=107:2:278743463863218506:FLOW_XMLP_OUTPUT_R3825265334087776571_nlThis results in : 404 The requested URL /pls/apex/f was not found on this server.
Rene

Hello!
Help me, please!
I need to print reports in PDF.
What I did:
1 I installed Apache Tomcat 6.0.14
2 I installed Cocoon 2.1.10
All works fine! http://localhost:8080/Cocoon opened OK
3 I copied fop_post to \apache-tomcat-6.0.14\webapps\cocoon\ , now I have apache-tomcat-6.0.14\webapps\cocoon\fop_post\sitemap.xmap
4 In apex I choose : Oracle BI Publiser - Standart Support
print server host address 192.168.1.112
print server port 8080
print server script \cocoon\fop_post\
Now I make simple report consists from 1 column from a simple table like emp table, and choose.
Output format - PDF
Report Layout - Default Report Layout
Apex is English.
I read that can be problem if I'll write use point in (example) 0.5 and everywhere I used 1.
When I run the programm and click print button I have error message : Acrobat could not open 'a[1].pdf' because is either not a supported file type or because
the file has been damage ......
I saved this file and opened with text editor but there was nothing and size of this file is 0 kb.
PLEASE, explain me where is problem and how to solve it?
Thank you!!!

Similar Messages

  • Button - Print an external PDF file

    Hi all... I am trying to have a Button on my PDF to be able to PRINT and external PDF file from off of my site.
    any thoughts?
    Many thanks.,
    Dave

    Hi,
    use the pakage javax.print
    FileInputStream psStream;
    try {
    psStream = new FileInputStream("file.ps");
    } catch (FileNotFoundException ffne) {
    if (psStream == null) {
    return;
    DocFlavor psInFormat = DocFlavor.INPUT_STREAM.PDF;
    Doc myDoc = new SimpleDoc(psStream, psInFormat, null);
    PrintRequestAttributeSet aset =
         new HashPrintRequestAttributeSet();
    aset.add(new Copies(5));
    aset.add(MediaSize.A4);
    aset.add(Sides.DUPLEX);
    PrintService[] services =
    PrintServiceLookup.lookupPrintServices(psInFormat, aset);
    if (services.length > 0) {
    DocPrintJob job = services[0].createPrintJob();
    try {
         job.print(myDoc, aset);
    } catch (PrintException pe) {}
    Thanks,
    Snigdha Sivadas

  • [Applet]Printing issue with pdf files on Xerox 4595

    Greetings !!
    I'm trying to print to a Xerox 4595 printer from a Windows XP station (limited account) using a Java Web Applet.
    This applet generates pdf files which have to be printed.
    The Xerox 4595 uses a printing queue that is detected by the Applet.
    The problem is the following: usually when printing a simple local file from this computer there is a box that asks you your login to let you create a job and then print.
    When using the Java Applet, there is no way to have this print box displayed. We have the Java Print Dialog but once clicked on "Print" there is no box displayed to pass the login to the printer and let us print.
    Is anyone already worked with Xerox 4595 and experienced such issue ?
    How can I, using the Java language and modify the Applet, ask the printer to send me the dialog box asking for the login ? Without this login no jobs are accepted and we can't print the generated pdf files.
    I looked on the printer queue settings and it seems that the Xerox uses the IPP to communicate with the local computers in the office.
    The server from which the Applet is used is a openSuSE Linux Web server (apache2)
    How come using Linux workstations any pdf files are printed (on shared printers such HP laserjet) and under windows there is jammed characters and sheet feed instead ?

    A lot can depend upon which app your are using on your tablet device, the same applies to computer programs but apps are much worse.
    Which app are you using?
    I would try the free Adobe Mobile Reader. This product seems to support more features than other apps.
    There could even be issues with the type of tablet you are using. The Apple line may work better then Android devices since there is QA check and approval by Apple.
    Another factor is the how the PDF was created.
    How well are the maps displayed on your laptop or desktop? Try different values of zoom.

  • Used to be able to print multiple page pdf files on my HP 7310 all in one and then it stopped and would only print the curent page. This is tedious for long PDF docs. I am on 10.6.8 .

    Used to be ablert to print multiple page pdf files on my HP 7310 all in one printer and now I can only print the current page and therefore it takes forever printing them one by one. I am in version 10.6.8. Tried printing as image using the advanced click and that did not work either.  I have Adobe 9.0 reader installed.

    I tried this earlier, and I tried it again today.  Both times it said "Software Missing!"  and "HP Software required to connect to your printer over the network could not be found on this computer."  But when I tried to install the software (AIO_CDB_Net_Full_Win_WW_130_141.exe, which I downloaded from HP's web site), it wouldn't install, as described above.  In the diagnostic utility, I clicked "skip", and it said "Connection Verified!", and "The printer is connected to the network and the services related to the network connections have been verified and reset to a normal operating state.  Everything appears to work fine at this point.  Please doa test print to verify that the issue is resolved or click Skip to move to the next step."  I clickedthe "Test Print" button, and immediately it popped up a box that said "Test Print Failed."
    I tried again to install the HP software, and it installed, detected the printer, and asked me to select it.  I selected the printer, clicked "next", and it did its network diagnostics.  Then it said "Problem(s) found with your network" and "Problem(s) may exist with the network functions of your printer . . ."  I continued the installation without connecting to the printer.  Then I ran your network printer diagnostic tool again, and got the same result - "HP Software required to connect to youir printer over the network could not be found on this computer."

  • Word v.X no longer printing or creating PDF files (specific to one user)

    As of yesterday I cannot print from Word (v.X 10.0) documents or create PDF files from Word documents.
    I can print by logging out and using a test user ID.
    I can print after a safe restart (which disables many functions).
    I am still able to print and create PDF files from Pages, Firefox and other programs.
    When attempting to create a PDF from a Word file through the Print dialog box, then saving as PDF, I can see the "magnifying glass" image for the PDF briefly on the desktop, then it disappears.
    Apple Care Phone Support refuses to deal with Microsoft issues (even though it appears to be a print command failing within Mac OS steps of the process, and/or a Mac OS-generated and sorted plist file corrupting the process).
    Microsoft no longer supports the software (i.e., any file you are now using ending in .doc is no longer supported).
    Has anyone had a similar problem or an idea about what to do with likely culprit files?

    Sounds like a M$ problem to me.
    Can you save an Excel file as a PDF?
    There are .plist files in user>library>preferences
    that control the last used settings in apps.
    Quit the office app.
    Trash the com.microsoft.word.plist first.
    If that doesn't work trash the com.microsoft.office.plist
    PS What does yesterday have to do with PDFs not working?
    Something change?

  • Will not print anything but Pdf files!

    If I try to print anything at all other than a PDF file from Adobe only(other readers will not even work) very little of the page prints if anything at all. For example, I was trying to print a shipping label off of the website, and the only thing that would print was the barcode. Nothing else. I actually had to convert it to a pdf file and open it with Adobe, and then it printed perfectly. I have tried reinstalling, restarting, using the HP support doctor, which says absolutely nothing is wrong with my printer. I am at a loss to why it will only print pdf files from Adobe. Can anyone please help me?! I forgot to mention it worked perfectly about a month ago. We don't print a whole lot and didn't notice it was messed up until just a few days ago.

    Hey , Welcome to the HP Support Forums!
    I understand that when printing from your Windows 8.1 computer to your HP Deskjet 1512 All-in-One Printer, nothing is printing, except Adobe PDF files. I would like to assist you today with resolving this issue. Now, you indicate in your post that you had tried to print a shipping label from a website, and only the barcode prints. However, if you open the file up and print it from Adobe it appears to print fine. This leads me to believe that the actual issue that is occuring is a print system issue with the black cartridge. I know it may come as a surprise to hear that as Adobe is printing fine. However, when you print from certain programs on your computer the file is sent to the printer as an 'image' file. If your printer 'thinks' it is printing an image it will use a mixture of colour ink and black to print the black document. Therefore, what you may actually be seeing when you print from Adobe is colour ink mixed. To start troubleshooting I am going to have you print a Quality Diagnostics Report from your printer and this will help us to isolate this printing issue. Please follow the steps below.  How to Print a Quality Report: Load clean, white U.S. Letter or A4 paper in the input tray, if necessary.Press and hold the Power button. While holding down the Power button, press and hold the Cancel button. Hold them both down for 2 or 3 seconds.The test page prints. (1) Printed with the tri-colour cartridge(2) Printed with the black cartridge  If this Report prints perfectly: Then the printing issue that you're experiencing is not being caused by your products print system. Rather, there may be a driver conflict occuring between your Windows computer and your printer. Please do not proceed with troubleshooting at this time.  If this Report prints with missing black or other quality issues: Then the printing issue that you're experiencing is being caused by your products print system. To resolve this hardware issue can I please have you click here. Once the support document opens please choose the Windows 8 dropdown. Next, follow the steps under Solution one, Solution five, Solution six, and Solution seven. This includes any sub steps under the listed Solutions to complete. Once troubleshooting has been completed please print another Quality Diagnostics Report to confirm if the issue has been resolved. Please respond to this post with the result of printing the Quality Diagnostics Report. I look forward to hearing from you!

  • Why does a mail-merge in MS Publisher split into multiple files when printed as a pdf file?

    Why does a mail-merge in MS Publisher split into multiple files when printed as a pdf file?

    'Cuz that's what mail merges do.  They create multiple documents based on the parent doc and all the names/addresses in your data tables.
    Perhaps if you describe exactly what you're trying to do & why you need PDF, we can point you to relevant tutorials.
    Nancy O.

  • Create a Print button to Print a specific PDF File

    Hi,
    Need help with scripting. I'm creating a Menu Page where in I list the PDF files and right beside it put a PRINT BUTTON which of course will print that specific PDF file. Is this doable or not?
    Thanks.
    VicZam

    For more information on the print method, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.511.html
    Note the nStart and nEnd parameters in particular.

  • Printer filter to PDF file

    Hello everyone,
    I wonder how to set up a printer filter to pdf file on JDS/Linux?
    E.g OpenSuse 10 comes ready preconfigured with a printer filter to pdf file.
    Not sure if it may be Ghostscript that is used for this setup.
    Has any of you set up such a filter for JDS/Linux?
    Terje J. Hanssen

    A follow up:
    Looks like this is a feature of the KDE KPrinter, as the pdf filter was found in KDE desktop printer KJobViewer. The OOo one that I am aware of, I would expect works only internally from OOo applications, while the Kprinter's to pdf file filter looks to be general available for all applications, if I'm right.
    Tried also a Gnome login to OpenSuse, but didn't see the pdf file filter available for the "Gnome printer". Possibly can it be set up also here?
    Terje J. Hanssen

  • Can't get duplex print option for pdf files using  Adobe ReaderXI 11.0.04, Mac 10.8.5 with HP8600

    I get two-sided option for normal printing, but
    I can't get duplex print option for pdf files using  Adobe ReaderXI 11.0.04, Mac 10.8.5 with HP Officejet Pro 8600.  HP says it's an Adobe problem. I'm stuck.
    Thanks in advance.
    VO

    It depends where the pdf is located. If in the Finder or in an attachment to
    an email in Entourage, the message is ³You can¹t open the application
    ³Acrobat Reader 5.0² because PowerPC applications are no longer supported².
    If an attachment in an email that has come via Safari, the message is
    ³Safari can¹t open the file because no available applications can open it².
    In each case the menu bar is Finder or Entourage or Safari as the case may
    be.

  • Problems printing envelope from pdf file with logo & return address.

    I have the 6310 All-In-One Printer. I am experiencing major problems printing envelopes (standard size, #10) from a pdf file that is setup with a business logo, name , and address. First of all, the User Guide on page 63 directs you to load the envelope with the flaps up and on the left. This prints out return address in the lower right corner of the envelope front. I have insert the envelope opposite to the User Guide to get the information printed in the correct location, the upper left corner.
    Bigger problem - The logo, which is placed to the left of the business name and address will NOT print out. My preview printer window shows the logo, but it will not print. I cannot figure out what I am doing wrong.
    Suggestions???

    Kindly follow the steps here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01096354&tmp_task=useCategory&cc=au&dlc=en&lang...
    supported envelopes:
    Envelopes U.S. 10: 105 x 241 mm (4.125 x 9.5 inches)
    U.S. 9: 98 x 225 mm (3.9 x 8.9 inches)
    A2: 111 x 146 mm (4.4 x 5.8 inches)
    DL: 110 x 220 mm (4.3 x 8.7 inches)
    C6: 114 x 162 mm (4.5 x 6.4 inches)
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

  • Copying zero byte pdf files infinitely between shared computers

    I've just had a nasty experience (which has happened years before in lower operating systems) and is extremely annoying. My Mac Mini and MacBook are set to share files. On my Mini (running 10.7.5) I create a pdf file from a "Print this page" option on a Safari webpage  (using "Print this page" => PDF => Save as PDF). The file shows up ok in the finder of my Mini. Then in another finder window I open my shared MacBook (running Mavericks) and navigate to the folder I wish to copy into. 
    I drag and drop the file into said folder on the shared Mac, and an info window appears to show the copy process. There is a progress bar, but the process is never completed, but appears stalled. I go away and come back an hour later. Same thing still happening. I check on my MacBook and the folder is now filled with tens of thousands (literally!) of zero byte files, being added to infinitely.
    Talk about annoying! Then the finder balks at putting these in the Trash. Then the Trash balks at being emptied. I found the best thing is to drag out of the contaminated folder the files I keep, put them into a new folder, and trash the entire folder that has been filled with you-know-what. 
    I also turned off TechTool's Trash history option in Preferences, because that would be driven crazy by his process. I checked Activity Monitor, and Finder was shown as NOT RESPONDING several times during this process. Finally got rid of the files. Now I'm using DropBox to transfer files. Sharing web PDF's between my Mac's has become a hazardous experience.
    Anyone else have this experience? Any idea how to prevent it? Or is Apple needing to make a software update for this?

    More likely that Techtool needs to make an update.  Ask Micromat.

  • Printing problem with PDF files

    Hello. I recently have bought mac book (10.9). When I try to print pdf files, it does not work. I can print word files, but when I open a pdf file either by acrobat reader or preview, it does not print. Thank you very much for your help.

    Also having other "permission" based problems as well. Other people cannot open my PDFs even though I have not used any security. I'm thinking about getting a previous version of Accrobat Pro and installing that.

  • How to save print setup for pdf file so that every user can open and print w/o manually performing?

    Can is there a way to configure the print settings (i.e. paper size, orientation, etc.) and save this setting as part of the pdf file? I would like the users of pdf files to be able to open the file and simply print, without having to manually configure the print settings.

    Not sure if this will help. I got this information from the built-in help under Acrobat 9.
    Advanced
    Lists PDF settings, print dialog presets, and reading options for the document.In the PDF settings for Acrobat, you can set a base Uniform Resource Locator (URL) for web links in the document. Specifying a base URL makes it easy for you to manage web links to other websites. If the URL to the other site changes, you can simply edit the base URL and not have to edit each individual web link that refers to that site. The base URL is not used if a link contains a complete URL address.
    You can also associate a catalog index file (PDX) with the PDF. When the PDF is searched with the Search PDF window, all of the PDFs that are indexed by the specified PDX file are also searched.
    You can include prepress information, such as trapping, for the document. You can define print presets for a document, which prepopulate the Print dialog box with document-specific values. You can also set reading options that determine how the PDF is read by a screen reader or other assistive device.
    Create print presets
    A PDF can contain a set of print presets, a group of document-specific values that is used to set basic print options. By creating a print preset for a document, you can avoid manually setting certain options in the Print dialog box each time you print the document. It’s best to define print settings for a PDF at the time that you create it, but print presets provide a means to add basic print settings to a PDF at any time.
    Choose File > Properties, and click the Advanced tab.
    In the Print Dialog Presets section, set options and click OK.
    The next time you open the Print dialog box, the values will be set to the print preset values. These settings are also used when you print individual documents in a PDF Portfolio.
    Note: To retain a print preset for a PDF, you must save the PDF after creating the print preset.
    Print Dialog Presets
    Page Scaling
    Prepopulates the Page Scaling option in the Print dialog box with the option you choose:
    Default
    Uses the application default setting, which is Shrink To Printable Area.
    None
    Prevents automatic scaling to fit the printable area. This setting is useful for preserving the scale of page content in engineering documents, or for ensuring that documents print at a particular point size to be legal.
    DuplexMode
    For best results, the selected printer should support duplex printing if you select a duplex option.
    Simplex
    Prints on one side of the paper.
    Duplex Flip Long Edge
    Prints on both sides of the paper; the paper flips along the long edge.
    Duplex Flip Short Edge
    Prints on both sides of the paper; the paper flips along the short edge.
    Paper Source By Page Size
    Selects the option by the same name in the Print dialog box. Uses the PDF page size to determine the output tray rather than the page setup option. This option is useful for printing PDFs that contain multiple page sizes on printers that have different-sized output trays.
    Print Page Range
    Prepopulates the Pages box in the Print Range section of the Print dialog box with the page ranges you enter here. This setting is useful in a workflow where documents include both instruction pages and legal pages. For example, if pages 1–2 represent instructions for filling out a form, and pages 3–5 represent the form, you can set up your print job to print multiple copies of only the form.
    Number Of Copies
    Prepopulates the Copies box in the Print dialog box. Choose a number from 2 to 5, or choose Default to use the application default, which is one copy. This limitation prevents multiple unwanted copies from being printed.
    Thanks.

  • Why can't I print out a PDF file when I am on Firefox? It takes me to Preview to print instead of staying on Firefox.

    When I go to a website that has a PDF file and try to print it, it sends me to Preview and when I try to print, the computer freezes up. This does not happen on Safari. Why can't I print a PDF file when I am on Firefox?

    To print a PDF, you need to use the print command from the PDF reader plugin instead of firefox's one. If there is no icons bar in the plugin, try right-click on a page from the pdf -> Print.

Maybe you are looking for

  • IPhoto '08 wont open

    Hi everyone I have iPhoto '08 and iMac OS X 10.5.8 Yesterday I  imported a lot of photos from Photobucket to iPhoto.  They were imported OK.  A little later I attempted to open iPhoto by clicking on the dock but nothing happened. I have tried every w

  • Ora-01427 error

    Hi , i am getting Ora-01427 error when i ran below script . my sub query returns more than 1 row . please help me in fixing this . update registrant_address a set a.text_res_address_nbr = (select c.street_number from registrant_address e , registrant

  • PO tax setup MIRO payment issue

    We have the following scenario: PO set up with no tax. GR/IR posts correctly. But when doing MIRO and adding tax, selecting the calculate tax button, it posts it back to a write off account rather than posting directly to the original expense account

  • No update in my update tab yet...? Should've been 8 hours ago

    The OTA was supposed to push the ios 7 update to my phone at noon, and it's now 8 and nothing...my computer is at work, and I don't know what else to do?

  • Zen Stone Plus 4gb

    I was at the Download Page and I found that there is a Zen Stone Plus 4gb isn't there. I was wondering if this is a error or a 4gb Zen Stone Plus is planned. It will definitely be something I might consider. http://www.4freeimagehost.com/show.p...6fb