Samples Directory

We provide you a wide range of 28 unique application fo all your document and image conversions.

Implement them and let us know your feedback. If you have trouble in implementing please do contact our support team for further assistance.


List of all file conversions :


DOC to PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Doc2Pdf("path/to/file/inputfile.doc", "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
                            unitepdfapi client = new unitepdfapi();
                            //Insert API key
                            client.APIKey = "your-api-key";
                            //Provide filepath for file conversion.
                            client.Doc2Pdf("path/to/file/inputfile.doc", "path/to/file/outputfile.pdf");

                        
                    

EXCEL to PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'WorkSheetOptions [NoScaling|FitAllRows|FitAllColumns]
                            client.WorkSheetOptions="NoScaling"
                            'ShowGrid [True|False]
                            client.ShowGrid="True"
                            'Provide filepath for file conversion.
                            client.Excel2Pdf("path/to/file/inputfile.xlsx", "path/to/file/outputfile.pdf")

                        
                    
                        
                             //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//WorkSheetOptions [NoScaling|FitAllRows|FitAllColumns]
							client.WorkSheetOptions = "NoScaling";
							//ShowGrid [True|False]
							client.ShowGrid = "True";
							//Provide filepath for file conversion.
							client.Excel2Pdf("path/to/file/inputfile.xlsx", "path/to/file/outputfile.pdf");

                        
                    

PPTX to PDF

                        
                                'Initialize the client library
                                Dim client As New unitepdfapi
                                'Insert API key
                                client.APIKey = "your-api-key"
                                'Provide filepath for file conversion.
                                client.PPTX2Pdf("path/to/file/inputfile.pptx", "path/to/file/outputfile.pdf")

                        
                    
                        
                                //Initialize the client library
								unitepdfapi client = new unitepdfapi();
								//Insert API key
								client.APIKey = "your-api-key";
								//Provide filepath for file conversion.
								client.PPTX2Pdf("path/to/file/inputfile.pptx", "path/to/file/outputfile.pdf");

                        
                    

HTML to PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Html2Pdf("path/to/file/inputfile.html", "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.Html2Pdf("path/to/file/inputfile.html", "path/to/file/outputfile.pdf");

                        
                    

SVG to PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Svg2Pdf("path/to/file/inputfile.svg", "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.Svg2Pdf("path/to/file/inputfile.svg", "path/to/file/outputfile.pdf");

                        
                    

TIFF to PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Tiff2Pdf("path/to/file/inputfile.tif", "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.Tiff2Pdf("path/to/file/inputfile.tif", "path/to/file/outputfile.pdf");

                        
                    

XPS to PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Xps2Pdf("path/to/file/inputfile.xps", "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.Xps2Pdf("path/to/file/inputfile.xps", "path/to/file/outputfile.pdf");

                        
                    

RTF to PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Rtf2Pdf("path/to/file/inputfile.rtf", "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.Rtf2Pdf("path/to/file/inputfile.rtf", "path/to/file/outputfile.pdf");

                        
                    

JPG to PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Add array of images in sequential order as per your requirement
                            Dim imagelist As New ArrayList
                            imagelist.Add("path/to/file/inputfile1.jpg")
                            imagelist.Add("path/to/file/inputfile2.jpg")
                            imagelist.Add("path/to/file/inputfile3.jpg")
                            'Provide filepath for file conversion.
                            client.Image2Pdf(imagelist, "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Add array of images in sequential order as per your requirement
							ArrayList imagelist = new ArrayList();
							imagelist.Add("path/to/file/inputfile1.jpg");
							imagelist.Add("path/to/file/inputfile2.jpg");
							imagelist.Add("path/to/file/inputfile3.jpg");
							//Provide filepath for file conversion.
							client.Image2Pdf(imagelist, "path/to/file/outputfile.pdf");

                        
                    

JOIN PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Add array of pdf files in the order you want them
                            Dim filelist As New ArrayList
                            filelist.Add("path/to/file/inputfile1.pdf")
                            filelist.Add("path/to/file/inputfile2.pdf")
                            'Provide filepath for file conversion.
                            client.JoinPdf(filelist, "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Add array of pdf files in the order you want them
							ArrayList filelist = new ArrayList();
							filelist.Add("path/to/file/inputfile1.pdf");
							filelist.Add("path/to/file/inputfile2.pdf");
							//Provide filepath for file conversion.
							client.JoinPdf(filelist, "path/to/file/outputfile.pdf");

                        
                    

SPLIT PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Enter from which page number you would like to split the pdf
                            client.FromPage = "1"
                            'Enter to which page number you would like to end the pdf
                            client.ToPage = "1"
                            'Provide filepath for file conversion.
                            client.SplitPdf("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Enter from which page number you would like to split the pdf
							client.FromPage = "1";
							//Enter to which page number you would like to end the pdf
							client.ToPage = "1";
							//Provide filepath for file conversion.
							client.SplitPdf("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf");

                        
                    

ROTATE PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'RotationAngle [0|90|180|270]
                            client.RotationAngle = "90"
                            'PageSelection [All|Even|Odd|Custom]
                            client.PageSelection = "All"
                            'If you would like to rotate for custom pages then change 'All' to 'Custom' and set the 'From' and 'To' Page Numbers as shown
                            'Enter from which page number you would like to rotate the pdf
                            client.FromPage = "1"
                            'Enter to which page number you would like to end rotation of the pdf
                            client.ToPage = "1"
                            'Provide filepath for file conversion.
                            client.RotatePdf("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//RotationAngle [0|90|180|270]
							client.RotationAngle = "90";
							//PageSelection [All|Even|Odd|Custom]
							client.PageSelection = "All";
							//If you would like to rotate for custom pages then change 'All' to 'Custom' and set the 'From' and 'To' Page Numbers as shown
							//Enter from which page number you would like to rotate the pdf
							client.FromPage = "1";
							//Enter to which page number you would like to end rotation of the pdf
							client.ToPage = "1";
							//Provide filepath for file conversion.
							client.RotatePdf("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf");

                        
                    

COMPRESS PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'CompressionLevel [Good|Average|Best|High]
                            client.CompressionLevel = "Best"
                            'ImageQuality [Min:0 Max:100]
                            client.ImageQuality = "50"
                            'Provide filepath for file conversion.
                            client.CompressPDF("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//CompressionLevel [Good|Average|Best|High]
							client.CompressionLevel = "Best";
							//ImageQuality [Min:0 Max:100]
							client.ImageQuality = "50";
							//Provide filepath for file conversion.
							client.CompressPDF("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf");

                        
                    

ARRANGE PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Add array of pages and sort them in the order as per your requirement
                            Dim pages As New ArrayList
                            pages.Add(1)
                            pages.Add(0)
                            'Provide filepath for file conversion.
                            client.ReArrangePdf("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf", pages)

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Add array of pages and sort them in the order as per your requirement
							ArrayList pages = new ArrayList();
							pages.Add(1);
							pages.Add(0);
							//Provide filepath for file conversion.
							client.ReArrangePdf("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf", pages);

                        
                    

INSERT PAGES NUMBERS TO PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.InsertPageNumbers("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.InsertPageNumbers("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf");

                        
                    

RTF to DOC

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Rtf2Doc("path/to/file/inputfile.rtf", "path/to/file/outputfile.doc")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.Rtf2Doc("path/to/file/inputfile.rtf", "path/to/file/outputfile.doc");

                        
                    

HTML to DOC

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Html2Doc("path/to/file/inputfile.html", "path/to/file/outputfile.doc")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.Html2Doc("path/to/file/inputfile.html", "path/to/file/outputfile.doc");

                        
                    

DOC to JPG

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'ImageExtension [png|jpg|bmp]
                            client.ImageExtension = "png"
                            'Optional Setting
                            'If you would like to place all the images in a zip folder then provide the zip folder path otherwise not required
                            client.ZipFolderPath = "path/to/file/outputfile.zip"
                            'Provide filepath for file conversion.
                            client.Doc2Jpg("path/to/file/inputfile.doc", "path/to/outputfolder")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//ImageExtension [png|jpg|bmp]
							client.ImageExtension = "png";
							//Optional Setting
							//If you would like to place all the images in a zip folder then provide the zip folder path otherwise not required
							client.ZipFolderPath = "path/to/file/outputfile.zip";
							//Provide filepath for file conversion.
							client.Doc2Jpg("path/to/file/inputfile.doc", "path/to/outputfolder");

                        
                    

PDF to JPG

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'ImageExtension [png|jpg|bmp]
                            client.ImageExtension = "png"
                            'Optional Setting
                            'If you would like to place all the images in a zip folder then provide the zip folder path otherwise not required
                            client.ZipFolderPath = "path/to/file/outputfile.zip"
                            'Provide filepath for file conversion.
                            client.Pdf2Image("path/to/file/inputfile.pdf", "path/to/outputfolder")

                        
                    
                        
                           //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//ImageExtension [png|jpg|bmp]
							client.ImageExtension = "png";
							//Optional Setting
							//If you would like to place all the images in a zip folder then provide the zip folder path otherwise not required
							client.ZipFolderPath = "path/to/file/outputfile.zip";
							//Provide filepath for file conversion.
							client.Pdf2Image("path/to/file/inputfile.pdf", "path/to/outputfolder");
                            
                        
                    

PPTX to JPG

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'ImageExtension [png|jpg|bmp]
                            client.ImageExtension = "png"
                            'Optional Setting
                            'If you would like to place all the images in a zip folder then provide the zip folder path otherwise not required
                            client.ZipFolderPath = "path/to/file/outputfile.zip"
                            'Provide filepath for file conversion.
                            client.PPTX2Image("path/to/file/inputfile.pptx", "path/to/outputfolder")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//ImageExtension [png|jpg|bmp]
							client.ImageExtension = "png";
							//Optional Setting
							//If you would like to place all the images in a zip folder then provide the zip folder path otherwise not required
							client.ZipFolderPath = "path/to/file/outputfile.zip";
							//Provide filepath for file conversion.
							client.PPTX2Image("path/to/file/inputfile.pptx", "path/to/outputfolder");

                        
                    

EXTRACT IMAGES FROM PDF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'ImageExtension [png|jpg|bmp]
                            client.ImageExtension = "png"
                            'Optional Setting
                            'If you would like to place all the images in a zip folder then provide the zip folder path otherwise not required
                            client.ZipFolderPath = "path/to/file/outputfile.zip"
                            'Provide filepath for file conversion.
                            client.ExtractImages("path/to/file/inputfile.pdf", "path/to/outputfolder")

                        
                    
                        
                           //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//ImageExtension [png|jpg|bmp]
							client.ImageExtension = "png";
							//Optional Setting
							//If you would like to place all the images in a zip folder then provide the zip folder path otherwise not required
							client.ZipFolderPath = "path/to/file/outputfile.zip";
							//Provide filepath for file conversion.
							client.ExtractImages("path/to/file/inputfile.pdf", "path/to/outputfolder");

                        
                    

DOC to RTF

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Doc2Rtf("path/to/file/inputfile.doc", "path/to/file/outputfile.rtf")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.Doc2Rtf("path/to/file/inputfile.doc", "path/to/file/outputfile.rtf");

                        
                    

PDF to TEXT

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Pdf2Text("path/to/file/inputfile.pdf", "path/to/file/outputfile.txt")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.Pdf2Text("path/to/file/inputfile.pdf", "path/to/file/outputfile.txt");

                        
                    

WATERMARK PDF

                        
                            'Watermark PDF using Text
'Initialize the client library Dim client As New unitepdfapi 'Insert API key client.APIKey = "your-api-key" 'Set WatermarkType to text client.WatermarkType = "Text" 'Set watermark text which you would like to have on pdf client.WatermarkText = "(C)Copyright" 'Set the font name 'Supported Fonts[Arial|Calibri|Comic Sans|Courier New|Georgia|Lucida Console|Tahoma|Times New Roman|Verdana] client.WatermarkFontName = "Times New Roman" 'Set the font size client.WatermarkFontSize = "32" 'Set the font color in hex format client.WatermarkFontColor = "#3036e3" 'WatermarkRotation [0|90|180|270|360] client.WatermarkRotation = "0" 'WatermarkTransparency [Min:0 Max:100] client.WatermarkTransparency = "30" 'WatermarkTextEffects [Solid|Outline] client.WatermarkTextEffects = "Solid" 'Place the text 200px from top client.TopPosition = "200" 'Place the text 200px from left client.LeftPosition = "200" 'Provide filepath for file conversion. client.WatermarkPdf("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf")
'Watermark PDF using Image
'Initialize the client library Dim client As New unitepdfapi 'Insert API key client.APIKey = "your-api-key" 'Set WatermarkType to image client.WatermarkType = "Image" 'Set path for watermark image. client.WatermarkImagePath = "path/to/file/logo.png" 'WatermarkRotation [0|90|180|270|360] client.WatermarkRotation = "0" 'WatermarkTransparency [Min:0 Max:100] client.WatermarkTransparency = "30" 'Place the image 200px from top client.TopPosition = "200" 'Place the image 200px from left client.LeftPosition = "200" 'Provide filepath for file conversion. client.WatermarkPdf("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf")
                        
                            //Watermark PDF using Text
//Initialize the client library unitepdfapi client = new unitepdfapi(); //Insert API key client.APIKey = "your-api-key"; //Set WatermarkType to text client.WatermarkType = "Text"; //Set watermark text which you would like to have on pdf client.WatermarkText = "(C)Copyright"; //Set the font name //Supported Fonts[Arial|Calibri|Comic Sans|Courier New|Georgia|Lucida Console|Tahoma|Times New Roman|Verdana] client.WatermarkFontName = "Times New Roman"; //Set the font size client.WatermarkFontSize = "32"; //Set the font color in hex format client.WatermarkFontColor = "#3036e3"; //WatermarkRotation [0|90|180|270|360] client.WatermarkRotation = "0"; //WatermarkTransparency [Min:0 Max:100] client.WatermarkTransparency = "30"; //WatermarkTextEffects [Solid|Outline] client.WatermarkTextEffects = "Solid"; //Place the text 200px from top client.TopPosition = "200"; //Place the text 200px from left client.LeftPosition = "200"; //Provide filepath for file conversion. client.WatermarkPdf("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf"); //Watermark PDF using Image
//Initialize the client library unitepdfapi client = new unitepdfapi(); //Insert API key client.APIKey = "your-api-key"; //Set WatermarkType to image client.WatermarkType = "Image"; //Set path for watermark image. client.WatermarkImagePath = "path/to/file/logo.png"; //WatermarkRotation [0|90|180|270|360] client.WatermarkRotation = "0"; //WatermarkTransparency [Min:0 Max:100] client.WatermarkTransparency = "30"; //Place the image 200px from top client.TopPosition = "200"; //Place the image 200px from left client.LeftPosition = "200"; //Provide filepath for file conversion. client.WatermarkPdf("path/to/file/inputfile.pdf", "path/to/file/outputfile.pdf");

DOC ENCRYPTION

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'SetPassword : Lock the document with the given password
                            client.SetPassword = "your-file-password"
                            'Provide filepath for file conversion.
                            client.EncryptDoc("path/to/file/inputfile.doc", "path/to/file/outputfile.doc")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//SetPassword : Lock the document with the given password
							client.SetPassword = "your-file-password";
							//Provide filepath for file conversion.
							client.EncryptDoc("path/to/file/inputfile.doc", "path/to/file/outputfile.doc");

                        
                    

DOC DECRYPTION

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'RemovePassword : Unlock the document with the given password
                            client.RemovePassword = "your-file-password"
                            'Provide filepath for file conversion.
                            client.DecryptDoc("path/to/file/inputfile.doc", "path/to/file/outputfile.doc")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//RemovePassword : Unlock the document with the given password
							client.RemovePassword = "your-file-password";
							//Provide filepath for file conversion.
							client.DecryptDoc("path/to/file/inputfile.doc", "path/to/file/outputfile.doc");

                        
                    

DOC to HTML

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Doc2Html("path/to/file/inputfile.doc", "path/to/file/outputfile.html")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.Doc2Html("path/to/file/inputfile.doc", "path/to/file/outputfile.html");

                        
                    

DOC to EPUB

                        
                            'Initialize the client library
                            Dim client As New unitepdfapi
                            'Insert API key
                            client.APIKey = "your-api-key"
                            'Provide filepath for file conversion.
                            client.Doc2Epub("path/to/file/inputfile.doc", "path/to/file/outputfile.epub")

                        
                    
                        
                            //Initialize the client library
							unitepdfapi client = new unitepdfapi();
							//Insert API key
							client.APIKey = "your-api-key";
							//Provide filepath for file conversion.
							client.Doc2Epub("path/to/file/inputfile.doc", "path/to/file/outputfile.epub");