Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27156

    Hi All,

    Large Images when taken from iPhone is not rendered fully when converting to PDF. i have gone through the API documentation but could not find any way to dynamically assign the PageSize depending on the size of the image.

    PageSize = PD4Constants.A4

    Kindly assist if theres a way to dynamically assign the pagesize depending on the image size.

    Thanks,
    Rakesh

    #30074

    With pageSize you specify target document (paper) format.
    With htmlWidth you define “virtual HTML browser” frame width to be mapped to the chosen paper Format width.

    So if your images are cut right side, try to increase htmlWidth parameter correspondingly (to scale down the content).

    If the image width is not known, there is a handy pd4ml.adjustHtmlWidth() API call (but in the case a document scale will depend on the content, which is not always desired)

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.