PDF Generation has problems
Hi there,
Our company uses Colffusion to make PDFs for our client.
Recently, the PDF generation is incredible instable, causing
corrupt PDF files or performance issues.
I found out, that the problem lies within the including some
picture. This slows down almost everything or sometimes the
generation does not happen at all.
Is there a solution for this? Is there a hot fix for that?
Thanks for your reply
Try <cfreport> instead of <cfdocument> which give
better results for these type of pdf conversion and image
issues...
Similar Messages
-
PDF generation : FileNotFoundException problem
Hi all,
I'm developing a dynamic PDF generation module in web application using iText framework. This module creates PDF on the server side then sends it to the client. Sometimes, Even though the PDF file is created on the hard disk, I got FileNotFoundException when calling the servlet that sends it.
My program is very simple (no thread used) :
1- The client calls enters some inputs,
2 - The iText based class generates the PDF,
3 - The PDF created is saved as an attribute in the client session (HttpSession).
4 - The request is redirected to servlet that sends the PDF.
What could be the problem ?
thx,In fact, I don't know what you mean by:
3 - The PDF created is saved as an attribute in the client session (HttpSession).What do you mean by this? Did you save the proprietry PDF object? Or the java.io.File object? If it is the PDF object, does its class implement java.io.Serializable?
Um ... Here are some suggestions ...
First of all, make sure that the file really exists there.
Secondly, try to write a Java SE program to read the file using the absolute path you provided.
Then, if the Java SE program works, I think the reason may be that you haven't closed the "OutputStream" which writes the PDF file, or the security settings of your JSPServer prevents you from getting the file.
Asuka Kenji (UserID = 289)
(Duke Dollar Hunting now ...) -
PDF thumbnail generation has stopped working
Hello Together,
formerly I was using Adobe Reader X at an actual Patch Level on a 64 Bit Windows 7 system. At that time PDF thumbnails were no subject for me. Now I've upgraded to Adobe Acrobat X Pro and uninstalled Adobe Reader X. Then I wanted to use the thumbnails. That was no problem as I found a link to a tool which fixed my issue: http://forums.adobe.com/thread/305220
Everything worked fine for me, until I noticed that one of my applications needed an installed Adobe Reader to work properly. So I reinstalled the Adobe Reader on my system again. This caused to stop the thumbnail generation: PDF files which existed prior to the Adobe Reader installation still have a thumbmail icon preview, but those who were generated after the installation still appear as a PDF icon.
Before installation the fix from thread 305220 my workaround was to open Acrobat X, the navigate to the open dialog, moving to the folder with the PDFs within and wait that Acrobat finished the thumbnail generation. But this workaround now is out of service, too. So my assumption is, that reinstalling Adobe Reader screwed up something in my Adobe installation which I cannot find at the moment which has nothing to do with the initial problem with displaying thumbnails.
Performing some repair installation didn't help:
(1) repair Adobe Reader, then repair Adobe Acrobat --> no change
(2) repair Adobe Acrobat, then repair Adobe Reader --> no change
(3) repair Adobe Reader only --> no change
(4) repair Adobe Acrobat only --> no change
(1), then apply fix from thread 305220 --> no change
(2), then apply fix from thread 305220 --> no change
(3), then apply fix from thread 305220 --> no change
(4), then apply fix from thread 305220 --> no change
apply fix from thread 305220, then (1) --> no change
apply fix from thread 305220, then (2) --> no change
apply fix from thread 305220, then (3) --> no change
apply fix from thread 305220, then (4) --> no change
I hope, that I'm not the only one who got this problem and, hopefully, someone found a solution for this.
Regards
TheCuriousOneLoreto María wrote:
My IPod nano 2nd Generation, has stopped working, it gets frozen and I get a message telling to go to "www.apple.com/support" but I cannot get any support there, anyone knows if It can be repaied. Thanks a lot in advance. Regards. Loreto
Why not?
Did you at least download & read the user manual?
You can always call Apple Care if you are still under warranty. Otherwise, take your iPod to an Apple Store or an AASP. -
PDF printer has a problem with Safari in "Reader" mode in Windows7
As shown in the image above. When I try to use the PDF printer to print out a web page in Safari "Reader" mode, the lines near the bottom of each page get squeezed like this. There is no problem with XPS printer. I guess this problem is because of some incorrect settings in Safari or the PDF printer?
My system is Windows 7 Pro. I am using Acrobat X Pro. The page I am trying to print is http://en.wikipedia.org/wiki/Electronic_band_structure. This problem only happens when the webpage is adjusted into "Reader" mode in Safari.Many thanks for your reply!
I am sorry, I did not make my question clear. I would like to save some web pages only in "Reader" mode, because in this mode all the advertisements are filtered out and the pages look much nicer than the origional layout.
I first let Safari to active "Reader" by clicking "Reader" button.
Then I click "Print" button and select Adobe PDF as the printer.
The problem is the PDF file has something wrong (shown above), and I would like to know how to avoid this problem. -
Help: PDF Generation Problems in Reports 3.0
Hi Techies,
We are generating PDFs from Oracle Reports 3.0
The PDF generation is fine in some datbases.
But in some database,when the records are more, during PDF
generation, Dr.Watson error is encountered, saying access
violation.
Can any one please clarify whether the error is due to memory
constraints on the system or if it has something to do with
Oracle Reports setting, while generating PDFs.
Do note that the reports are running fine, when the report has
less number of records.
Any suggestion/tip is awaited at the earliest.
Thanks in advance,
Geoff
nullHi!
Remove cache from output dir from time time.
(i.e. from virtual dir where report server puts output)
let me know ...
later
Geoff (guest) wrote:
: Hi Techies,
: We are generating PDFs from Oracle Reports 3.0
: The PDF generation is fine in some datbases.
: But in some database,when the records are more, during PDF
: generation, Dr.Watson error is encountered, saying access
: violation.
: Can any one please clarify whether the error is due to memory
: constraints on the system or if it has something to do with
: Oracle Reports setting, while generating PDFs.
: Do note that the reports are running fine, when the report has
: less number of records.
: Any suggestion/tip is awaited at the earliest.
: Thanks in advance,
: Geoff
null -
PDF Generation problems in Reports 3.0
Hi,
I am generating PDFs from Oracle Reports 3.0
The PDF generation is fine in some datbases.
But in some database,when the records are more, during PDF
generation, Dr.Watson error is encountered, saying access
violation.
Can any one please clarify whether the error is due to memory
constraints on the system or if it has something to do with
Oracle Reports setting, while generating PDFs.
Do note that the reports are running fine, when the report has
less number of records.
Any help in this matter is appreciated.
Regards,
PRAKASH
nullHi!
Remove cache from output dir from time time.
(i.e. from virtual dir where report server puts output)
let me know ...
later
Geoff (guest) wrote:
: Hi Techies,
: We are generating PDFs from Oracle Reports 3.0
: The PDF generation is fine in some datbases.
: But in some database,when the records are more, during PDF
: generation, Dr.Watson error is encountered, saying access
: violation.
: Can any one please clarify whether the error is due to memory
: constraints on the system or if it has something to do with
: Oracle Reports setting, while generating PDFs.
: Do note that the reports are running fine, when the report has
: less number of records.
: Any suggestion/tip is awaited at the earliest.
: Thanks in advance,
: Geoff
null -
APEX 4.1 - APACHE FOP PDF generation problem.
Hi all,
I'm having problem with PDF generation using APACH FOP on OC4J.
When I test my print server as described here:
http://marcsewtz.blogspot.com/2008/06/heres-another-posting-on-pdf-printing.html
everything works without problem. But when I upload my Layout to APEX and try to generate PDF from apex I'm getting error:
oracle.xml.parser.v2.XMLParseException: Unexpected EOF.
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
at oracle.xml.parser.v2.XMLReader.popXMLReader(XMLReader.java:549)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1375)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:362)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:308)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:337)
at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:714)
at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:322)
at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
at apex_fop._jspService(_apex__fop.java:71)
[SRC:/apex_fop.jsp:21]
I could see similar post here:
Handling Special characters in call to apex_util.download_print_document
But it doesn't explain my case as it's crashing even when I generate empty pdf(no data so no special characters, only empty XML file with no data should be sent to print server)
Is there any way to see what xml is sent do print server for processing? That could eventually show where is a problem.
PaloMy mistake, there was really an "&" character in my template. now when I replaced it with %26 it works.
However I would be still interested if there is a way to see what data is APEX engine sending to print server cause it will help me to find this kind of errors.
Palo -
Pdf reader X has problems with small pdf and printer with post script driver
Hi friends.
I have installed new Reader X and then i saw that, when i print a very small pdf with about 50 kb and i print it on a Laserjet 4000 printer the printer has problem with the amount of data that reader 10 produces.
When i install a Postscript driver for the printer my computer makes up to 3.5MB printer data from a 50kb pdf.
When i install a PCL driver for the printer my computer makes only 350kb from the same 50kb pdf file!!!!
When i install Reader 9.3 the 50kb file becomes also only 350kb on the printer with post script driver, and i can print without problems also.
my printer has 8 MB Ram and that should be enough for 3.5MB printer data.
But when i print the pdf with 1 side only, the printer created a side who is only filled with 50% of the text, then there comes out a second page with the message.....not enough memory in the printer.
i can not change the postscript driver to a pcl driver cause our ERP System can not handle printer with PCL drivers.
Can someone help me please.........are there settings in Reader X who can solve my problem ???
Thank you very much for help!put ? after rwcgi60.exe
-
Very slow PDF generation when conditional text is hidden in FM 9.0
I am working on 96-page chapter of a larger book. A 7-page section of the chapter needs to be hidden until the next release, so I hid it with conditional text. After doing this, the "Save as PDF" printing process goes from taking 6-7 seconds to taking several minutes. If I unhide the conditional text in the same session, printing is very quick again.
I have no problem generating very PDF files with the PDF printer in other applications (Word, PowerPoint). The issue is specific to FrameMaker and the use of conditional text. What might be causing this?
I am using FrameMaker 9.0p255 and Distiller 9.0.
- ChrisHi Jeff,
These were good suggestions to try. Saving the document first has no effect on PDF generation.
However, I did find that printing to the Adobe PDF printer remains fast when the conditional text is hidden. That's quite an interesting finding! I did also notice that these two methods of PDF generation aren't identical:
"Save as PDF" opens an Adobe Distiller window, while printing to the Adobe PDF printer opens a different "Creating Adobe PDF" progress box (looks like it's from the printer driver itself).
"Save as PDF" generates a 1188k PDF file, while printing to the Adobe PDF printer generates a 1049k PDF file.
"Save as PDF" defaults to placing the PDF in FrameMaker's working directory, while printing to the Adobe PDF printer defaults to saving to the last place to saved a printed PDF file (awkward when working with multiple directories, as I often do).
When I do a "Save as PDF", FrameMaker does still spool to the PDF printer. It is this spooling that takes a long time. Once spooling is complete, then the Distiller window opens and the PDF is created very quickly.
I would still like to get "Save as PDF" working since it knows where to place the PDF file. No solution to the runtime yet, but at least there is progress... -
PDF generation with FOP throws NPE
Hi,
Stack trace
at oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:769)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:342)
I'm using standard Java 1.4 API calls to create a PDF document from a DOM with Apache FOP 0.20.5.
The servlet is deployed to Oracle 10g Application Server 9.0.4.0.0. With Tomcat 4.1.30 the same code executes without exceptions
Because I have to port our web application to Oracle for a new customer it is important for me to get this fixed soon.
Thank you
EckardLight at the end of the tunnel: It seems to work when FO and PDF generation are separated. Until now the DOM was piped into FOP who internally created the FO from SAX events and then seems to parse it again to create PDF.
I separated the two steps: There is no problem in FO generation, but due to a namespace problem subsequent parsing fails
("org.apache.fop.apps.FOPException: null:2:10 Root element is missing the namespace declaration: http://www.w3.org/1999/XSL/Format")
Now the correct exception comes up. Whether FOP SAX event listener is buggy or XML parser's error handling has a problem, I don't know
Thank you anyway
Eckard -
CFDOCUMENT PDF generation peformance on Linux running CF server 8 or 9 is horrible
Can anyone help me understand how I can get the <cfdocument> tag to generate PDFs in reasonable time (and without throwing timeout errors) when running on CF 8 on Linux? Running on CF 9 doesn't make a difference, either. I can run the same code that generates a PDF on a Win 7 system and it completes the 1-2 page PDF in seconds. Do the same thing in CF8/9 on Linux and it takes so long (minutes) and then throws a timeout error. When we tried using Railo instead of CF8/9 it ran fine as well.
Our apps guy figured out the problem after googling the error log message. To put this in context, the deployed app is running in a Tomcat container on Linux.
The root cause is Java's AWT thinking there should be an Xserver available to talk to. Somehow in the code interactions during the PDF generation, calls are made to an Xserver that doesn't exist, with an absurdly long timeout. Adding the line "-Djava.awt.headless=true" to the catalina.sh script has solved the issue.
Hope this helps others!
Tea man -
BI 7.0 Web PDF Generation
Hi folks,
I do have a severe problem with PDF generation and it looks like a common issue.
I integrated Button to convert my Management Webreport to PDF, no big issue so far.
But the generated PDF is not bevaing like expected. We do have a BI report that contains 3 charts horizontally alligned by a table to fit the screen and 1 table below
those charts.
This report fits perfectly on one page landscape.
When generating PDF locally (PDF generator installed on client PC) Internetexplorer ==>PDF works as expected.
When using the Button in Webtemplate to use the BI functionality to export to PDF the PDF is a mess.
All template items are displayed in sequence taht means instead of 3 horizontal charts I see 3 charts and 1 table underneath each other.
It looks like the old fashioned 3.x print function.
My question:
Is there a way to influence the PDF generation. Maybe a class ( like former 3.x Table Interface) to modify to render the PDF like the template appearance?
We cannot install PDF clients locally nor can we ship management those reports coming from BI. Report designer is no alternative because of missing functionality.
TIA
JoergThanks so far,
currently when using the container item and referring by command wizard ( export to PDF) the system is not generating any item.
Error Message 'file has no page and can't be opened...' occurs.
I think this is a really urgent Development issue because I think printing via PDF is getting more and more important since not everyone is using IE7 ( which is not fully supported by SAP either) to scale pages for printing.
Best regards
Joerg -
Crystal Report generate PDF with J2EE problem
Dear All
I am having a great problem on generating PDF file by Crystal Report in J2EE.
I have my J2EE application runs Crystal Report to generate PDF files.
However for a report, i hit the following error (red color) when the PDF is generating.
But is no problem for the other reports.
Here is the code that i used to generate the PDF
My OS and Java version as follows
Window 2003 server.
Java 1.4.2_04
Please Kindly Help
Thanks very much
public static void export(HttpServletRequest request, HttpServletResponse response, String reportPath, ArrayList paramList, ReportExportFormat outFormat) throws Exception{
System.gc();
HttpSession session = request.getSession(false);
Object reportSource = getReportSource(request, reportPath);
ReportExportControl exportControl = new ReportExportControl();
if(paramList != null && paramList.size()>0){
exportControl.setParameterFields(getParamFields(paramList));
ExportOptions exportOptions = new ExportOptions();
exportOptions.setExportFormatType(outFormat);
PDFExportFormatOptions pdfexpopts = new PDFExportFormatOptions();
exportOptions.setFormatOptions(pdfexpopts);
exportControl.setReportSource(reportSource);
exportControl.setExportOptions(exportOptions);
exportControl.processHttpRequest(request, response, session.getServletContext(), null);
exportControl.dispose();
public static IReportSource getReportSource(HttpServletRequest request, String reportPath) throws Exception{
ReportClientDocument oReportClientDocument = new ReportClientDocument();
HttpSession session = request.getSession(false);
oReportClientDocument.open(reportPath, 0);
return oReportClientDocument.getReportSource();
00:57:08,671 ERROR reportdefinition Thread-28 - Report printer was not valid, switching to default printer.
00:57:08,687 ERROR objectformatter Thread-28 - com.crystaldecisions.reports.dataengine.k: |Y
00:57:09,343 ERROR b Thread-28 - Disk Exporter: no output file was created by an exporter
00:57:09,343 ERROR b Thread-28 - PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); java.lang.IllegalArgumentExceptionHi,
I have tried this code but stil the same.
However i tried setup another tomcat and application in the other machine and the only job for the application is exporting the report that has problem, then the error is gone.
So i guess that is the memory size problem.
Thanks for this
One more question about the memory size between Tomcat and Crystal report.
I have set in catalina.bat as
set JAVA_OPTS = "-Xms2048M -Xmx1024M"
and CRConfig as
<JVMMaxHeap>1024000000</JVMMaxHeap>
<JVMMinHeap>512000000</JVMMinHeap>
1. Is that the correct setting.?
2. The memory in the JAVA_OPT and is the MAX and MIN memory that java would use,
then is the Max memory in CRConf is 1024M out of the java heap size or the application use another 1024 memory -
How do I get a refund on Export PDF that has ALREADY been agreed
On 1/21-1/22 I tried to 'renew' a subscription for Export PDF. By some error (maybe mine - I just dont understand the whole thing) my Bank was immediately charged for two subscriptions, each at a different price. I immediately "chat"ted with several reps (it was difficult to get onto the chat and find out how to cancel) and was assured that both would be cancelled and refunded. They weren't!
I waited a week. Was again frustrated by the chat hookup, and tried the 'cloud' retail product tel #, assuming it was wrong but that I could be switched to the correct one. Had a very pleasant chat, was assured that both would be cancelled and refunded, received 2 e-mails confirming the cancellations, each with a seperate "Case #". Felt pretty good! It had only taken me a week of reasonably diligent effort to get a very simple thing done! IT WASN"T DONE! (Yes, I apologize - I know I'm loud - but by now I've got steam coming out of my ears!)
Today I got an e-mail, telling me that the refund had been processed and the case # would be closed. I looked at my bank, and only one had been refunded! I reviewed all the other e-mails and the notes from the telephone calls and chats to be sure I hadn't misunderstood something. But, no I hadn't. I went to my Adobe on-line and looked up 'my orders' history. Sure enough one had been invoiced and refunded ( the lesser charge of the two) but the other had ONLY BEEN INVOICED - NOT CANCELLED. And it seems that every piece of this transaction generates a new "order" , "case" or some other "reference #" - none of which are tied together, except by the invoice amount, when it is mentioned - which it typically IS NOT.
My question, then, is : How can I get past this absolute frustration over every aspect of my interaction with Adobe and GET THIS TAKEN CARE OF?????????Hi Stacy,
What frustration? (Just kidding !)
As I mentioned, one of the two charges has been refunded. Credited by
Adobe on Jan 28, I believe I received it in my bank on Jan 30.
The other charge, $25.37 of order # AD011017507, has not been received
by my bank yet. But this can't be that much of a surprise, and has nothing
to do with "10 business days" for refunds to post.
To this minute, "My Orders" on Adobe website shows that the order #
AD011017507 was invoiced on January 22, but that no credit invoice has been
posted against this order to this moment!
Can you begin to understand the frustration of being unable, through
all attempts to untangle this mess, starting within one hour of the original
order, with I believe nine different "Chats", telephone calls and, finally
a "problem" posting, stretching over more than thirteen days. Of course
it doesn't make much sense to devote this much attention to less than $50
worth of stuff, but I do not let things like this dangle.
And can you imagine how loathe I am to deal with Adobe for fear of
some real problem?
At any rate, I would certainly be pleased if you can suggest a way for
me to extricate myself from this. Any help would be GREATLY appreciated!
Thanks for your time and any trouble,
Stephen Ellis
<removed by admin>
In a message dated 2/3/2014 4:08:59 P.M. Eastern Standard Time,
[email protected] writes:
Re: How do I get a refund on Export PDF that has ALREADY been agreed
created by StacySison (http://forums.adobe.com/people/StacySison) in
Adobe ExportPDF - View the full discussion
(http://forums.adobe.com/message/6082008#6082008) -
PDF file has features that are not supported?!?
Hi All,
I'm using Adobe Acrobat 9 Pro to create a FORM and then I
submit the form to Acrobat.com. The problem is that when users
follow the emailed link to acrobat.com, they can't enter data into
the form on the website. They have to download it into their local
reader to fill out the form.
This is the actual error message I get:
"This PDF file has additional features that are only
supported in Adobe Acrobat or Adobe Reader"
What am I missing here? I'm creating a form, in Adobe
Acrobat, that just has a few text fields and couple of checkboxes
on it - that's all there is to it.
Can someone tell me what the unsupported "additional
features" are so that I can disable them before submitting the
document to Acrobat.com?Hello recurry,
thanks for posting.
It does not look like you are missing anything really....The
workflow that you've laid out is the proper workflow for working
with Forms and Acrobat9/Acrobat.com.
You cannot edit the pdfs using acrobat.com. Each user will
need to download it, and definitely need to if they want to input
data to it.
Once they then submit their file, you should then see the
updates.
Thanks!
Pete
Maybe you are looking for
-
Whatever startup page I specify for 3.6.11, when I attempt to move to a new page (not a new tab), the new page opens as a new tab in the left third or so of the window, with the startup page occupying the rest. The startup-page tab contains no "X" to
-
Problem when using Polygonal lasso tool
Hello. Im just trying to create a simple triangle, but photoshop creates other chapes in addition when create it. Please see my attached image. The shape i created is the triangle, and photoshop put in the rest. This only happens when the shapes I cr
-
Getting error "Administrator has temporarily disabled user commands"
Hi , I am getting the error "Administrator has temporarily disabled user commands" while executing the report script. I have tried creating a new script and getting the same error. We are on 11.1.1.3 Appreciate any help.. Regards, Mahesh
-
Hi, when I explicitely use databing in my development, I often encounter the following issue : I link an ArrayCollection with a view component, in order to provide the data to display, using the {} syntax in the skin mxml class. In the .as skinnable
-
Install failure of elements 8 on mac (bundle)
I downloaded the dmg on receipt of the link that came with my bundled Bamboo tablet. But Installation repeatedly fails. It comes up with Adobe ps elements 8 installation failed. "Adobe Photoshop Elements 8 Error: Error 2. " Adobe Support Manager came