Skip to main content
Participant
December 19, 2022
Question

Convert Htlm to pdf from an URI

  • December 19, 2022
  • 0 replies
  • 245 views

Hi, i am trying to create a pdf from an URI, for that i am using this code :

uriPath= "https://22759266.hs-sites.com/DpZWzbieeWPDKLdhi"
CreatePDFOperation htmlToPDFOperation = CreatePDFOperation.CreateNew();
Uri uri = new Uri(uriPath);
FileRef source = FileRef.CreateFromURI(uri);
htmlToPDFOperation.SetInput(source);

ExecutionContext executionContext = ExecutionContext.Create(this.credentials);

FileRef destination = fileRefOperation.Execute(executionContext);
destination.SaveAs("C:/Users/ouput.pdf");

The pdf is generated but, there are 2 buttons, that also have css that are no created, there is any configuration that i can use to see these buttons ?

    This topic has been closed for replies.