Prints HTML5 to a local PDF file.
The path of the local PDF file to save HTML5 to.
If True it will save the PDF in Landscape layout.
Prints HTML5 to a local PDF file.
The path of the local PDF file to save HTML5 to.
If True it will save the PDF in Landscape layout.
Private Sub mnuPrintPDF_Click() On Error GoTo ErrHnd CommonDialog1.Filter = "PDF Files (.pdf)" CommonDialog1.ShowSave If CommonDialog1.FileName <> vbNullString Then WebKitX1.SavePDF CommonDialog1.FileName, False End If ErrHnd: End Sub
private void menuItemSaveHTMLToPDF_Click(object sender, EventArgs e) { SaveFileDialog saveFileDialog2 = new SaveFileDialog(); saveFileDialog2.Filter = "PDF Files|*.pdf"; saveFileDialog2.ShowDialog(); if (saveFileDialog2.FileName != "") { FileName = saveFileDialog2.FileName; WebKitXCEF31.SavePDF(FileName, false); } }