I use this project to merge some PDFs :
https://github.com/libremente/PDFMerger
But recently it stops working, because of certain unsupported PDF.
I have an example of a file which doesn't work.
I can reproduce the problem locally, but there is no error in PHP logs, nothing.
How could I know what is going on in my PDF ?
Here is the properties of this faulty PDF in Acrobat :
Thanks
Related
I have a PDF which shows properly on the browser but some text is not showing on the PDF viewer on on UBUNTU, I checked the fonts of the pdf and it return
Syntax Error: non-embedded font using identity encoding: Arial-BoldMT
Syntax Error: non-embedded font using identity encoding: ArialMT
I tried to add font substitute but it is not working.
The actual text is
Benefits (After 90 Days Full Time)
but it shows like following
Benefits (After 90 Days)XOO7LPH)
I have installed arial font on ubuntu also but its still not working.
Please help.
UPDATE : The file is showing properly on adobe pdf viewer and browsers but not on ubuntu.
It appears to be a bug in Firefox.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1766039.
The same bug was also reported in pdf.js github https://github.com/mozilla/pdf.js/issues/15317
In RStudio (Windows 10) using bookdown, I am unable to compile a PDF version of my book. I get an error message "mathspec.sty" file not found. I installed it on my MikTex folder, but the error persists. How to solve this?
Then, I tried to compile to pdfdocument. Now, I got errors from Latex because bookdown is unable to link to my preamble.tex file. How to make preamble.tex visible?
I changed the latex _engine to pdflatex in the output.yml configuration file. This solved the problem for me, although I would still like to know how to use xelatex (i.e. where to include the mathspec.sty file).
everyone.
I started using mpdf on my website recently. Creating new pdfs is working fine, but i can't import existing ones. I get this error whenever i try to execute the import:
mPDF error: Cannot open ../folder1/folder2/folder3/folder4/folder5/thisisthepdf.pdf !
(that is not the real path)
I included the mpdf in the php. The folder and the files are on chmod 777 and the pdfs are all version 1.4
This is the way i am trying to import.
$mpdf=new mPDF();
$mpdf->SetImportUse();
$pagecount = $mpdf->SetSourceFile('../folder1/folder2/folder3/folder4/folder5/thisisthepdf.pdf');
$tplId = $mpdf->ImportPage($pagecount);
$mpdf->UseTemplate($tplId);
$mpdf->WriteHTML('Hallo World');
$mpdf->Output();
I tried various ways to import i found on stackoverflow and other sites, but nothing worked. Not even the code from the official mpdf manual i am using (the one above) is working.
Trying to solve this issue for quite a while now, but i am out of ideas. I Hope someone can help me. Thanks in advance!
This error message is raised because of a failing call of a simple fopen(). Which means that the PHP script simply cannot access the file.
So ensure that the path is valid by e.g. passing it to realpath(), as it seems to be a relative path. If this evaluates to false the path is simply wrong. Otherwise it is a permission issue.
I have created my custom component.
Every thing is working fine.
but when I am appending format=pdf in URL Joomla shows error
"0 - Invalid controller: name='xxxxxxxx', format='pdf'"
If I am adding format=html then its working fine.
I have followed this article for pdf generating.
joomla pdf
Thanks
Have you included your controller.php file in your custom component's XML manifest file? If you don't have it there, then this is most likely the cause of your problem.
I'm using Flash HTML5Canvas document to publish html files.
I want to add audio playback and started using SoundJS but having problems in using it.
I used the following code in the file.
createjs.Sound.registerPlugins([createjs.WebAudioPlugin, createjs.HTMLAudioPlugin, createjs.FlashPlugin]);
But when I publish it and and run it in browser(Chrome, Win7 Pro 64) I get the following error in console.
"Cannot read property registerPlugins of undefined"
When I checked the html source code, soundjs source is not mentioned. easeljs, tween & movieclip sources are mentioned.
How do I get this resolved?
Thanks :)
First I needed to edit the html file produced by flash cc.
I manually added the line
"http://code.createjs.com/soundjs-0.6.1.min.js"></script>
Double clicking the edited html file and running in browser gives HTTP errors.
So in the publish settings of Flash CC, I disabled the 'Overwrite HTML' option and then if I test/publish via Flash CC, Soundjs loads fine. It requires a local server to test it and I missed that part.