Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

HTML2FPDF::DisplayPreferences()  Error

Posted on 2008-10-01
3
Medium Priority
?
3,727 Views
Last Modified: 2013-12-12
I am using this dreamweaver extenstion that converts php pages to pdf (http://www.fmwebschool.com/dw_pdf.php)

Every time I run this i get error:

Fatal error: Call to undefined method HTML2FPDF::DisplayPreferences() in C:\xampp\htdocs\dom\PDF_Module\lib\html2fpdf.php on line 155

Line 155 is:   $this->DisplayPreferences('');

I am running XAMPP on XP Pro SP2

need help why i am getting error.
function HTML2FPDF($orientation='P',$unit='mm',$format='A4')
   {
      //! @desc Constructor
      //! @return An object (a class instance)
      //Call parent constructor
      $this->FPDF($orientation,$unit,$format);
      //To make the function Footer() work properly
      $this->AliasNbPages();
      //Enable all tags as default
      $this->DisableTags();
      //Set default display preferences
      $this->DisplayPreferences('');
      //Initialization of the attributes
      $this->SetFont('Arial','',11); // Changeable?(not yet...)
      $this->lineheight = 5; // Related to FontSizePt == 11
      $this->pgwidth = $this->w - $this->lMargin - $this->rMargin ;
      $this->SetFillColor(255);
      $this->HREF='';
      $this->titulo='';
      $this->oldx=-1;
      $this->oldy=-1;
      $this->B=0;
      $this->U=0;
      $this->I=0;
 
      $this->listlvl=0;
      $this->listnum=0; 
      $this->listtype='';
      $this->listoccur=array();
      $this->listlist=array();
      $this->listitem=array();
 
      $this->tablestart=false;
      $this->tdbegin=false; 
      $this->table=array(); 
      $this->cell=array();  
      $this->col=-1; 
      $this->row=-1; 
 
      $this->divbegin=false;
      $this->divalign="L";
      $this->divwidth=0; 
      $this->divheight=0; 
      $this->divbgcolor=false;
      $this->divcolor=false;
      $this->divborder=0;
      $this->divrevert=false;
 
      $this->fontlist=array("arial","times","courier","helvetica","symbol","monospace","serif","sans");
      $this->issetfont=false;
      $this->issetcolor=false;
 
      $this->pbegin=false;
      $this->pjustfinished=false;
      $this->blockjustfinished = true; //in order to eliminate exceeding left-side spaces
      $this->toupper=false;
      $this->tolower=false;
      $this->dash_on=false;
      $this->dotted_on=false;
      $this->SUP=false;
      $this->SUB=false;
      $this->buffer_on=false;
      $this->strike=false;
 
      $this->currentfont='';
      $this->currentstyle='';
      $this->colorarray=array();
      $this->bgcolorarray=array();
      $this->cssbegin=false;
      $this->textbuffer=array();
      $this->CSS=array();
      $this->backupcss=array();
      $this->internallink=array();
 
      $this->basepath = "";
 
      $this->outlineparam = array();
      $this->outline_on = false;
 
      $this->specialcontent = '';
      $this->selectoption = array();
 
      $this->shownoimg=false;
      $this->usetableheader=false;
      $this->usecss=true;
      $this->usepre=true;
   }

Open in new window

0
Comment
Question by:davlynmfgit
[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
3 Comments
 
LVL 48

Expert Comment

by:hernst42
ID: 22618065
As that is commerical software I suggest you use their support as you might not be allowed to post the complete or even snippets of the class (which would be required to track that error down).
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 22620272
hernst42,

The extension automates the configuration of the open-source HTML2PDF class for DW users.  The code above is okay...it's no different than if someone hand-coded it.  Decompiling the extension and posting that code would not be :)
0
 

Accepted Solution

by:
davlynmfgit earned 0 total points
ID: 22623862
I removed xampp and installed wamp. problem fixed.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This article discusses four methods for overlaying images in a container on a web page
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 …
Suggested Courses

636 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