Skip to main content
Participant
July 2, 2024
Answered

PDFServicesSDK Support

  • July 2, 2024
  • 1 reply
  • 546 views

We are into oil and Gas domain business and using a desktop application to C++ to create logs and then we need to print those logs in PDF format and for that we are exploring CreatePDFOperation of PDFServices API SDK for creating PDF using the HTML page and having following queries:

  1. Is there a way to set page margins for PDF? Currently it creates the PDF with some default margins and developer is not having any control to change the page margins.
  2. We are using PageLayout to set the page height and width and want to set the height of the PDF more than 200 inches. But it always creates the PDF up to 200 inches and create 2 pages instead of 1.
  3. Also, can we set other properties thru the API:
  • DPI
  • Fit To Page Width or Height
This topic has been closed for replies.
Correct answer Raymond Camden

That isn't done in the SDK, it is done in the HTML you create and use with our APIs.

1 reply

Joel Geraci
Community Expert
Community Expert
July 8, 2024

You'd set all of those things in the HTML/CSS. Look into paged.js and CSS paged-media

Participant
July 9, 2024

 

Thanks for support but I am using .Net code, how do we set there?

Raymond Camden
Community Manager
Raymond CamdenCommunity ManagerCorrect answer
Community Manager
July 9, 2024

That isn't done in the SDK, it is done in the HTML you create and use with our APIs.