Tag Archives: tcp

to generate pdf download using tcpdf

Questions: i am not able to generate pdf download,my code is as follows,can anyone tell me what is wrong with this code. include ‘tcpdf.php’; $pdf = new TCPDF(); $pdf->AddPage(‘P’, ‘A4’); $html = ‘<html> <head></head> <body><table border=”1″> <tr><th>name</th> <th>company</th></tr> <tr> <td>hello</td> <td>xx technologies</td> </tr> </table> </body> </html>’; $pdf->writeHTML($html, true, false, true, false, ”); $pdf->Output(); ?> Answers:

TCPDF HTML with Special Characters displays empty PDF file

Questions: I am using TCPDF Library Version: 5.9.011. I am trying to execute HTML layout as PDF. For which I tried with example provide with the site $html = ‘<h1>HTML Example</h1> <h2>List</h2> Some special characters: &lt; € &euro; € &amp; è &egrave; &copy; &gt; \\slash \\\\double-slash \\\\\\triple-slash ‘; // output the HTML content $pdf->writeHTML($html, true,… Read More »

TCPDF ERROR: [Image] Unable to get image

Questions: I’m using TCPDF with Drupal’s print module to generate PDF of articles, & ending up with following error message when I click the link to generate PDF: TCPDF ERROR: [Image] Unable to get image: http://localhost/pathToDrupal/themes/bartik/logo.png The Image exists in the location specified. I tried applying: allow_url_fopen = On; allow_url_include = On; in php.ini but… Read More »

TCPDF adding digital signature to the created pdf

Questions: I have kind of weird problem. I’m struggling with a pdf digital signature problem since a while and it did’t working as I expect. Actually it doesn’t work at all. I used exacly same code as is posted in the Examples 52 page: // set certificate file $certificate = ‘file://var/www/app/tcpdf/config/cert/tcpdf.crt’; // set additional information… Read More »

TCPDF error :Unable to get the size of the image

Questions: I am using TCPDF to create dynamically generated pdf file . In my pdf file a image is generated based on user input and I want to add that image on my pdf file . Here is my code $map_image = “example.com/wp-content/themes/example/map_image_leasing.php/?city=Calgary&suit_type=&min_area=&max_area=”; $pdf->Image ($map_image, 55, 19, ”, ”, ‘JPG’, ”, ‘T’, false, 300, ”,… Read More »

Connecting to SQL Server from java with TCP disabled

Questions: I’m trying to connect to a local database (SQL Server 2008) from Java. I have disabled the tcp connections per customer requirements and I can’t connect. I have to disable too the service SQL Server Browser. I write the next statement in Java: conexion = DriverManager.getConnection(“jdbc:sqlserver://localhost\\SQLEXPRESS;user=user;password=password”); and I have the following error: “java.net.SocketTimeoutException: Receive… Read More »

Force the TCP/IP protocol in connection string

Questions: i have a database driven website written in asp.net. i’d like to modify the connection string to force protocol TCP. Please advise. Thanks! Answers: You can use server=tcp:hostname in your connection string to achieve this. For more details, see How to use the server name parameter in a connection string to specify the client… Read More »

SQL Server Exception: TCP Provider, error: 0 – The specified network name is no longer available

Questions: Good Morning! Apologies in advance, I do realize that similar questions have been asked but working through them has not resolved my issues hence this post. Before posting exception details here is the general overview: I have .NET 4.0 smart desktop application using SQL server (2005 and 2008r2) for data storage. In the database… Read More »