• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Convert Htlm to pdf from an URI

New Here ,
Dec 19, 2022 Dec 19, 2022

Copy link to clipboard

Copied

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 ?

Views

54

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources