{"id":5976,"date":"2022-08-03T04:35:04","date_gmt":"2022-08-03T04:35:04","guid":{"rendered":"https:\/\/studysection.com\/blog\/?p=5976"},"modified":"2022-08-03T04:35:04","modified_gmt":"2022-08-03T04:35:04","slug":"how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app","status":"publish","type":"post","link":"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/","title":{"rendered":"How to create a pdf from HTML using itextSharp NuGet package in a .net app"},"content":{"rendered":"<h2>What is itextSharp?<\/h2>\n<p>itextSharp is a library that is used to create a pdf from HTML files. It includes a cssResolver which applies CSS to our document. This way it makes it easy for us to create stylish pdfs using plain old HTML.<\/p>\n<p><em>Here\u2019s how you can create a pdf from an HTML file:<\/em><\/p>\n<p><strong>Create a new .Net Web API application:<\/strong><br \/>\nSo, first of all, open visual studio 2022 and create a new .net core web API application (as shown below)<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/vscode1.png\" alt=\"vscode1\"\/><br \/>\nAfter you click the <strong>Next <\/strong>button, name your application, and then click on the <strong>Create <\/strong>button in the last window. Now, after creating the solution, open it in visual studio 2022.<\/p>\n<h3>Installing itextSharp NuGet package:<\/h3>\n<p>Next, we need to install the itextSharp NuGet package itself to use it in our application. We are going to install it using the NuGet package manager in Visual Studio 2022 using the following steps:<\/p>\n<ol>\n<li>Go to <strong>Tools -> NuGet Package Manager -> Manage Nuget Packages for Solution\u2026<\/strong> (see image below)<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/vscode2.png\" alt=\"vscode2\"\/>\n<\/li>\n<li>Now search for itextSharp in the NuGet Solution window (as shown below) and install it in any of the projects in your solution (install the latest version).<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/vscode3.png\" alt=\"vscode3\"\/>\n<\/li>\n<li>Also, install <strong>itextSharp.xmlWorker<\/strong> NuGet package in the same project. Now that the installation is complete, we are ready to use itextSharp in our project.<\/li>\n<\/ol>\n<h3>Creating the HTML file<\/h3>\n<p>Create a folder named Content in the project where you installed itextSharp and then create an HTML file in that folder (as shown below).<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/vscode4.png\" alt=\"vscode4\"\/><\/p>\n<p>The project structure will now look like this (see image below).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/vscode5.png\" alt=\"vscode5\" \/><\/p>\n<p>Now open the HTML file you created and delete the &lt;head> tag and everything inside that tag because itextSharp does not parse the &lt;head> tag.<br \/>\nNext add a &lt;h1> tag inside the <body> tag in the HTML file and then insert some text inside it. Now your HTML file should look like the image below:<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/vscode6.png\" alt=\"vscode6\"\/><\/p>\n<p>We also need to add some style to the &lt;h1> tag as well and for that, we are using inline CSS as shown above.<\/p>\n<h3>Converting HTML to pdf using itextSharp<\/h3>\n<p>You can see that the visual studio created a controller inside the Controllers folder named <strong>WeatherForecastController<\/strong>. Now open that controller and replace the code inside the method Get() with the following code:<br \/>\n<code>try<br \/>\n            {<br \/>\n                \/\/ path to the html file<br \/>\n                var templatePath = _env.ContentRootPath + @\"Content\\weatherForecastReport.html\";<br \/>\n                \/\/ storing the content of the html file<br \/>\n                var template = System.IO.File.ReadAllText(templatePath);<br \/>\n                var output = new MemoryStream();<br \/>\n                \/\/var input = new MemoryStream(Encoding.UTF8.GetBytes(template));<br \/>\n                var document = new Document(PageSize.A4);<br \/>\n                var writer = PdfWriter.GetInstance(document, output);<br \/>\n                writer.CloseStream = false;<br \/>\n                document.Open();<br \/>\n                var htmlContext = new HtmlPipelineContext(null);<br \/>\n                htmlContext.SetTagFactory(iTextSharp.tool.xml.html.Tags.GetHtmlTagProcessorFactory());<br \/>\n                ICSSResolver cssResolver = XMLWorkerHelper.GetInstance().GetDefaultCssResolver(true);<br \/>\n                var pipeline = new CssResolverPipeline(cssResolver, new HtmlPipeline(htmlContext, new PdfWriterPipeline(document, writer)));<br \/>\n                var worker = new XMLWorker(pipeline, true);<br \/>\n                var stringReader = new StringReader(template);<br \/>\n                var xmlParser = new XMLParser(worker);<br \/>\n                xmlParser.Parse(stringReader);<br \/>\n                \/\/ closing the streams<br \/>\n                document.Close();<br \/>\n                writer.Close();<br \/>\n                stringReader.Close();<br \/>\n                worker.Close();<br \/>\n                output.Position = 0;<br \/>\n                return Ok(output);<br \/>\n            }<br \/>\n            catch (Exception ex)<br \/>\n            {<br \/>\n                return Problem(ex.Message, null, 500);<br \/>\n            }<\/code><\/p>\n<p>You will see some errors after inserting this code because we need to include the necessary namespaces in our controller to use itextSharp. Now put the following code at the top of the controller file:<br \/>\n<code>using iTextSharp.text;<br \/>\nusing iTextSharp.text.pdf;<br \/>\nusing iTextSharp.tool.xml;<br \/>\nusing iTextSharp.tool.xml.css;<br \/>\nusing iTextSharp.tool.xml.parser;<br \/>\nusing iTextSharp.tool.xml.pipeline.css;<br \/>\nusing iTextSharp.tool.xml.pipeline.end;<br \/>\nusing iTextSharp.tool.xml.pipeline.html;<\/code><\/p>\n<p>After you include this most of the errors should be gone.<\/p>\n<h3>Explanation of the above code:<\/h3>\n<p>You can see that I have placed the main code that makes the pdf inside a try-catch block. If an exception occurred during the execution of the code then the control of the program will shift inside the catch block and the code inside it will be executed which sends an INTERNAL_SERVER_ERROR response to the client which made the request with the message inside the exception. This way the client will know that there was something wrong with the server.<\/p>\n<p>Now, on to the explanation of the code inside the try block. <\/p>\n<p>These are the first two lines of code inside the try block:<br \/>\n<code> var templatePath = _env.ContentRootPath + @\"Content\\weatherForecastReport.html\";<br \/>\n var template = System.IO.File.ReadAllText(templatePath);<\/code><\/p>\n<p>The templatePath variable stores the path of the HTML file in the project with the help of the _env object. To use this object you need to include it in the controller\u2019s constructor as a dependency like this:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/vscode7.png\" alt=\"vscode7\"\/><\/p>\n<p>After this, the template variable stores the content of the HTML file as a string inside it using the ReadAllText() method of the System.IO.File namespace. Now, we have the output variable which will store the final pdf as a MemoryStream() object. The benefit of using the MemoryStream() object is that we don\u2019t need to store the pdf data in a file before sending it back to the client. <\/p>\n<p>Now, we create an instance of the Document class which is named a document. You can specify the page size using the PageSize class\u2019s static properties such as A4, A5, etc\u2026<br \/>\nAfter this, we create an instance of the PdfWriter class named writer using the document and output objects. The PdfWriter class is used to output the text to the pdf file. Next, we need to set the CloseStream property of the writer object to false.<\/p>\n<p>Now, we are going to write something to the document but before that, we need to open it as follows:<br \/>\n<code>document.Open();<\/code><\/p>\n<p>After this we add the CSS to our document using itextSharp\u2019s default cssResolver, create an instance of the StringReader class and parse it using the XMLParser instance as follows:<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/vscode8.png\" alt=\"vscode8\"\/><br \/>\nAfter the pdf has been created, we need to close the streams we opened. Next, we set the current position within the output stream to 0 and return it to the client with a status of 200.<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/vscode9.png\" alt=\"vscode9\"\/><\/p>\n<p>When you run the application and navigate to the <strong>\/WeatherForecast<\/strong> endpoint you will be able to see the document as follows:<br \/>\n<img decoding=\"async\" src=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/vscode10.png\" alt=\"vscode10\"\/><br \/>\nYou can verify that the CSS has been applied to the document.<\/p>\n<p>We can also attach this pdf to an email and send it using SMTP in .net (but that is out of the scope of this article).<\/p>\n<p><small><em>StudySection provides a big list of certification exams through its online platform. The <a href=\"https:\/\/www.studysection.com\/french-language-and-concepts-advanced\">French Certification Exam<\/a> can help you to certify your skills to communicate in the French language. Whether you are new to the language or you are an expert in it, this French certification exam can test the ability of anybody\u2019s command the French language.<\/em><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is itextSharp? itextSharp is a library that is used to create a pdf from HTML files. It includes a<\/p>\n","protected":false},"author":1,"featured_media":5977,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[201,686],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>pdf from HTML using itextSharp NuGet package in a .net app<\/title>\n<meta name=\"description\" content=\"itextSharp is a library that is used to create a pdf from HTML files. It includes a cssResolver which applies CSS to our document.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"pdf from HTML using itextSharp NuGet package in a .net app\" \/>\n<meta property=\"og:description\" content=\"itextSharp is a library that is used to create a pdf from HTML files. It includes a cssResolver which applies CSS to our document.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Posts on famous people, innovations and educational topics\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/studysection\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-03T04:35:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/itextSharp-NuGet-package.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin-studysection-blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@studysection\" \/>\n<meta name=\"twitter:site\" content=\"@studysection\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin-studysection-blog\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/\"},\"author\":{\"name\":\"admin-studysection-blog\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\"},\"headline\":\"How to create a pdf from HTML using itextSharp NuGet package in a .net app\",\"datePublished\":\"2022-08-03T04:35:04+00:00\",\"dateModified\":\"2022-08-03T04:35:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/\"},\"wordCount\":937,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"keywords\":[\"html\",\"pdf\"],\"articleSection\":[\"Learn and Grow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/\",\"url\":\"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/\",\"name\":\"pdf from HTML using itextSharp NuGet package in a .net app\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/#website\"},\"datePublished\":\"2022-08-03T04:35:04+00:00\",\"dateModified\":\"2022-08-03T04:35:04+00:00\",\"description\":\"itextSharp is a library that is used to create a pdf from HTML files. It includes a cssResolver which applies CSS to our document.\",\"breadcrumb\":{\"@id\":\"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/studysection.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a pdf from HTML using itextSharp NuGet package in a .net app\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/studysection.com\/blog\/#website\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"name\":\"Blog Posts on famous people, innovations and educational topics\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/studysection.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/studysection.com\/blog\/#organization\",\"name\":\"StudySection\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"contentUrl\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"width\":920,\"height\":440,\"caption\":\"StudySection\"},\"image\":{\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/studysection\",\"https:\/\/twitter.com\/studysection\",\"https:\/\/www.instagram.com\/study.section\/\",\"https:\/\/www.linkedin.com\/company\/studysection\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\",\"name\":\"admin-studysection-blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"caption\":\"admin-studysection-blog\"},\"url\":\"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"pdf from HTML using itextSharp NuGet package in a .net app","description":"itextSharp is a library that is used to create a pdf from HTML files. It includes a cssResolver which applies CSS to our document.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/","og_locale":"en_US","og_type":"article","og_title":"pdf from HTML using itextSharp NuGet package in a .net app","og_description":"itextSharp is a library that is used to create a pdf from HTML files. It includes a cssResolver which applies CSS to our document.","og_url":"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/","og_site_name":"Blog Posts on famous people, innovations and educational topics","article_publisher":"https:\/\/www.facebook.com\/studysection","article_published_time":"2022-08-03T04:35:04+00:00","og_image":[{"width":300,"height":200,"url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2022\/08\/itextSharp-NuGet-package.png","type":"image\/png"}],"author":"admin-studysection-blog","twitter_card":"summary_large_image","twitter_creator":"@studysection","twitter_site":"@studysection","twitter_misc":{"Written by":"admin-studysection-blog"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/#article","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/"},"author":{"name":"admin-studysection-blog","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402"},"headline":"How to create a pdf from HTML using itextSharp NuGet package in a .net app","datePublished":"2022-08-03T04:35:04+00:00","dateModified":"2022-08-03T04:35:04+00:00","mainEntityOfPage":{"@id":"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/"},"wordCount":937,"commentCount":0,"publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"keywords":["html","pdf"],"articleSection":["Learn and Grow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/","url":"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/","name":"pdf from HTML using itextSharp NuGet package in a .net app","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/#website"},"datePublished":"2022-08-03T04:35:04+00:00","dateModified":"2022-08-03T04:35:04+00:00","description":"itextSharp is a library that is used to create a pdf from HTML files. It includes a cssResolver which applies CSS to our document.","breadcrumb":{"@id":"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/studysection.com\/blog\/how-to-create-a-pdf-from-html-using-itextsharp-nuget-package-in-a-net-app\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/studysection.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create a pdf from HTML using itextSharp NuGet package in a .net app"}]},{"@type":"WebSite","@id":"https:\/\/studysection.com\/blog\/#website","url":"https:\/\/studysection.com\/blog\/","name":"Blog Posts on famous people, innovations and educational topics","description":"","publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/studysection.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/studysection.com\/blog\/#organization","name":"StudySection","url":"https:\/\/studysection.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","contentUrl":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","width":920,"height":440,"caption":"StudySection"},"image":{"@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/studysection","https:\/\/twitter.com\/studysection","https:\/\/www.instagram.com\/study.section\/","https:\/\/www.linkedin.com\/company\/studysection"]},{"@type":"Person","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402","name":"admin-studysection-blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","caption":"admin-studysection-blog"},"url":"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/"}]}},"views":1699,"_links":{"self":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/5976"}],"collection":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/comments?post=5976"}],"version-history":[{"count":2,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/5976\/revisions"}],"predecessor-version":[{"id":5989,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/5976\/revisions\/5989"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media\/5977"}],"wp:attachment":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media?parent=5976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/categories?post=5976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/tags?post=5976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}