font issue in pdf merging - dompdf

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?

Related

Issue uploading specific PDF documents within my Laravel CRM application

I was hoping someone could shine some light on a strange issue I have stumbled across recently within my Laravel CRM application. I am using MultiCRM + Laravel BAP to operate a small CRM system on my server.
The issue I am experiencing is that when I upload "specific" PDF documents through the CRM's AJAX file uploader, the file uploads and reaches the 100% stage and thereafter the following error is being returned:
Unprocessable Entity
I have reviewed the error status/message within the Network tab of my Developer Console and I am seeing the following error:
The given data was invalid - The files must be a type of Jpg, jpeg,
png, pdf, txt, doc, docx
Some PDF's I can upload perfectly fine whereas other PDF's seem to be failing. I have checked the Properties of the file which I am attempting to upload and I can confirm that the file extension resembles the exact same of the PDF files which are uploading perfectly fine.
I have also reviewed the max_upload_size and post_max_size within my php.ini and I can confirm the values set in there are fine. I have tried to upload larger zip files 20mb+ to rule out any file upload size limits, and I can confirm that the zip files in question uploaded and saved perfectly fine.
I am just a little confused with why certain PDF files will upload and others won't.
If there any particular files which you should need to see, please let me know and i would be happy to provide the source code :-)

TCPDF display blank page suddenly in Laravel

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.

Rotativa ViewAsPdf very slow on production on windows server 2012

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.

Open downloaded file in browser pdf format

I am using paperclip to upload docx doc and pdf files to my railsapp, is there any way I can view this uploaded files in the browser itself in pdf format, without downloading it ?
Try pdf.js.
Firefox recently started using it as viewer for PDF files, but you can integrate it in your app. But you still need to 'download' it, that is, load into the browser.

Why pdftk produced pdf files will not render in Firefox?

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?

Resources