Solved

Joomla Articles with PDF

Posted on 2015-01-10
2
265 Views
Last Modified: 2015-01-17
I have joomla 3.3.6 with phocaPDF plugion installed.  This works great. THe issues i run into is when  an article that get publioshed with an img src that is empty. <img src=""> This results in unable to find image. I f i use jquery to removed the HTML output  with  $("img[src='/']").remove();  the img tags are all removed but the i still get the error when running the PDF.


WHere can i put the code in phoca pdf  to remove this first.
0
Comment
Question by:augustkrys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
Steve Bink earned 500 total points
ID: 40544750
While I'm unfamiliar with the extension, I'm guessing it is using Joomla's article renderer to get the content.  The plugin then intercepts it and writes it to a PDF.  This means javascript will never have the chance to be run - the PDF will contain only the static content originally in the article.

One possible solution is to create another plugin that acts before PhocaPDF fires.  That plugin can find and remove any blank images, allowing Phoca to construct the page properly.

Another solution would be to make sure you aren't inserting images with a blank src attribute.  Create a transparent placeholder, if necessary, and reference that image instead.
0
 

Author Comment

by:augustkrys
ID: 40555619
I created the plugin - however the PDF is still seeing the empty src- I will clean up the logic at the upload to just eliminate the problem at the source.

Thanks for the steering me in the correct spot
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question