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

    when export in to pdf existing font and size are changed in to some
    staic values… need to maintain same font and size what already exists in html text
    this issues occured in asp.net 2.0

    thanks

    #28039

    By default PD4ML converts all sizes, given in physical units to screen pixels using 72dpi as scale factor. After that it renders document as for a screen presentation.

    The resulting layout is mapped to chosen paper format. The mapping scale factor may be calculated like that:

    scale = (pageFormat.width – insets.left – insets.right) / htmlWidth

    So you have two methods to get the desired PDF font size:

    1. to play with htmlWidth value to achieve the needed scale and font sizes
    2. to define all important sizes in “pt”, “in”, “cm” and to trigger protectPhysicalUnitDimensions() API method.

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

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