A control that shows the content of a PDF file.

Description

Show text, graphics, and other content in a PDF file by adding this type of control and setting its Document property to the URL, enclosed in double quotation marks, of the file that you want to show.

Key properties

Document – The URL, enclosed in double-quotation marks, of a PDF file.

Additional properties

ActualZoom – The actual zoom of the control, which may differ from the zoom requested with the Zoom property.

BorderColor – The color of a control's border.

BorderStyle – Whether a control's border is Solid, Dashed, Dotted, or None.

BorderThickness – The thickness of a control's border.

CurrentFindText – The current search term that is in use.

CurrentPage – The number of the page in a PDF file that is actually being shown.

Disabled – Whether the user can interact with the control.

DisabledBorderColor – The color of a control's border if the control's Disabled property is set to true.

Fill – The background color of a control.

FindNext – Finds the next instance of FindText in the document.

FindPrevious – Finds the previous instance of FindText in the document.

FindText – The search term to look for in the document.

Height – The distance between a control's top and bottom edges.

HoverBorderColor – The color of a control's border when the user keeps the mouse pointer on that control.

OnSelect – How the app responds when the user taps or clicks a control.

OnStateChange – How an app responds when the state of the control changes.

PaddingBottom – The distance between text in a control and the bottom edge of that control.

PaddingLeft – The distance between text in a control and the left edge of that control.

PaddingRight – The distance between text in a control and the right edge of that control.

PaddingTop – The distance between text in a control and the top edge of that control.

Page – The number of the page that you want to show.

PageCount – The number of pages in a document.

PressedBorderColor – The color of a control's border when the user taps or clicks that control.

ShowControls – Whether an audio or video player shows, for example, a play button and a volume slider, and a pen control shows, for example, icons for drawing, erasing, and clearing.

Tooltip – Explanatory text that appears when the user hovers over a control.

Visible – Whether a control appears or is hidden.

Width – The distance between a control's left and right edges.

X – The distance between the left edge of a control and the left edge of the screen.

Y – The distance between the top edge of a control and the top edge of the screen.

Zoom – The percentage by which an image from a camera is magnified or the view of a file in a PDF viewer.

Example

  • Add a PDF viewer control, and set its Document property to the URL, enclosed in double quotation marks, of a PDF file as in this example:
    "http://www.who.int/gho/publications/world_health_statistics/EN_WHS2015_TOC.pdf?ua=1"

    The control shows the PDF file.

    Don't know how to add and configure a control?