Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 807885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:28:26+00:00 2026-05-15T00:28:26+00:00

Hi i am using tcpdf in my application and i have two question about

  • 0

Hi i am using tcpdf in my application and i have two question about that.I am able to get pdf output of a html page when i click specified button.
My first question is:How can i download that html’s pdf output when i click that button?($pdf->lastPage() didn’work).
My second question is:How can i set character encoding for Trkish?(I am using dejavusans but some turkish characters appears as question mark)

Thank for advance…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:28:27+00:00Added an answer on May 15, 2026 at 12:28 am

    for the output you should take a look at the examples: http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples

    I would not recommend to set the character encoding to turkish. I recommend using utf8 instead. (dejavusans is not an encoding it as a font)

    <?php
    $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
    // create your PDF
    $pdf->Output(); // This will Output the PDF to the Browser if a Plugin is installed or download the PDF file if not
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to output a pdf on the fly using: Response.ContentType=Application/pdf I have
I am using TCPDF's writeHtml function for a page that renders properly in the
I just started using TCPDF (output with HTML), and I do not understand why
I have a PHP application that needs to generate some PDF invoices and PDF
I'm creating PDF files with PHP using TCPDF. I have a small problem with
My code to convert HMTL to PDF using tcpdf. $html = '<pre> <br/> <h3><a
I am using tcpdf to add a pdf to an email that is sent
I am using TCPDF to convert a page generated by php from a mysql
Using Nunit, I want to be able to write a test fixture that will
I have an html file named welcomemailtemplate.html and I need to convert that file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.