Skip to content

PDF

A PDF viewer shows a PDF document from a URL inside your view, using the PDF viewer of the browser. Give it a frame with a fixed height, otherwise the viewer has no space.

PDF("https://pdfobject.com/pdf/sample.pdf").
	Frame(Frame{Width: L880, Height: L880, MaxWidth: Full})

Constructors

ConstructorDescription
func PDF(src core.URI) TPDFPDF creates a new PDF viewer component with the given source URL.

Methods

MethodDescription
Frame(frame Frame) TPDFFrame sets the viewer’s frame for sizing purposes.
Src(src core.URI) TPDFSrc sets the source URL of the PDF viewer.

Related