How to Attach an HTML Tag to the HEAD of an HTML Doc in C#

Install-Package Cloudmersive.APIClient.NET.DocumentAndDataConvert -Version 3.4.2
using System;
using System.Diagnostics;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Api;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Client;
using Cloudmersive.APIClient.NET.DocumentAndDataConvert.Model;
namespace Example
public class EditHtmlHtmlAppendHeaderTagExample
public void main()
// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
var apiInstance = new EditHtmlApi();
var htmlTag = htmlTag_example; // string | The HTML tag to append.
var inputFile = new System.IO.FileStream("C:\\temp\\inputfile", System.IO.FileMode.Open); // System.IO.Stream | Optional: Input file to perform the operation on. (optional)
var inputFileUrl = inputFileUrl_example; // string | Optional: URL of a file to operate on as input. (optional)
// Append an HTML tag to the HEAD section of an HTML Document
byte[] result = apiInstance.EditHtmlHtmlAppendHeaderTag(htmlTag, inputFile, inputFileUrl);
catch (Exception e)
Debug.Print("Exception when calling EditHtmlApi.EditHtmlHtmlAppendHeaderTag: " + e.Message );




There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Using Azure DevOps webhooks to build JAMStack websites


{UPDATE} Mahtava vuoristorata peli Fun teemapuisto Frenzy Vapaa Hack Free Resources Generator

Provision and configure a Kubernetes cluster in minutes

It’s My 1st CLI Project @ Flatiron School

Best practices to build API

Expression Language Injections in Java

Cup of coffee

Make your FileObserver Observable!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

More from Medium

What’s new in Visual Studio 2022 and C# 10.0?

visual studio 2022

Write a URL Shortener in 26 Lines of Code with .NET Minimal APIs

Backend and Frontend Walking Skeleton

SOLID Principles