CPDF ERROR: [Image] Unable to get image: - tinymce

I have looked all over trying to find an answer to this but none of the solutions worked out!
I am trying to print out a PDF of a letter that someone creates with TinyMCE, the html text editor. We can print images from the web fine but when we try to hit pictures on the testing server we come up with
TCPDF ERROR: [Image] Unable to get image:
I have checked all the file permissions, curl and allow_url_open are both on/enabled.
I am pretty stumped please help if you can..

Simple, when referencing your image in TCPDF do not use absolute links such as /images/myimage.png
TCPDF does not use the website home structure, it uses the base operating system directory structure. So use a relaive link, such as: images/myimage.png if the folde images resided in the same folder as your tcpdf php file. Or ../../images/myimage.png if the it was below the tcpdf folder.
I had this same problem referencing my TTF font files. Should be an easy fix.

Related

AEM Design Importer - File Not Found

I'm having a problem with AEM's design importer and wondering if anyone else has seen this or has any suggestions..
After uploading my zip file with the following file structure the page is unable to find my JavaScript file or Fonts. It does however, render my CSS and images and html:
- index.html
- css\style.css
- css\bootstrap.css
- css\fonts\*various font files*
- scripts\customjavascript.js
- img\*various img files*
The error message in the console says
"headindex.htmlclientlibs.min.js does not exist or cannot be found".
The file path its looking to find this file is https://*aemserver*/etc/designs/default/canvas/*domain*/_jcr_content/importer/headindex.htmlclientlibs.min.js
When I look at CRXDe I can see that my js and font folder/files were successfully imported under etc/designs/default/canvas/importer/ with the following folder structure:
css/font/*font files*
headindex.htmlclientlibs/css/style.css
headindex.htmlclientlibs/scripts/customjavascript.js
A workaound I have found that works is as follows:
- copying the fonts folder and pasting it under the root of /importer
- copying the customjavascript.js file and pasting it under the root of /importer and also renaming it to headindex.htmlclientlibs.min.js
But our authors don't have access to make these changes so it would kind of defeat the purpose of implementing the importer page to begin with...
I've searched all over and have yet to find anyone else who's had a similar situation or anything in the AEM documentation that addresses this. Hoping this may lead to something as I'm at a bit of a dead end. Thanks in advance!

TYPO3 Empty line on top of downloaded files from server

On page I create File Links content element. I've uploaded some files (ext: dxf,pdf,xls).
All is fine, but when I try to download some files from server (not direct link e.g. uploads/media/example.pdf), they don't open.
e.g. with pdf files I have a message "pdf-file was manipulated since creation".
Then I use tool to compare the original and downloaded files (Meld on Linux). It says that downloaded file has an additional empty line on top. Does anyone know how to solve this problem?
Thanks in advance for your suggestions.
The problem is solved after checking all php files in typo3conf/ext/ folder on second breaklines after php closing tag

cannot find image of webite header in joomla

Am just beginning with joomla on a site that is already existing and was previously managed by someone else who is not available at the moment. I am trying to troubleshoot a problem why the website is displaying the header differently in different PCs but I am not being able to find the image of that header file. I tried to look for it under "site > media" but cannot find the image among the images in that area. I also tried to look for the path to the image through the template css and found this path ../images/logo.png which I believe must be the path to the header image but I honestly don't really know which path ../images/logo.png is but assuming it is the one under "media" then I still cannot find the image. Could you give me a clue on where the header image files could be found cause I've actually still failed? Or, could you make me understand this path ../images/logo.png or how to find an image on a joomla admin interface like say "logo.png". In fact I discover that on looking at the CSS for the template, the image paths found in it are not found in "Media"? Is there another path for the images in the template and how do I access them? I cannot FTP my host at the moment to view the physical files due to the long procedure needed so am hoping that there is a way to find it. I only have joomla admin access and nothing like Cpanel as yet. The joomla version of the site is 1.5.22 which I know is an old one but I plan to do first things first. Hope I've given enough infor.
Try using FireBug, or Chrome debugger - (press F12) and check "Click an element in the page to inspect" to see where the specific image is located exactly.

Downloaded ppt file seems to be corrupted

Recently I've integrated Google Drive with my iOS application. Everything works fine but .ppt files. Normally if a file is a Drive file I use downloadURL to download it. If the file belongs to Google Docs I use one of the exportLinks (exactly the same as Alain described it here).
However all .ppt files (with "mimeType": "application/vnd.google-apps.presentation") which come from Google Docs are corrupted after being downloaded (I use an export link with exportFormat=pptx). The same file downloaded via web browser works fine.
I use ASIHTTPRequest lib for downloading files (which also can be the reason of corrupted .ppt?).
Any ideas why only ppt files cause problems?
I can already tell you that the lib you're using isn't the cause:I'm not using it but I've the same problem: it seems that there the code received isn't 200 (if ($httpRequest->getResponseHttpCode() == 200)) as it shows me a specific error message I've asked to return in case of. Also, when I'm trying to download a presentation in PDF or txt, it shows the same error.
It's not really an answer but I'm trying to understand also why only presentations are causing problems.
EDIT: the code received is 302. If it can help...
EDIT 2: After trying, I noticed that the first parameter is the file id and the second the export format:
https://docs.google.com/feeds/download/presentations/Export?docId=filedid&exportFormat=pptx
But in the 302 code, I have this location:
https://docs.google.com/feeds/download/presentations/Export?exportFormat=pptx&id=fileid
Not only the two parameters aren't in the same order but the name is id and not docid
When I take this URL, put it as the export link and then try to copy the file, it's working. I get a 200 response and the inside of the file.
I hope it helps.

How do I view .asp Images?

I am trying to download images from a site using Perl to download and save them with LWP::Simple.getstore.
Here's an example of the URL
http://www.aavinvc.com/_includes/blob.asp?Table=user&I=28&Width=100!&Height=100!
Turns out the files are completely empty that I am getting with LWP. I even tried cURL and same thing, completely empty. Would there be another way to get these?
If the file really contains ASP, then you have to run it through an ASP engine.
If things worked properly, then the URL would return an image file with an appropriate content type. You've just saved it with a .asp extension.
The fix is simple: Rename the file (preferably by looking at the Content-Type header returned (trivial with LWP, but I think you'll have to move beyond getstore) and doing it in Perl.
Regarding the update:
I just tried:
#!/usr/bin/perl
use Modern::Perl;
use LWP::Simple;
LWP::Simple::getstore(q{http://www.aavinvc.com/_includes/blob.asp?Table=user&I=28&Width=100!&Height=100}, 'foo.jpeg');
… and it just worked. The file opened without a hitch in my default image viewer.
.asp is not an image format.
Here are two explanations:
The image are simple jpegs generated by .asp files, so just use them if they were .jpegs - just rename them;
You are actually downloading a page that says "LOL I trol U - we don't allow images to be downloaded with Simple.getstore.