Solved

Joomla Articles with PDF

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

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This article discusses how to implement server side field validation and display customized error messages to the client.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

695 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