Skip to main content
Participant
August 23, 2022
Question

HTML to PDF conversion creates 2 pages from single page.

  • August 23, 2022
  • 2 replies
  • 744 views

HTML to PDF conversion creates 2 pages from single page and displays in landscape format;

top half of PDF and lower half of PDF. (2 PDF pages)

Acrobat displys 2 seperate pages.

 

I need PDF conversion to show single page PDF for single page and 2, 3, 4 page PDF's accordingly.

 

I tried changing the settings in Acrobat:  no

I tried adjusting the page size settings in HTMLtoPDFconvert SDK: no

 

Compression, Merge, and Combine will all uses extra tokens. There must be a better way.

 

This topic has been closed for replies.

2 replies

Legend
September 28, 2022

There is no such thing as a "single page HTML" because HTML isn't divided into pages, nor does it have a specific size. But PDF _does_ have a specific size, so one HTML file will normally be turned into multi-page PDF files. Nothing wrong. I'd expect that choosing the size of the output PDF might influence it somewhat, but possibly not as you want. This is just normal.

Raymond Camden
Community Manager
Community Manager
August 24, 2022

Well keep in mind - what exactly is a 'single page' on an HTML page? If you mean what the viewport sees, then that's completely dependent on the browser currently viewing the page. If you Print via the browser - are you seeing multiple pages?

Participant
September 28, 2022

I've included the pdf output from converted html. (see below)

I cannot get a single page pdf. 

I've reviewed all the html form code (mine) and the Adobe SDK code.

The conversion from html to pdf should output a single page PDF

 

(file removed)

Raymond Camden
Community Manager
Community Manager
September 29, 2022

Again - there is no concept of a page in HTML. 🙂