Pdf generates with css and images using #Server.MapPath("~/Content/... Loading the view (not as pdf takes secons) but generating pdf takes ages, about 5 minutes. Downloade latest wkhtmltopdf.exe but nothing solves my problem.
Please note, the pdf generates fine after intensive research about css and images and relevant files. The issue now is speed.
Related
I used TCPDF in Laravel project for output pdf that was couple weeks ago. It worked perfect. I copy the project folder for backup. Today I tried to output pdf. Error 503 shows up. so I used backup data but it also problem browser ask me to open pdf or save pdf, when I open it it's all white blank pdf page. I'm guessing Is it my CDN problem?
I need pdf output function. Could you teach me what is cause please? and also if you have recommendation. I would like to know other PDF output library.
I have a compiled css file (swf) which I am loading in my preintialize phase of my spark application in adobe flex 4.1.
I have observed that for every user, the first time, the page loads without any css and in a second or two the CSS loads and there is a flicker.
I understand that it takes time to download the swf from server and hence, the flicker appears. After this, the browser caches the same and hence we don't face this on other views.
Could anyone please suggest how can I avoid this flicker? How can I enforce the swf to be cached first and then load the page?
I found the solution to this. It has 2 steps:
Prefetch the css swf file in html before running the flex application swf made the css available in cache before the app loaded. It removed the flicker.
The css swf file was trying to reach out to crossdomain.xml CDNs of adobe which were blocked by my firewall. As a solution, I set static-link-runtime-shared-libraries to true in my mxmlc compiler arguments. It made my css swf file a bit larger, but now it does not lookup adobe CDNs anymore.
I'm using dompdf for generating pdf in one of my php application. It's working fine. Now client want to merge pdf using PDFLib. But getting font issue. Below is the scenario:-
1) sample.pdf (this pdf generated by dompdf)
2) demo1.pdf (normal pdf downloaded from internet)
3) demo2.pdf (normal pdf downloaded from internet)
Now client is trying to merge all these 3 pdfs with pdflib. demo1.pdf and demo2.pdf is looking good in merged pdf but sample.pdf is giving an font issue. content of sample.pdf in merged pdf are not understandable.
Any idea how to recover from this situation?
I've got a C# application targeting .net 4. The application includes some Crystal Reports reports which can be printed or previewed. My code uses:
CrystalDecisions.CrystalReports.Engine.ReportClass
There is a report, created with Crystal 2008, which dynamically fetches one or more images from the file system. I'm running into problems when those images are large.
For example:
The report is trying to include 4 images (each on their own page)
The source images (.jpgs) are 3.5 megs each
When I print or preview that report, generally the first 2 images appear, but then no more. Then if I try again I generally will not see any of the images and often get this message box (when previewing):
Crystal Reports Windows Forms Viewer
Memory full.
Not enough memory for operation.
My application is using about 600 megs at that point.
If I swap out those large images for smaller ones (about half a meg each) I'm able to view the report without any problems.
If I preview the same report, with the big images, from within the Crystal Reports 2008 editor, it works perfectly well.
So is there a limit to how many megs of image data I can put into a report when using CrystalDecisions.CrystalReports.Engine.ReportClass? Or am I doing something wrong?
Had the same issue with reports containing more than 3 images. Solved by changing a setting in the RPT file.
Open your Crystal template, go into File -> Report Options, and unflag the "Retain Original Image Color Depth".
This will show pictures with a reduced quality, but will never make the report fail because of "Memory full". At least, that was my case.
I have a site - www.jcrocetta.com.
On this site I have 2 pdf files. One file has blurred data and the other is clear, both files were created with pdftk.
In order to blur out some personal data in the pdf I used Inkscape. But Inkscape only opens/edits one PDF page at a time. After I made my edits in Inkscape I saved the files as .pdf formatted files. At that point I had three separate pdf files, pages 1 through 3. I then used pdftk to concatenate the 3 files into one.
The final pdftk-produced files are on www.jcrocetta.com. Just click the public information button.
In Chrome viewing inline works fine.
Downloading the file from Firefox works fine too.
But viewing inline on Firefox it renders blank pages. How can I fix this?
Also, I know that pdf files not produced with pdftk will render correctly on both Chrome and Firefox.
Thanks for your help.
FireFox has a lovely new feature: It now uses the PDF.js library to render PDF files, instead of calling out to an Adobe Reader plugin, or forcing you to save the file to disk. Unfortunately, it seem that PDF.js isn't quite perfect yet. A quick search shows that other people have the same issue, but the only "solution" I've seen offered boils down to "file a bug report at https://github.com/mozilla/pdf.js/issues or https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=PDF+Viewer".
Also: Do the three individual PDF files render in FireFox, before you use pdftk to concatenate them?