Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
Re:PDF Generator for the com_php (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:PDF Generator for the com_php
#895
Prakash2009 (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:PDF Generator for the com_php 2 Years, 9 Months ago Karma: 0  
Hi,

QUOTE:
An example for "pdf print email icon"

http://www.google.com/codesearch?q=pdf+print+email+icon+package:http://joomla-project\.googlecode\.com&origq=pdf+print+email+icon&btnG=Search+Trunk

The second result is probably what you're interested in.


Thank you so much for your valuable effort.

I want exactly what you have mentioned above but the problem is that the pdf and print icon is for articles. How can I do the same for com_php.

Plese help
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#896
Prakash2009 (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:PDF Generator for the com_php 2 Years, 9 Months ago Karma: 0  
Hi,

QUOTE:
An example for "pdf print email icon"

http://www.google.com/codesearch?q=pdf+print+email+icon+package:http://joomla-project\.googlecode\.com&origq=pdf+print+email+icon&btnG=Search+Trunk

The second result is probably what you're interested in.


Thank you for your valuable effort.

I want exactly the same implementation as you mentioned above.
Here, you have given code related to Articles but I need to implement the same with com_php.

I am in a stuck point, please help
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#897
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:PDF Generator for the com_php 2 Years, 9 Months ago Karma: 10  
Use the solution we just discussed on generating PDF for the PDF. Then link the pdf icon to that page.

You can get the contents of com_php by buffering output.

ob_start() and ob_end_clean().
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#951
Prakash2009 (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:PDF Generator for the com_php 2 Years, 8 Months ago Karma: 0  
Hi,

Still stuck with the same problem.

Getting this warning -

Warning: TCPDF::include(D:/Inetpub/wwwroot/_OPENSOURCE/tcpdf/fonts/freesans.php) [function.TCPDF-include]: failed to open stream: No such file or directory in D:\apachefriend\xampp\htdocs\staging\libraries\tcpdf\tcpdf.php on line 1909

I searched in other forums and found -
(http://forum.joomla.org/viewtopic.php?f=428&t=285175&start=0&st=0&sk=t&sd=a)

Found a temporary fix which worked for me, in pdf_fonts theres a file called 'freesans.php' make a copy of this and rename it to 'arial.php' then upload it too the pdf_fonts folder on your server. works fine for me

Tried this also but no success.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#952
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:PDF Generator for the com_php 2 Years, 8 Months ago Karma: 10  
TCPDF requires you to set the path to the fonts directory. If this is not set, it defaults to looking in the directory "fonts" under the directory the tcpdflib.php if found.

For example, in your setup, it would by default look in:

D:\apachefriend\xampp\htdocs\staging\libraries\tcpdf\fonts\

You can however set your custom folder that TCPDF should look for fonts.

eg:

define('K_PATH_FONTS', '/path/to/my/fonts/');
In your case, TCPDF is looking font font files in the directory: D:/Inetpub/wwwroot/_OPENSOURCE/tcpdf/fonts/ This is probably due to it being set in the default configs shipped with tcpdf: http://www.google.com/codesearch/p?hl=en#6zETlOCEHRQ/trunk/TrainingCompany/libraries/tcpdf/config/tcpdf_config.php&q=K_PATH_MAIN%20package:http://joomla-project%5C.googlecode%5C.com&l=41 You need to set this to a directory where your fonts are stored instead. You could also just instruct your code to look in the folder Joomla stores fonts:
define("K_PATH_FONTS", JPATH_SITE.DS.'language'.DS."pdf_fonts".DS);
http://www.google.com/codesearch?hl=en&lr=&q=K_PATH_FONTS+package:http://joomla-project\.googlecode\.com&sbtn=Search Or copy the fonts you need to a custom directory, and set that path as the fonts directory.
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/06/12 04:58 By admin.
  The administrator has disabled public write access.
#959
Prakash2009 (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:PDF Generator for the com_php 2 Years, 7 Months ago Karma: 0  
Hi,

Some how able to get the PDF generated by using your ideas.
Now the problem is -

I am having a HTML Table with values in textbox. When I try generating PDF, it shows only Label.
Did in the following way -

$ch = curl_init('http://www.parascale.com/images/tco/test.php';
curl_setopt_array( $ch, $options );
$content = curl_exec( $ch );
$err = curl_errno( $ch );
$errmsg = curl_error( $ch );
$header = curl_getinfo( $ch );
curl_close( $ch );

Also, how Flash items can be generated as PDF content.

Thanks for your instant responses.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.