# PDFTOHTML - program to convert PDF files into HTML, XML and PNG im... - man(1) - [phpMan]

> **TLDR:** Convert PDF files into HTML, XML, and PNG images.
>
- Convert a PDF file to an HTML file:
  `pdftohtml {{path/to/file.pdf}} {{path/to/output_file.html}}`
- Ignore images in the PDF file:
  `pdftohtml -i {{path/to/file.pdf}} {{path/to/output_file.html}}`
- Generate a single HTML file that includes all PDF pages:
  `pdftohtml -s {{path/to/file.pdf}} {{path/to/output_file.html}}`
- Convert a PDF file to an XML file:
  `pdftohtml -xml {{path/to/file.pdf}} {{path/to/output_file.xml}}`

*Source: tldr-pages*

---

[_PDFTOHTML_(1)](https://www.chedong.com/phpMan.php/man/PDFTOHTML/1/markdown)                           General Commands Manual                          [_PDFTOHTML_(1)](https://www.chedong.com/phpMan.php/man/PDFTOHTML/1/markdown)

## NAME
       pdftohtml - program to convert PDF files into HTML, XML and PNG images

## SYNOPSIS
       **pdftohtml _**[options]_ _<PDF-file>_ _[<HTML-file>_ _<XML-file>]_

## DESCRIPTION
       This  manual  page documents briefly the **pdftohtml **command.  This manual page was written for
       the Debian GNU/Linux distribution because the original program does not have a manual page.

       **pdftohtml **is a program that converts PDF documents into HTML. It generates its output in  the
       current working directory.  If _PDF-file_ is ´-', it reads the PDF file from stdin.

## OPTIONS
       A summary of options are included below.

### -h, -help
              Show summary of options.

### -f <int>
              first page to print

### -l <int>
              last page to print

### -q     

### -v     

### -p     

### -c     

### -s     

### -dataurls
              use data URLs instead of external images in HTML. No available in all platforms

### -i     

### -noframes
              generate no frames. Not supported in complex output mode.

### -stdout
              use standard output

### -zoom <fp>
              zoom the PDF document (default 1.5) (1 means 72 DPI)

### -xml   

### -noroundcoord
              do not round coordinates (with XML output only)

### -enc <string>
              output text encoding name

### -opw <string>
              owner password (for encrypted files)

### -upw <string>
              user password (for encrypted files)

### -hidden
              force hidden text extraction

### -fmt   
              not specified, -fmt png will be assumed

### -nomerge
              do not merge paragraphs

### -nodrm 

### -wbt <fp>
              adjust  the  word break threshold percent. Default is 10.  Word break occurs when dis‐
              tance between two adjacent characters  is  greater  than  this  percent  of  character
              height.

### -fontfullname
              outputs the font name without any substitutions.


## AUTHOR
       Pdftohtml  was  developed by Gueorgui Ovtcharov and Rainer Dorsch. It is based and benefits a
       lot from Derek Noonburg's xpdf package.

       This manual page was written by  Søren  Boll  Overgaard  <<boll@debian.org>>,  for  the  Debian
       GNU/Linux system (but may be used by others).

## SEE ALSO
       [**pdfdetach**(1)](https://www.chedong.com/phpMan.php/man/pdfdetach/1/markdown),  [**pdffonts**(1)](https://www.chedong.com/phpMan.php/man/pdffonts/1/markdown), [**pdfimages**(1)](https://www.chedong.com/phpMan.php/man/pdfimages/1/markdown), [**pdfinfo**(1)](https://www.chedong.com/phpMan.php/man/pdfinfo/1/markdown), [**pdftocairo**(1)](https://www.chedong.com/phpMan.php/man/pdftocairo/1/markdown), [**pdftoppm**(1)](https://www.chedong.com/phpMan.php/man/pdftoppm/1/markdown), [**pdftops**(1)](https://www.chedong.com/phpMan.php/man/pdftops/1/markdown),
       [**pdftotext**(1)](https://www.chedong.com/phpMan.php/man/pdftotext/1/markdown) [**pdfseparate**(1)](https://www.chedong.com/phpMan.php/man/pdfseparate/1/markdown), [**pdfsig**(1)](https://www.chedong.com/phpMan.php/man/pdfsig/1/markdown), [**pdfunite**(1)](https://www.chedong.com/phpMan.php/man/pdfunite/1/markdown)

                                                                                        [_PDFTOHTML_(1)](https://www.chedong.com/phpMan.php/man/PDFTOHTML/1/markdown)
