pleymo Posted September 22, 2005 Share Posted September 22, 2005 I think I have it in php.ini ->extension=php_gd2.dll ( without ; ) I saw that i did not define it was like this //Height max in mm define('MAX_IMAGE_HEIGHT',''); Now i put define('MAX_IMAGE_HEIGHT','50'); Now I have no error and no pdf it's run and that all I saw in pdf_config this // Resize images, so the pdf is smaller but it needs time! // (set max_execution_time in php.ini to your value) what value must i put in set_max_execution? Another question about characteres in my pdf (without image) I have some à & − etc... how can I do to change this? Thanks a lot Quote Link to comment Share on other sites More sharing options...
pleymo Posted September 25, 2005 Share Posted September 25, 2005 Hello, it's finally works :rolleyes:... but around images there is a black border (in pdf_config is set to 0) How can I do to remove it? you can see an exemple here And for pdf introduction, I put style with css in my presentation but it is not appear in the pdf why? thanks Quote Link to comment Share on other sites More sharing options...
♥Vger Posted September 25, 2005 Share Posted September 25, 2005 This usually happens when your original image is smaller than the thumbnail. Vger Quote Link to comment Share on other sites More sharing options...
pleymo Posted September 25, 2005 Share Posted September 25, 2005 Ok and is it possible to reduce the thumbnail? Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted October 5, 2005 Share Posted October 5, 2005 I get an error: "Insufficient data for an image" when I open with acrobat reader Quote Link to comment Share on other sites More sharing options...
koopmanh Posted October 15, 2005 Share Posted October 15, 2005 I get an error: "Insufficient data for an image" when I open with acrobat reader Me too! I jst follews the instructions, and every image in my site is an JPG file Quote Link to comment Share on other sites More sharing options...
♥Vger Posted October 16, 2005 Share Posted October 16, 2005 Check in your osCommerce admin, under Tools --> Server Info to make sure that GB Library is supported on your server. All thumbnailing relies on GD Library being installed. This is mentioned in the Install instructions for this contribution. Vger Quote Link to comment Share on other sites More sharing options...
andrew40 Posted February 14, 2006 Share Posted February 14, 2006 Has anyone got this to work. I get three pdfs created but on opening I get a drawing error and no images....I am using the latest 1.59a contribution Quote Link to comment Share on other sites More sharing options...
TheExterminator Posted March 8, 2006 Share Posted March 8, 2006 Why Is only take the "Specials" to the pdf ??? http://the-exterminator.dk/webshop15/catal...webshop15_2.pdf What i do wrong. ??? Quote Link to comment Share on other sites More sharing options...
TheExterminator Posted March 11, 2006 Share Posted March 11, 2006 When i will have my picture on the pdf file, i get this error after i press "save" Missing or incorrect image file: C:/Apache2/htdocs/DOMAIN/Webshop15/images/microsoft/msimpro.jpgFPDF error: Not a JPEG file: C:/Apache2/htdocs/DOMAIN/Webshop15/images/ The jpg file are ind the folder. Someone now what wrong. ??? Quote Link to comment Share on other sites More sharing options...
TheExterminator Posted March 11, 2006 Share Posted March 11, 2006 Now I Can Make The PDF Catalog, But Now I Have A New Error. The Product Are There More End 1 Time, And DVD Can Be Under Hardware. Someone Now Why. ?????? Take A Look Here Quote Link to comment Share on other sites More sharing options...
TheExterminator Posted March 11, 2006 Share Posted March 11, 2006 The SQL In The admin/pdf_catalogue.php Is: select p.products_id, pd.products_name, pd.products_description, p.products_image, p.products_model, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s, " . TABLE_CATEGORIES . " c, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = s.products_id and p.manufacturers_id = m.manufacturers_id and products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_id = p2c.products_id = c.categories_id order by pd.products_name, p.products_date_added DESC"; Quote Link to comment Share on other sites More sharing options...
pacesettertack Posted April 10, 2006 Share Posted April 10, 2006 Hi Everyone - I have been getting this error and not sure how to fix (being a php super beginner). Warning: setfont(/fonthelveticab.php): failed to open stream: No such file or directory in /home/pacesett/public_html/ecommerce/os/catalog/admin/pdf_fpdf.php on line 569 Warning: setfont(/fonthelveticab.php): failed to open stream: No such file or directory in /home/pacesett/public_html/ecommerce/os/catalog/admin/pdf_fpdf.php on line 569 Warning: setfont(): Failed opening '/fonthelveticab.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/pacesett/public_html/ecommerce/os/catalog/admin/pdf_fpdf.php on line 569 FPDF error: Could not include font metric file Am I missing a file? Quote Link to comment Share on other sites More sharing options...
pacesettertack Posted April 10, 2006 Share Posted April 10, 2006 Also - I have installed the PDF Pricelist 1.1 Contribution and seem to be having a major problem with that as well. I have not seen any support threads for that. Is there any chance of some help with this: When I click save - this comes up... Warning: fopen(/home/pacesett/public_html/ecommerce/os/catalog/pricelist/pricelist_1.pdf): failed to open stream: Permission denied in /home/pacesett/public_html/ecommerce/os/catalog/admin/pdf_fpdf.php on line 1065 FPDF error: Unable to create output file: /home/pacesett/public_html/ecommerce/os/catalog/pricelist/pricelist_1.pdf Not sure where the error is in the code, but all the files related to this contrib have been set to 755 - but still getting the permissions error. Quote Link to comment Share on other sites More sharing options...
detsouvalas Posted April 10, 2006 Author Share Posted April 10, 2006 Hello! Concerning your previous post, yes, I would say that you are clearly missing a file! Warning: fopen(/home/pacesett/public_html/ecommerce/os/catalog/pricelist/pricelist_1.pdf): failed to open stream: Permission denied in /home/pacesett/public_html/ecommerce/os/catalog/admin/pdf_fpdf.php on line 1065FPDF error: Unable to create output file: /home/pacesett/public_html/ecommerce/os/catalog/pricelist/pricelist_1.pdf Not sure where the error is in the code, but all the files related to this contrib have been set to 755 - but still getting the permissions error. As for this post, I think that you should give Write permission to your 'pricelist' folder and not to the related files! Best regards, Antonios Quote Antonios Link to comment Share on other sites More sharing options...
Guest Posted April 14, 2006 Share Posted April 14, 2006 Hi I have just installed this contribution (v1.59) and everything seemed to be going well. Until I tried to generate a catalogue. This is what i get "The requested URL /admin/FILENAME_FORBIDEN was not found on this server." I also get the same error if i click PDF Introduction. Any ideas?? Regards Quote Link to comment Share on other sites More sharing options...
Guest Posted April 14, 2006 Share Posted April 14, 2006 also, is there any reason why there is 2 read me install files? both are different. Quote Link to comment Share on other sites More sharing options...
higgalls Posted April 15, 2006 Share Posted April 15, 2006 Hi I have just installed this contribution (v1.59) and everything seemed to be going well. Until I tried to generate a catalogue. This is what i get "The requested URL /admin/FILENAME_FORBIDEN was not found on this server." I also get the same error if i click PDF Introduction. Any ideas?? Regards Hey, that FILENAME_FORBIDEN must not be defined in /admin/includes/filenames.php I opened up mine and that line says: define('FILENAME_FORBIDEN', 'forbiden.php'); Then also check that the file exists in /admin/ (eg. mine is /admin/forbiden.php) However, I think even once you fix that problem up, you may still have problems as I dont know why it is going to the forbiden webpage instead of generating the catalogue. Anyway, see how you go. Cheers, Chris :) Quote Link to comment Share on other sites More sharing options...
Guest Posted April 15, 2006 Share Posted April 15, 2006 (edited) Hi Chris Thanks for your reply. Both the define and the file were there but they were spelt different. So I tried putting the spelling to how it said in the error (forbiden instead of forbidden), and now when i click generate i get this: HEADING_TITLE NAVBAR_TITLE TEXT_MAIN And then a back button. Which acording to the url, this is the forbiden.php page Regards Edited April 15, 2006 by ShimmyUK Quote Link to comment Share on other sites More sharing options...
Guest Posted April 15, 2006 Share Posted April 15, 2006 From what i can see, this may have something to do with another contribution i added : Access with Level Account v2.2a, as i think this is where the forbiden.php comes from. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 15, 2006 Share Posted April 15, 2006 Ok, scrub that, i now have that part sorted. I am now getting a popup window saying: Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked. any ideas? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 16, 2006 Share Posted April 16, 2006 nobody got any ideas what might be causing this error? Quote Link to comment Share on other sites More sharing options...
gregy Posted April 23, 2006 Share Posted April 23, 2006 Hi Why is it exporting all categories into PDF when i select just one .. i mean, what is a point of selecting categories .. or is it just my error? Quote Link to comment Share on other sites More sharing options...
gregy Posted April 23, 2006 Share Posted April 23, 2006 (edited) three questions more :) .. 1. how about transforming html in pdf file? i always use html code for description .. 2. how about characters .. windows-1250 .. where to set this? 3. Why is it at pdf_download_katalog.php it gives about 20 blank lines .. and begins with center page ... check out please Edited April 23, 2006 by gregy Quote Link to comment Share on other sites More sharing options...
Guest Posted April 24, 2006 Share Posted April 24, 2006 I installed this contrib but have a small issue. Here is my pdf_config.php file <?php /******************************************************************************/ /* PDF Catalogs v.1.55 for osCommerce v.2.2 MS2 */ /* */ /* by Antonios THROUVALAS (antonios@throuvalas.net), April 2004 */ /* by Nicolas Hilly (n.hilly@laposte.net), August 2004 */ /* */ /* Based on PDF Catalogs v.1.4 by gurvan.riou@laposte.net */ /* */ /* Uses FPDF (http://www.fpdf.org), Version 1.52, by Olivier PLATHEY */ /* */ /* Credit goes also to: */ /* - Yamasoft (http://www.yamasoft.com/php-gif.zip) for their GIF class, */ /* - Jerome FENAL (jerome.fenal@logicacmg.com) for introducing GIF Support */ /* in the FPDF Class, */ /* - The osC forums members (www.oscommerce.com/forums)! */ /* */ /* Please donate to the osCommerce Core Team! */ /* Freeware, You may use, modify and redistribute this software as you wish! */ /******************************************************************************/ // Directory where the generated PDF files will be stored! // If you mofify the name of this directory, please modify accordingly the //catalog/pdf_catalogue_info.php file!! // Don't forget to change the permissions of this directory to 755! define('DIR_WS_PDF_CATALOGS','catalogues/'); // Directory where the Font files are stored define('FPDF_FONTPATH','font/'); // Filename to use as a base for the name of the generated PDF files. // If you mofify the name of this file, please modify it accordingly in // the catalog/pdf_catalogue_info.php file, around line . define('PDF_FILENAME','catalog'); // Orientation of the pages (default A4) P = Portrait, L = Landscape define('PDF_ORIENTATION','P'); // Red, Green, Blue Components (Values between 0 and 255). // Eg. Use 255,255,255 for white and 0,0,0 for black! define('BACKGROUND_COLOR','255,255,255'); // The logo of your shop, to be displayed instead of the PDF_TITLE. Must be in // the catalog/images directory! Will be resized to have a height of 30 pt. define('PDF_LOGO','az_top_left.gif'); // Same title for all pages, will be used if the PDF_LOGO is not defined! define('PDF_TITLE','Outdoor Bits Catalog'); // Specify the catalog header date format define('PDF_DATE_FORMAT','%m/%Y'); //Base Currency define('CURRENCY',' ?'); //Put the currency to the left or to the right of the price 'R' or 'L' define('CURRENCY_RIGHT_OR_LEFT','L'); //How many digits after dot for the price define('DIGITS_AFTER_DOT',2); //Size of the char for the directories tree define('DIRECTORIES_TREE_FONT_SIZE',12); //Put the VAT if you want define('VAT',''); //Top page titles color define('HIGHT_TITLES_CELL_COLOR','255,153,0'); // Categories (separator) center page titles color (if activated) define('CENTER_TITLES_CELL_COLOR','255,153,0'); //Show or not the new products (0 = no, 1 = yes) define('SHOW_NEW_PRODUCTS',0); //New products title (same for all languages) define('NEW_TITLE','NEW'); //New products color title define('NEW_CELL_COLOR','248,98,98'); //Width max in mm define('MAX_IMAGE_WIDTH',100); //Height max in mm define('MAX_IMAGE_HEIGHT', 100); //pix to mm factor define('PDF_TO_MM_FACTOR',0.3526); //Show links to your Oscommerce products (0 = no, 1 = yes) define('SHOW_PRODUCTS_LINKS',1); //Show products image or not if not no links (0 = no, 1 = yes) define('SHOW_IMAGES',1); //Show categories tree or not (0 = no, 1 = yes) define('SHOW_TREE',1); //Show introduction or not (0 = no, 1 = yes) define('SHOW_INTRODUCTION',1); //Show the empty categories or not (0 = no, 1 = yes) define('SHOW_EMPTY_CATEGORIES',1); //Show table index of products (0 = no, 1 = yes) define('SHOW_INDEX',1); //Add a field aside the products name in the index (0 = nothing, 1 = manufacturer, 2 = model, 3 = date added) define('INDEX_EXTRA_FIELD',3); //Define a default image for products without photo, must be inside DIR_FS_CATALOG.DIR_WS_IMAGES define('DEFAULT_IMAGE','oscommerce.gif'); // insert a separator page between categories (0 = no, 1 = yes) define('CATEGORIES_PAGE_SEPARATOR', 0); // String appearing between categories and subcategories define('CATEGORIES_SEPARATOR', ' -/- '); // String appearing between names, subcategories and pages in the index define('INDEX_SEPARATOR', ''); // Blank lines before the products description cells define('PRODUCTS_SEPARATOR', 5); //Size of the border surronding the images of the products (0 = no, 0.2, 1 recommanded) define('SIZE_BORDER_IMAGE',0); // Border around products description (0 = no, 1 = yes) define('PRODUCTS_BORDER', 1); // Resize images, so the pdf is smaller but it needs time! // (set max_execution_time in php.ini to your value) // (0 = no, 1 = yes) // Set it to 0 if your are using GIF files, otherwise the script will generate // an error! I am still working on that, any help is appreciated! :-) define('RESIZE_IMAGES',1); //Show products name or not (0 = no, 1 = yes) define('SHOW_NAME',1); //Background color of the name cell define('NAME_COLOR','177,200,205'); //Show products name or not (0 = no, 1 = yes) define('SHOW_MODEL',1); //Show products description or not (0 = no, 1 = yes) define('SHOW_DESCRIPTION',0); //Show products manufacturer or not (0 = no, 1 = yes) define('SHOW_MANUFACTURER',1); //Show products prices or not (0 = no, 1 = yes) define('SHOW_PRICES',1); //Specials prices FONT color define('SPECIALS_PRICE_COLOR','248,98,98'); //Show products date added or not (0 = no, 1 = yes) define('SHOW_DATE_ADDED',0); //Show products tax class id or not (0 = no, 1 = yes) define('SHOW_TAX_CLASS_ID',0); ?> All my images are in .jpg format I click the Save button to generate the catalogue and get no errors, but when i view the pdf file i get an error on the first page that should display one of my product images. The error popup is as follows:- Image in Form, Type 3 font, or Pattern is too big. Anyone got any ideas, it all works fine with images switched off in config. The catalogue file can be seen here:- http://www.outdoorbits.com/catalogues/catalog_1.pdf Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.