Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PDF Catalog v.1.5


Recommended Posts

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

Link to comment
Share on other sites

  • Replies 504
  • Created
  • Last Reply

Top Posters In This Topic

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

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

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

Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...

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. ???

Link to comment
Share on other sites

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";

Link to comment
Share on other sites

  • 5 weeks later...

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 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.

 

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

Antonios

 

olympicslogo_en.gif

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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 by ShimmyUK
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 by gregy
Link to comment
Share on other sites

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 ([email protected]), April 2004			   */
/* by Nicolas Hilly ([email protected]), August 2004						*/
/*																			*/
/* Based on PDF Catalogs v.1.4 by [email protected]					 */
/*																			*/
/* 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 ([email protected]) 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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...