1
In the Webbrowser of Delphi, run a file .html, which is a PDF reader. I need when the reader is opened to load a PDF stored in a Delphi string variable.
procedure TForm2.Button1Click(Sender: TObject);
var arquivo : string;
begin
arquivo := 'teste.pdf';
WebBrowser1.Navigate('C:\zLocal2016\src_Teste\PDF_atual\pdf\web\viewer.html');
end;
Note: I am using the pdf.js library: https://mozilla.github.io/pdf.js/
Have you tried
WebBrowser1.Navigate('PDFJS.getDocument('+QuotedStr(teste.pdf)+')'
– Andrey
And where do I step the . html file path? @Andrey
– user75204