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
Solved

Joomla Articles with PDF

Posted on 2015-01-10
2
256 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

861 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