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)
try
{
// Append an HTML tag to the HEAD section of an HTML Document
byte[] result = apiInstance.EditHtmlHtmlAppendHeaderTag(htmlTag, inputFile, inputFileUrl);
Debug.WriteLine(result);
}
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

9 Things To Take Into Consideration When Starting A Drupal-based Project

Using Laravel Controllers, Events, Listeners, Services and Validation Together!

Let’s Use Laravel Controllers, Events, Listeners, Services and Validation Together!

Day 119 — Abstract Classes Vs Interfaces

MTA Staking V1: Voting Weights and Rewards

iOS 13 Table Views, Collection Views Demo, MVC, Singleton, and Closures All in One App

BitTorrent: The Protocol (1)

Useful Shortcut keys

From Apple’s Mapkit to GoogleMaps

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
Cloudmersive

Cloudmersive

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

More from Medium

C# “ENCAPSULATION,PROPERTY AND PROP”

Creating readable and maintainable methods in your code

Why Object-Oriented-Programming?

How to perform data-binding in Blazor