Using CakePDF Image not showing - cakephp

I am using CakePHP 2.3.6. I setup everything alright, bootstrap & core files are ok.
Now, the pdf file is generating nicely, but it doesn't have any image. But, my view file has an image, because I want that image in my generated pdf file.
I tried using fullbase=>true, but still my image is not showing in the pdf file
Can anyone help me ?
Thanks

Ok, I got a solution to this. Search for the following line
def("DOMPDF_ENABLE_REMOTE",false);
Make the line like bellow
def("DOMPDF_ENABLE_REMOTE",true);

Related

how can nightmare upload a image file?

Well.I use nightmare to do some test taskes.It's so good for basing on electron and phatomjs.
Now, I have a question about how can I upload a image file through nightmare?
Well.I find a plugin named night-upload. After it upload a image file successfully, the page become white and has nothing to show.
So.Is there some solutions to solve this problem?
Well. The plugin of night-upload can upload a image file through nightmare.
I had write relative path of image file before. So it has the problem as I said: the browser of electron will become white and show nothing, the main process has hang up. Now I change the image file to absolute path. It works!

Link to files form another solution

I want to show a image what is saved in another solution in the same project.
Solution TouchUI have a folder called images.
In Solution WebUI I want to load a image from the folder. How can I do that?
<img src="../WebUI/Images/movieimages/#item.MoviePicture" alt="#item.MovieName" class="img-thumbnail">
gives me a 404. Anybody an idea?
I copied the files to the new solution in stead of linking to another solution.

Wijmo and Dotnetnuke 7. Has anyone tried it? Not working

Has anyone tried using the wijmo widgets in DNN 7.+ ?
For my example I'm trying to use the upload widget.
If I upload to a path on my server and test, it works (As in the dialog appears to choose a file... the popup)
If I load it within a page on the site, the button shows but nothing happens when clicked.
All script files and necessary markup are correct.
No console erros, nothing. Very confusing.
Wijmo widgets work in DNN 7.+.
The “action” option should be changed to the server’s address of upload.ashx file.
Note: the upload sample can’t be opened by file path(d:/……/upload.html), please make sure it is opened on server.
Thanks,
Richa

CKEditor image upload - getting the upload file

I was working on a very simple and fast image uploader for CKEditor. It works all like a charm, the only problem now is the actual upload. I thought it would all be easy, but now I am stuck.
I have the CK file-field and figured I could just run an ajax request to my php uploading script, the problem is now: how do i get the file data to upload it. The Ajax does not have the post values, so I am lost.
Please lead me into the right direction.
Thanks very much.
When you use Ajax to post the form, your file upload function should be able to get the values from the form as usual.
For example, see this article: http://www.finalwebsites.com/forums/topic/php-ajax-upload-example
Well, i now used an iFrame with the form in it. Using uplodify in the iframe it put the path to the file in a hidden input which I can extract from the frame and use as the src form my image in CKEditor.

Problem publishing images in Silverlight PivotViewer

I'm working on a Silverlight PivotViewer app and using the Excel Pivot Collection tool to generate my image files. Everything works perfectly except some images are not being published by the tool. As a result, when the app launches, everything looks great except there are blank spaces where the unpublished images are supposed to be. All of their data/facets are available if I click on a "blank" image.
When I dig a little deeper and look at the files that are generated, the missing images are not there. What's more interesting, if I look a the cxml file. The images information is all there only the missing images are missing their "img" attribute. For some reason, the Pivot Collection tool recognizes that there are images but chooses not to publish them. I've tried re-creating the images as both PNGs and JPGs to no success.
Does anyone know why this is happening and how I can fix it?
Delete the entire collection_files folder and the cxml file. Republish the images and then add the newly published collection_files folder and cxml file to your project.

Resources