Syncfusion.DocToPDFConverter.Base Get Curved Connector path formulaColl.Add("x2","*/ w adj1 100000"); formulaColl.Add("x1","+/ l x2 2"); formulaColl.Add("x3","+/ r x2 2"); formulaColl.Add("y3","*/ h 3 4"); Get Bent Connector path formulaColl.Add("x1","*/ w adj1 100000"); > Get Triangle path Gets the right arrow path. Gets the left arrow path. Gets down arrow path. Gets the left right arrow path. Gets the curved right arrow path. Gets the curved left arrow path. Gets the curved up arrow path. Gets the curved down arrow path. Gets up down arrow path. Gets the quad arrow path. Gets the left right up arrow path. Gets the bent arrow path. Gets the U trun arrow path. Gets the left up arrow path. Gets the bent up arrow path. Gets the striped right arrow path. Gets the notched right arrow path. Gets the pentagon path. Gets the chevron path. Gets the right arrow callout path. Gets down arrow callout path. Gets the left arrow callout path. Gets up arrow callout path. Gets the left right arrow callout path. Gets the quad arrow callout path. Gets the circular arrow path. Gets the math plus path. Gets the math minus path. Gets the math multiply path. Gets the math division path. Gets the math equal path. Gets the math not equal path. Gets the flow chart alternate process path. Gets the flow chart predefined process path. Gets the flow chart internal storage path. Gets the flow chart document path. Gets the flow chart multi document path. Gets the flow chart terminator path. Gets the flow chart preparation path. Gets the flow chart manual input path. Gets the flow chart manual operation path. Gets the flow chart connector path. Gets the flow chart off page connector path. Gets the flow chart card path. Gets the flow chart punched tape path. Gets the flow chart summing junction path. Gets the flow chart or path. Gets the flow chart collate path. Gets the flow chart sort path. Gets the flow chart extract path. Gets the flow chart merge path. Gets the flow chart online storage path. Gets the flow chart delay path. Gets the flow chart sequential access storage path. Gets the flow chart magnetic disk path. Gets the flow chart direct access storage path. Gets the flow chart display path. Gets the rectangular callout path. Gets the rounded rectangular callout path. Gets the oval callout path. Gets the cloud callout path. Gets the line callout1 path. Gets the line callout2 path. Gets the line callout3 path. Gets the line callout1 accent bar path. Gets the line callout2 accent bar path. Gets the line callout3 accent bar path. Gets the line callout1 no border path. Gets the line callout2 no border path. Gets the line callout3 no border path. Gets the line callout1 border and accent bar path. Gets the line callout2 border and accent bar path. Gets the line callout3 border and accent bar path. Get Path adjust value Represents the class which acts as an drawing context. The default script factor for sub/super script. The default font size. The default minimum font size for picture bullet. The default scale factor for picture bullet. Drawing Graphics. Image Quality. Drawing Graphics. Holds the list of hyperlinks and its corrsponding bounds. Initializes a new instance of the class. Initializes a new instance of the class. The graphics. The page unit. Draws the Overlapping shape widgets. Currently handled only for Docx format documents Draws the paragraph. The paragraph. The lt widget. Draws the text box. The text box. The lt widget. Draw Bar Tab Stop of the paragraph Get bounds to draw a paragraph back ground color and texture styles Check whether Paragraph Containing list has break. ltWidget Get the base entity Updates the tab position. The widget. The client area. Updates the decimal tab position. The lt widget. The client area. Updates the decimal tab position in cell. The lt widget. The client area. Determine whether is Decimal Tab Start Get Width To Shift the xposition of childwidget Get the paragraph format for current tab The Paragraph Paragrph format Get Column Width The Paragraph Get Left width of the Decimal seperator Get Left width of the Decimal seperator The lt widget. The decimal tab start. The decimal tab end. Get Index of Decimal Separator Index denotes the TextRange which have a decimal separator Get Index of Decimal Separator Index denotes the TextRange which have a decimal separator The lt widget. The decimal tab start. The decimal tab end. Width of the left. The decimal separator. if set to true [is separator]. Determine whether is Decimal Separator Get Owner paragraph of the LayoutedWidget Gets the tab end index. Index denotes the item, previous of next subsequent tab. The lt widget. The start index. Get the current list size. Draws the list Draws the list tab leader. The paragraph. The paragraph info. Width of the list. The x position. The y position. Gets the tab leader. The paragraph info. Gets the Y position. The ltwidget. Gets the ascet value for Equation field. Equation field Check whether the current lines contains the equation field and it contains the height of the corresponding line. Determines whether the paragraph is empty paragraph returns true if paragraph is empty Draw AbsoluteTab Update AbsoluteTab leader Draws the Footnote separator The TXT range. The lt widget. Draws the text range. The TXT range. The lt widget. The text. Update Target position to the bookmark hyperlink Create Bookmark reference link Determine whether the paragraph containing bookmark end Determine whether the tab stop is preserved after the text range in the current line Update Tab Width. Fill with dots for tab leader Font Current layouted widget Character format of layouted widget String format text Fill with sigle for tab leader Font Current layouted widget Character format of layouted widget String format text Fill with hyphens for tab leader Font Current layouted widget Character format of layouted widget String format text Fills with space The leaf widget Tab width Draws the Symbol Draws the image. The image. The bounds. if set to true [un scaled]. Decides whether table is preserved inside text box or not. Table cell Gets the bounding box of the rectangular bounds after rotation. Bounds Degree of rotation Bounding box of the rectangular bounds Calculates the minX, minY, maxX and maxY of the rotated bounds. Bounding box of a rectangular bounds Gets the rotation transformation matrix Bounds of the picture Rotation angle Transformation matrix Gets the PdfImage with image quality from image Image Gets the PdfImage with image quality from stream Memory stream Draw the InlineShapePicture Create the Pen to draw the picture border Get the color for the picture border Get the line cap for picture border Get LineJoin for picture border Get the Dash and line style for the picture shape Get the dash and line style for picture border Get the Dash style for the border Set the CropImageBounds if the image offset is negative Gets the position to crop the image Draws the equation field swtiches. Draws an Array EQ switch using their properties. A layouted array EQ switch. Represents a charFormat for array switch. Represents a for array EQ switch. Draws a radical switch and the radical symbol as a graphic path. A layouted radical EQ switch. Represents a charFormat for radical switch elements. Align the layouted equation field switch based on the current y position. Layouted EQ field switches x position of layouted equation field switch Y position of layouted equation field switch Shift the eqaution field's x, y position based on the given x,y value. Layouted EQ field switches x position of layouted equation field switch Y position of layouted equation field switch Generates the error text for the equation field. Represents a equation field to generate. Represents a which set for equation field. Represents a X position of equation field. Represents a Y position of equation field. Shift the equation field's y position based on the given y value. Layouted EQ field switches Y position of layouted equation field switch Gets the top most Y position of layouted EQ fields. Layouted EQ field Minimum value of y position Draws the string. The text. The char format. The para format. The bounds. Reverse the string Draws the small cap string. The text. The character format. The bounds. The font. The format. The text brush. if set to true [is character spacing]. Determine whether the text is need to clip when the text range y position is greater than the owner row bottom position Determine whether the text is need to clip when the text range x position is beyond the cell bounds or crossing the cell bounds Gets the index of the column. The section. The section bounds. Get Y position to clip paragraph items Get Default font to render non east characters Draw String based on CharacterSpacing Font style of current Layouted widget Text brush Layouted widget bounds Text Charater format Transform the graphics rendering positions based on rotation angle Current ltWidget set to true when the widget need to scale Translation points Rotation angle Gets the height of the layouted text box content. The lt widget. Get Width to shift vertical text Get Bounds to clip the text Update clip bounds based on vertical cell Update clipping bounds based on owner clipping Get Height of the cell with text direction as vertical Draw Chinese Text Set to True when the string need to be scale Draw String method for Drawing the string without its width and height Checks whether the text is valid. (applicable for Arial text) Draw Unicode Text Draw Unicode bidi Text Draw unicode string text Determines whether the owner paragraph is empty text true if owner paragraph is empty, set to true. Rotate and scale the graphics transform matrix Layoted widget bounds Scaling factor value Translation points Rotation angle Prepares a matrix to PDF. The matrix. The page scale value. A properly prepared PdfTransformationMatrix class instance. Draws the paragraph borders. The paragraph format. The lt widget. Draws the paragraph borders Collection of borders, contains the each border rendering order Border bounds Current paragraph borders Previous paragraph borders Draws the horizontal border. The border rendering order. The bounds. The borders. The border. if set to true [is multi line left border]. if set to true [is multi line right border]. if set to true [is multi line horizontal border]. Width of the between border line. Width of the left border line. Width of the right border line. Draws the left border. The border rendering order. The bounds. The borders. The border. The previous border. if set to true [is multi line top border]. if set to true [is multi line bottom border]. if set to true [is multi line left border]. if set to true [is multi line horizontal border]. Width of the left border line. Width of the top border line. Width of the between border line. Width of the bottom border line. Draws the right border. The border rendering order. The bounds. The borders. The border. The previous border. if set to true [is multi line top border]. if set to true [is multi line horizontal border]. if set to true [is multi line right border]. if set to true [is multi line bottom border]. Width of the right border line. Width of the top border line. Width of the between border line. Width of the bottom border line. Draws the top border. The border rendering order. The bounds. The borders. The border. if set to true [is multi line top border]. Width of the top border line. Width of the left border line. Width of the right border line. Draws the bottom border. The border rendering order. The bounds. The borders. The border. if set to true [is multi line bottom border]. Width of the left border line. Width of the bottom border line. Width of the right border line. Sort the borders based on brightness Border rendering order list Horizontal border Either left border/right border Current paragraph borders To ensure wether we need to remove left or right border Adds the next paragraph bounds. The layouted widget. The bounds. Draws the border. The border. The start. The end. Draws the border. The border. The start. The end. Draws the border. The border. The start. The end. Draws the table. The table. The lt widget. Draws the table row. The row. The lt widget. Draws the table cell. The cell. The lt widget. Checks the TextBox for Background picture. Draws the texture style. Gets the fore color. Gets the color value. The fore color value. The back color value. The percent. Fill Texture within the bounds Texture Style Fore Color Back Color Bounds Draws the cell borders. The cell. The lt widget. Draws the multi line left border. The cell layout information. The start. The end. if set to true [is first row]. if set to true [is last row]. if set to true [is first cell]. if set to true [is last cell]. Draws the double line left border. The cell layout information. The start. The end. if set to true [is first row]. if set to true [is last row]. if set to true [is first cell]. if set to true [is last cell]. Draws the multi line right border. The cell layout information. The start. The end. if set to true [is first row]. if set to true [is last row]. if set to true [is first cell]. if set to true [is last cell]. Draws the right double line border. The cell layout information. The start. The end. if set to true [is first row]. if set to true [is last row]. if set to true [is first cell]. if set to true [is last cell]. Draws the multi line bottom border. The cell layout information. The start. The end. Draws the double line bottom border. The cell layout information. The start. The end. Draws the multi line top border. The cell layout information. The top border. The start. The end. if set to true [is start]. if set to true [is end]. Draws the top double line border. The cell layout information. The top border. The start. The end. if set to true [is start]. if set to true [is end]. Determines whether the specified border is multiline border Type of the border. Determines whether [is multi line paragraph border] [the specified border type]. Type of the border. Gets the border line array. Type of the border. Width of the line. To identify whether current border is double line border or triple line border Current border which is need to be check Trueid the current border type is double border Draws the multi line left border. The left border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the double line left border. The left border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the triple line left border. The left border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the multi line right border. The right border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the double line right border. The right border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the triple line right border. The right border. The start. The end. if set to true [is top border same]. if set to true [is between border same]. if set to true [is bottom border same]. Draws the multi line top border. The top border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draws the double line top border. The top border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draws the triple line top border. The top border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draws the multi line bottom border. The bottom border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draws the double line bottom border. The bottom border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draws the triple line bottom border. The bottom border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. Draws the multi line between border. The between border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. The left border. The right border. if set to true [is overlap left]. if set to true [is overlap right]. Draws the double line between border. The between border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. The left border. The right border. if set to true [is overlap left]. if set to true [is overlap right]. Draws the triple line between border. The between border. The start. The end. if set to true [is left border same]. if set to true [is right border same]. The left border. The right border. if set to true [is overlap left]. if set to true [is overlap right]. Gets the adjacent border line width Left or right border line array true if we passing left border line array; otherwise false Draws the color of the background. Color of the bg. The width. The height. Draws the back ground image. The image. The page setup. Draws the Watermark Watermark Page width Page height Imlementation of Draw method of page. Currentl drawing page Checks the current watermark is empty watermark or not. Checks the HeaderFooter Paragraph and Table Weather WaterMark has to draw first Checks the paragraph weather watermark in Paragraph Checks the paragraph weather watermark in Table Checks which One has to draw first watermark or picture,shape,textbox Draw the splitWidgetContainer to PDF document or Image. Currentl split widget container Layouted widget Imlementation of Draw method of IWidget interface . Draw widget to graphics. Draws the specified dc. The dc. Draw the page border Page number Imlementation of Draw method of BookMark interface . Decides whether Clipping is necessary or not. Imlementation of Draw method of LayoutedWidget interface . The Layouted widget. Is need to initialize layout info Determines whether the current text range needs to be merged when its contains underline format. It's merges the continued same formatting strings when the corresponding text range has underline style. layouted widget Current text range Current textrange index. Updates the clip bounds based on its owner clip bounds. Sets clipping for the particular region. Resets Graphics Transform positions. Get the bounds based on the frame content. Do the Math.Floor operation. Draw the paragraph Check whether any of line for current paragraph intersect with floating items. Current widget Whether this is line or line container Draw the back ground colour for current line. Current paragraph Current line widget Find the Back ground color rendering bounds. Check whether line preserved left or right or between floating items. Get the current child widget total bounds. Draw the split table widget Draw method for BlockContentControl Draw method for InlineContentControl Draw AbsoluteTab Draw chart as image Draws chart Draw the Check box. Draw the Drop Down Form Field. Draw the Fields. Draw Ole Object. Draw the Picture. Draw the symbol. Draw the table. Draw the table cell. Draw the table row. Draw the textbox. Draw the text form field. Imlementation of Draw method of LayoutedWidget interface Draw the shape to PDF document or Image. Current shape entity Current shale layouted widget Draw the splitStringWidget SplitStringWidget Layouted split string widget Draw the text ranges. Draw widget to graphics. Get Cell Widget Gets the owner widget of the paragraph Get owner widget of the cell Determines whether the layouted widget is Overlapping Widget The lt widget. true if the layouted widget is Overlapping shape widget; otherwise, false. Draws the Text Watermark Text Watermark Bounds Change the given color brightness Draw border for the page Page setup object Header bounds Footer bounds Page bounds Gets the bounds to draw left border Page setup object Header bounds Footer bounds Page bounds Gets the bounds to draw right border Page setup object Header bounds Footer bounds Page bounds Gets the bounds to draw bottom border Page setup object Header bounds Footer bounds Page bounds Gets the bounds to draw top border Page setup object Header bounds Footer bounds Page bounds Gets the font size for Text Watermark Text Watermark Draws the Picture Watermark Picture Watermark Bounds Draws the check box. The checkbox. The lt bounds. Rotate the shape based on Flip positions Measures the image. The image. Measures the picture bullet size Picture Font Character format The size of picture bullet Measures the string. The text. The font. The layout area. The format. Measures the string. The text. The font. The layout area. The format. The CharacterSpacing Measures the string. The text. The font. The format. The character format. if set to true [is measure from tab list]. if set to true [is measure from small cap string]. Calculates the font size for subscript and superscript font. Represets a normal font to change as subscript and superscript size. Returns font size of subscript and superscript for corresponding inputed font. Get the Exceeded line height of the Arial unicode MS font. The font. Measures the string. The text. The font. The layout area. The format. The CharacterSpacing Measures the small cap string. The text. The size. The font. The format. Draw Unicode Text Gets the ascent The Font. Draws the arrow head. The shape. The pen. The bounds. if set to true [is arrow head exist]. The path. The line points1. Draws the close end arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the open begin arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Draws the close begin arrow head. The shape. The pen. The bounds. The line points. The end point. if set to true [is arrow head exist]. The path. Adds the close arrow head points. The points. The path. The pen. Adds the open arrow head points. The points. The path. Gets the open arrow default values. The shape. Width of the line. Length of the arrow. The arrow angle. The adjust value. if set to true [is from begin arrow]. Gets the close arrow default values. The shape. Width of the line. Length of the arrow. The arrow angle. The adjust value. if set to true [is from begin arrow]. Gets the length of the arrow head. Gets the close narrow arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Gets the close medium arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Gets the close wide arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Gets the open narrow arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Gets the open medium arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Gets the open wide arrow default values. Length of the arrow head. Width of the line. Length of the arrow. The arrow angle. The adjust value. Finds the angle to left and right head point. The shape. The point1. The point2. Finds the arrow head angle radians. The point1. The point2. if set to true [is from separate orientation]. Finds the base line end point. The shape. The line points. The adjust value. Gets the end point. if set to true [is from begin arrow]. The degree. The length. The adjust value. The line points. The x. The y. Finds the angle radians. The line points. if set to true [is from bottom to top]. Finds the end cap arrow head points. The shape. The pen. The bounds. The line points. if set to true [is from open arrow]. Finds the left right head points. The shape. The line points. The points. The arrow angle. Length of the arrow. if set to true [is from begin arrow]. Construcs the baset line. if set to true [is from begin arrow]. The points. The line points. Gets the arrow default values. The shape. The pen. Length of the arrow. The arrow angle. The adjust value. if set to true [is from begin arrow]. Radians to degree. The angle. Degree2s the radian. A. Gets the end point. The angle. The length. The start_x. The start_y. The end_x. The end_y. Gets the line points based on flip. The shape. The bounds. Determines whether the text range is soft hyphen and that need to be drawn. The lt widget. Gets the string format. The char format. The para format. Gets the brush. The color. Gets the pdf brush. The color. Gets the color of the text. The char format. Updates the alternate font for the font not installed in the system. The char format. Name of the font. The font. Checks the owner paragraph of the textrange is a TOC Text Range Gets the font. The char format. Updates the font name and size based on the Bidi property. Character format of the current text range. Font applied to the current text. Font size applied to the current text. Font style applied to the current text. Returns current text range Bidi font. Gets the string alignment. The para format. Gets the pen. The border. Gets the pen. Type of the border. Width of the border line. Color of the border. Scales the image. The image. The width. The height. Adds Bookmark cross reference field to the collection. The bounds. Adds the hyper link to collection. The text. The bounds. Updates the TOC level. The paragraph. The bookmark. Updates Result index text the measurer Word length res index bSplitByChar bIsInCell offset Client Width res Index Determine whether the character is CJK leading character A line of text cannot end with any leading characters, which are listed below Determine whether the character is Begin CJK character A line of text cannot begin with any following characters Determine whether the character is CJK overflow character Overflow characters are allowed to render in the same line when it doesn't have required client width to fit the character Get previous text range Get cell Width The TextRange Determines whether the text is unicode text true if text is unicode, set to true. Gets length of WORD. NOTE: - WORD: text run that finished by last space letter (sample: "text " or " "; wrong sample: " text" or "text text" ) EXCLUSION: - If text working part have zero symbols return (-1) - If text working part don't consist SPACE letters return legth of text working part Index of word first letter Length of found word Closes this instance. Draws the behind shape widgets. Get Order index of the floating item Get the line width of the picture border for Inline picture shape Get the line width of the picture border Get the Current Bookmark name Gets or sets the graphics. The graphics. Gets or sets the ImageQuality. image quality Gets or sets the graphics. The graphics. Gets the bitmap graphics. The graphics. Gets the hyperlinks. The hyperlinks. Gets the bookmark hyperlinks list. Gets the bookmarks. Gets the overlapping shape widgets. The overlapping shape widgets. Gets the font metric. The font metric. Gets the string formt. The string formt. Gets or sets a value indicating whether to embed fonts to converted PDF in Word to PDF conversion. Gets or sets a value indicating whether to embed the complete font information in the resultant PDF document. Gets the vertical border Gets / sets the horizontal border Initializes a new instance of the class. Name of the bookmark. The page number. The bounds. Gets or sets the bounds. The bounds. Gets or sets the page number. The page number. Gets or sets the name of the bookmark. The name of the bookmark. Sort the border rendering order based on its color brightness order This class provides support for converting WordDocument into an PDF Document. This class is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. This example converts the specified Word Document in to PDF Document. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object. converter.Dispose(); //Closes the instance of document objects pdfDocument.Close(true); wordDocument.Close(); 'Loads an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As New DocToPDFConverter() 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); 'Releases all resources used by the object. converter.Dispose(); 'Closes the instance of document objects pdfDocument.Close(true); wordDocument.Close(); Specifies the default image type. converter settings to the document The m_flag Initializes a new instance of the class. This constructor is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. This example converts the specified Word Document in to PDF Document. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object. converter.Dispose(); //Closes the instance of document objects pdfDocument.Close(true); wordDocument.Close(); 'Loads an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As New DocToPDFConverter() 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); 'Releases all resources used by the object. converter.Dispose(); 'Closes the instance of document objects pdfDocument.Close(true); wordDocument.Close(); Release the resources occupied by this instance. Releases all resources used by the object. This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. This example converts the specified Word Document in to PDF Document. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object. converter.Dispose(); //Closes the instance of document objects pdfDocument.Close(true); wordDocument.Close(); 'Loads an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As New DocToPDFConverter() 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); 'Releases all resources used by the object. converter.Dispose(); 'Closes the instance of document objects pdfDocument.Close(true); wordDocument.Close(); Converts the specified WordDocument to PDF. The word document. The PdfDocument. This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. If running the application by hosting in Azure environment, is enabled automatically. This example converts the specified Word Document in to PDF Document. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object. converter.Dispose(); //Closes the instance of document objects pdfDocument.Close(true); wordDocument.Close(); 'Loads an existing Word document Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As New DocToPDFConverter() 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); 'Releases all resources used by the object. converter.Dispose(); 'Closes the instance of document objects pdfDocument.Close(true); wordDocument.Close(); Converts the specified WordDocument to PDF. Name of the file. The PdfDocument. This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. If running the application by hosting in Azure environment, is enabled automatically. This example converts the specified Word Document in to PDF Document. //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts the specified WordDocument to PDF. PdfDocument pdfDocument = converter.ConvertToPDF(fileName); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object. converter.Dispose(); //Closes the instance of document objects pdfDocument.Close(true); 'Creates an instance of the DocToPDFConverter Dim converter As New DocToPDFConverter() for Word to PDF conversion 'Instantiation of DocToPDFConverter Dim pdfDocument As PdfDocument = converter.ConvertToPDF(filename) 'Save the document in the given name and PDF format pdfDocument.Save("WordtoPDF.pdf"); 'Releases all resources used by the object. converter.Dispose(); 'Closes the instance of document objects pdfDocument.Close(true); Converts to PDF. The stream. The PdfDocument. This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. If running the application by hosting in Azure environment, is enabled automatically. This example converts the specified Word Document in to PDF Document. //Loads an existing Word document Stream fileStream = new FileStream("Template.docx", FileMode.Open, FileAccess.Read, FileShare.Read); //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Converts the specified WordDocument to PDF. PdfDocument pdfDocument = converter.ConvertToPDF(fileStream); //Save the document in the given name and PDF format pdfDocument.Save("WordtoPDF.pdf"); //Releases all resources used by the object. converter.Dispose(); //Closes the instance of document objects fileStream.Close(); pdfDocument.Close(true); //Loads an existing Word document Dim fileStream As Stream = New FileStream("Template.docx", FileMode.Open, FileAccess.Read, FileShare.Read) 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As New DocToPDFConverter() 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(fileStream) 'Save the document in the given name and PDF format pdfDocument.Save("WordtoPDF.pdf"); 'Releases all resources used by the object. converter.Dispose(); 'Closes the instance of document objects fileStream.Close(); pdfDocument.Close(true); Creates the PDF document. Adds the section. The page setup. Sets the pages settings. The layouter. Adds the document properties. The doc properties. Adds the hyper links. The hyperlinks. Converts the TOC into Bookmark. Draw To PDF The DocumentLayouter PdfDocument Draw To PDF The DocumentLayouter PdfDocument Shows the warnings. Create warning element names into the list Gets the page settings. The page settings. Gets or sets the quality. This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. Gets a value indicating whether this conversion has been canceled. true if this conversion is canceled; otherwise, false. This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. Gets or sets a value indicating whether the PDF document was generated using web service. true if the PDF document was generated using web service; otherwise, false. Represent class with setting of converter. This example illustrates DocToPDFConverter settings. This class is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Instantiation of DocToPDFConverter for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Skip the updating process for Alternate chunks in the Word document converter.Settings.EnableAlternateChunks = false; //Sets the image resolution converter.Settings.ImageResolution = 640; //Sets the jpeg image quality to reduce the Pdf file size converter.Settings.ImageQuality = 100; //Sets true to optimize the memory usage for identical image converter.Settings.OptimizeIdenticalImages = false; //Sets the PdfConformanceLevel converter.Settings.PdfConformanceLevel = PdfConformanceLevel.None; //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Closes the instance of Word document object wordDocument.Close(); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases the resources occupied by DocToPDFConverter instance converter.Dispose(); //Closes the instance of PDF document object pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Instantiation of DocToPDFConverter for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter() 'Skip the updating process for Alternate chunks in the Word document converter.Settings.EnableAlternateChunks = False 'Sets the image resolution converter.Settings.ImageResolution = 640 'Sets the jpeg image quality to reduce the Pdf file size converter.Settings.ImageQuality = 100 'Sets true to optimize the memory usage for identical image converter.Settings.OptimizeIdenticalImages = False 'Sets the PdfConformanceLevel converter.Settings.PdfConformanceLevel = PdfConformanceLevel.None 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Closes the instance of Word document object wordDocument.Close() 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases the resources occupied by DocToPDFConverter instance converter.Dispose() 'Closes the instance of PDF document object pdfDocument.Close(True) Need to enable the Alternate chunks element Need to enable the direct PDF rendering Indicates the quality of the image. Indicates the Image resolution The m_warning Gets or sets a value indicates to enable the Alternate chunks present in the Word document . Default value is True. True if need to enable the Alternate chunks; otherwise, false. This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. Gets or sets a value that indicates whether to convert PDF faster by using direct PDF rendering. The default value is false. True If True, converts PDF faster by using direct PDF rendering approach. Otherwise uses EMF rendering. otherwise, false. EMF rendering – Convert a Word document to EMF and render the generated EMF to PDF during Word to PDF conversion. This is default approach, to maintain compatibility for earlier versions. PDF rendering – Directly render a Word document to PDF. This approach is available from 2016 Volume 4 release. Gets or sets the quality. The value indicates in percentage, max value represents best quality and min value represents best compression. The value indicates in percentage, max value represents best quality and min value represents best compression This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. Sets the image resolution to the image, which are Embedded in the Word document This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. Gets/Sets a value indicating whether to optimize the memory usage for the identical (duplicate) images in Doc to Pdf conversion and converted Pdf document. This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. Gets or sets the warning that describes the unsupported elements found while converting the specified Word document to PDF. The warning. This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. Gets or sets the Pdf document's Conformance-level. The of the PDF document. This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. Gets or sets a value indicating whether to embed fonts in the converted PDF document. Default value is false True: if need to embed fonts in the converted PDF document; otherwise, False. This property is supported to embed TrueType fonts only. This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. This example illustrates EmbedFonts property of DocToPDFConverter settings. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Instantiates DocToPDFConverter instance for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Sets EmbedFonts property as true, to embed fonts in resultant PDF converter.Settings.EmbedFonts = true; //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Closes the instance of Word document object wordDocument.Close(); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases the resources occupied by DocToPDFConverter instance converter.Dispose(); //Closes the instance of PDF document object pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Instantiates DocToPDFConverter instance for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter() 'Sets EmbedFonts property as true, to embed fonts in resultant PDF converter.Settings.EmbedFonts = True 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Closes the instance of Word document object wordDocument.Close() 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases the resources occupied by DocToPDFConverter instance converter.Dispose() 'Closes the instance of PDF document object pdfDocument.Close(True) Gets or sets a value indicating whether to embed the complete font information in the converted PDF document. Default value is false True: if need to embed the complete font information in the converted PDF document; otherwise, False. This property is used to indicate whether the complete font information of the characters in the resultant PDF document to embedded or not. This property is supported to embed TrueType fonts only. This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. This example illustrates EmbedCompleteFonts property of DocToPDFConverter settings. //Loads an existing Word document WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); //Instantiates DocToPDFConverter instance for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Sets the embed complete font information in converted PDF converter.Settings.EmbedCompleteFonts = true; //Converts Word document into PDF document PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); //Closes the instance of Word document object wordDocument.Close(); //Saves the PDF file pdfDocument.Save("WordtoPDF.pdf"); //Releases the resources occupied by DocToPDFConverter instance converter.Dispose(); //Closes the instance of PDF document object pdfDocument.Close(true); 'Loads an existing Word document Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) 'Instantiates DocToPDFConverter instance for Word to PDF conversion Dim converter As DocToPDFConverter = New DocToPDFConverter() 'Sets the embed complete font information in converted PDF converter.Settings.EmbedCompleteFonts = True 'Converts Word document into PDF document Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) 'Closes the instance of Word document object wordDocument.Close() 'Saves the PDF file pdfDocument.Save("WordtoPDF.pdf") 'Releases the resources occupied by DocToPDFConverter instance converter.Dispose() 'Closes the instance of PDF document object pdfDocument.Close(True)