Extensions > Tools

PDF error! [SOLVED]

<< < (2/3) > >>

Farhad Sakhaei:
Ok, I found the solution ...
Ignore all the last posts and do this :

Download attached file , Extract it and Replace the extracted file with file : \includes\tcpdf\config\tcpdf_config.php
----------------------------------------------------------------------------------------------------------------------------------
OR:
--------------------------------------------------
Edit \includes\tcpdf\config\tcpdf_config.php:
Replace :    

--- Code: ---define ("K_PATH_MAIN", $mainframe->getCfg( 'absolute_path' ).SEP."includes".SEP."tcpdf".SEP);
--- End code ---
With:

--- Code: ---define ("K_PATH_MAIN", $mainframe->getCfg( 'absolute_path' ).SEP);
--- End code ---

and

Replace :

--- Code: ---define ("K_PATH_FONTS", K_PATH_MAIN."fonts".SEP);
--- End code ---
With:

--- Code: ---define ("K_PATH_FONTS", K_PATH_MAIN.SEP."includes".SEP."tcpdf".SEP."fonts".SEP);
--- End code ---

Tell me the result , Now you can use both relative and absolute image path :)

[attachment deleted by admin]

datahell:
Test the above solution with various images (relative and absolute paths in various directories) and tell me if it always works.
If yes, we will added it to Elxis main release.

Farhad if you change the "K_PATH_MAIN" the script wont have problem including needed libraries? I think that you should only modify the "K_PATH_IMAGES" configuration parameter (I have nt tested it).

anacon:
Is working now. I make test.

Farhad Sakhaei:
Here is a complete test :
http://www.parsmizban.com/salam.html

Just a picture in another site that included in the page can't be include in the exported PDF , This is normal because the TCPDF can't access to the actual file resource ...

Check it fast , Because it is on my live site :D
I'll remove it tonight
Problem solved !

datahell:
OK, seems its working fine. I will also test it later and add it to Elxis.
Thanks farhad!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version