Skip to content

Instantly share code, notes, and snippets.

View aspose-com-kb's full-sized avatar

aspose-com-kb

View GitHub Profile
@aspose-com-kb
aspose-com-kb / Convert SVG Image Format to PDF File Format in C#.cs
Last active August 11, 2021 09:09
Convert SVG Image Format to PDF File Format in C#. The detailed explanation of the code is here: https://kb.aspose.com/svg/net/how-to-convert-svg-to-pdf-in-c-sharp/
using System;
//Add reference to Aspose.SVG for .NET API
//Use following namespaces to Convert SVG to PDF format
using Aspose.Svg;
using Aspose.Svg.Drawing;
using Aspose.Svg.Rendering;
using Aspose.Svg.Rendering.Pdf;
namespace ConvertSVGToPDF
{
@aspose-com-kb
aspose-com-kb / Create OMR Answer Sheet Checker in C#.cs
Last active August 11, 2021 09:09
Create OMR Answer Sheet Checker in C#. Find the explanation of this code here: https://kb.aspose.com/omr/net/how-to-create-omr-answer-sheet-checker-in-c-sharp/
using System;
using System.IO;
//Add reference to Aspose.OMR for .NET API
//Use following namespaces to create OMR answer sheet checker
using Aspose.OMR;
using Aspose.OMR.Api;
namespace CreateOMRAnswerSheetChecker
{
class Program
@aspose-com-kb
aspose-com-kb / Convert PUB File Pages to Individual PNG Images in C#.cs
Last active August 11, 2021 09:09
Convert PUB File Pages to Individual PNG Images in C#. The details about this code can be found here: https://kb.aspose.com/pub/net/how-to-convert-pub-to-png-in-c-sharp/
using System;
//Add reference to Aspose.PUB for .NET API
//Use following namespaces to convert PUB to PNG image format
using Aspose.Pub;
using PDF = Aspose.Pdf;
using Aspose.Pdf.Facades;
using Aspose.Pdf.Devices;
namespace ConvertPUBToPNG
@aspose-com-kb
aspose-com-kb / Extract Data From XBRL and iXBRL files in C#.cs
Last active August 19, 2021 09:23
Extract Data From XBRL and iXBRL files in C#: The related step by step guide can be found here: https://kb.aspose.com/finance/net/how-to-extract-data-from-xbrl-file-in-c-sharp/
using System;
using System.Collections.Generic;
//Add reference to Aspose.Finance for .NET API
//Use below namespaces to extract data from XBRL file
using Aspose.Finance;
using Aspose.Finance.Xbrl;
using Aspose.Finance.Xbrl.Dom;
using Aspose.Finance.Xbrl.Inline;
namespace ExtractDataFromXBRLFile
@aspose-com-kb
aspose-com-kb / Draw Vector Shapes in C#.cs
Last active August 19, 2021 09:23
Draw Vector Shapes in C#. To understand this code find the detailed step in this article: https://kb.aspose.com/drawing/net/how-to-draw-shapes-in-c-shape/
using System;
//Add reference to Aspose.Drawing for .NET API
//Use following namespaces to draw vector shapes
using Aspose.Drawing;
using System.Drawing;
namespace DrawVectorShapes
{
@aspose-com-kb
aspose-com-kb / Get Font Metrics in C#.cs
Last active August 19, 2021 09:24
Get Font Metrics in C#. Learn more about the code and steps to follow in this guide: https://kb.aspose.com/font/net/how-to-get-font-metrics-in-c-sharp/
using System;
//Add reference to Aspose.Font for .NET API
//Use following namespaces to get font metrics
using Aspose.Font;
using Aspose.Font.Sources;
using Aspose.Font.Type1;
namespace GetFontMetrics
{
@aspose-com-kb
aspose-com-kb / Render XSL-FO File Format to PDF in C#.cs
Last active August 26, 2021 11:24
Render XSL-FO File Format to PDF in C#. The steps to achieve this conversion are elaborated here: https://kb.aspose.com/pdf/net/how-to-render-xsl-fo-to-pdf-in-c-sharp/
using System;
//Add reference to Aspose.PDF for .NET API
//Use the following namespace to render XSL-FO file format to PDF format
using Aspose.Pdf;
namespace RenderXSLFOToPDF
{
class Program
{
static void Main(string[] args)
@aspose-com-kb
aspose-com-kb / Print Word Document in Windows Form C# without Interop.cs
Last active August 26, 2021 11:25
Print Word Document in Windows Form C# without Interop. The details and guidelines for this example can be found here: https://kb.aspose.com/words/net/how-to-print-word-document-in-c-sharp/
using System;
using System.Windows.Forms;
//Add reference to Aspose.Words for .NET API
//Use following namespaces to print word document on a printer
using Aspose.Words;
using Aspose.Words.Rendering;
namespace PrintWordDocumentWithoutInterop
{
public partial class PrintWordDocumentWithoutInterop : Form
@aspose-com-kb
aspose-com-kb / Render LaTeX (TeX) File to PNG Image Format.cs
Last active August 26, 2021 11:23
Render LaTeX (TeX) File to PNG Image Format. The explanation of this code can be found in this topic: https://kb.aspose.com/tex/net/how-to-render-latex-to-png-in-c-sharp/.
using System;
using System.IO;
//Add reference to Aspose.TeX for .NET API
//Use following namespaces to render Latex file to PNG format
using Aspose.TeX;
using Aspose.TeX.IO;
using Aspose.TeX.Presentation.Image;
namespace RenderLatexToPNG
{
@aspose-com-kb
aspose-com-kb / Save Email Messages to Disk in C#.cs
Last active February 6, 2022 05:14
Save Email Messages to Disk in C#. The code is explained step by step in this article: https://kb.aspose.com/email/net/how-to-save-email-message-to-disk-in-c-sharp/
using System;
using System.Net;
//Add reference to Aspose.Email for .NET API
//Use following namespaces to save email message to disk
using Aspose.Email.Clients.Exchange;
using Aspose.Email.Clients.Exchange.WebService;
namespace SaveEmailMessageToDisk
{
class Program