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");
This method is used to get the Curved connector 2 path.
This method is used to call the Get Curved Connector 4 path.
This method is used to get the curved connector5 path.
Get Bent Connector path
formulaColl.Add("x1","*/ w adj1 100000");
This method is used to get the bend connector 2 path.
This method is used to get the bend connector 4 path.
This method is used to get the bend connector 5 path.
Gets Rounded Rectangle Path
Gets Snip Single Corner Rectangle Path
Gets Snip Same Side Corner Rectangle Path
Gets Snip Diagonal Corner Rectangle Path
Gets Snip And Round Single Corner Rectangle Path
Gets Round Single Corner Rectangle Path
Gets Round Same Side Corner Rectangle Path
Gets Round Diagonal Corner Rectangle Path
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.
Gets the VML custom shape path path.
Gets a custom shape (DrawingML) GraphicPath.
Represent a bounds of custom shape.
Represent a GraphicPath/PdfPath object.
Represent a custom shape object.
Returns a GraphicPath/PdfPath with custom shape drawing points.
Gets a geometry path of Path2D.
Represent a GraphicPath.
Represent a input path elements.
Represent a width of Path.
Represent a height of Path.
Represent a bounds of Path.
Gets a X value of Path.
Represent a width of Path.
Represent a X value.
Represent a bounds of Path.
Returns a X value.
Gets a Y value of Path.
Represent a height of Path.
Represent a Y value.
Represent a bounds of Path.
Returns a Y value.
Convert the path element of custom shape
Represent a path element to convert.
Represent a converted path elements.
Represent a formula collection.
Represent a path object.
Represent formula with its values.
Gets a new GraphicsPath object.
Returns a new GraphicsPath object.
Get Path adjust value
Parse Shape Formula
Gets Formula Values
Gets Operand Values
Represents the class which acts as an drawing context.
The default script factor for sub/super script.
The default factor values to fit the DinOffc font text into the corresponding font grid.
///
The default font size.
The default minimum font size for picture bullet.
The default scale factor for picture bullet.
Drawing Graphics.
Image Quality.
PreserveFormFields.
PdfFont collection
This collection contains the Pdf fonts which are created by SubstitutedFont event streams.
Drawing Graphics.
Holds the list of hyperlinks and its corrsponding bounds.
Used to skip a text highlighter between the comment ranges.
Auto tag index
Skips the bookmark add for all the textrange of paragraph.
We have hold the underline style properties and bounds to draw a line.
using this dictionary, we have draw the line after the text drawn.
We have hold the Strike-Through properties and bounds to draw a line.
using this dictionary, we have draw the line after the text drawn.
Clear the font cache.
Initializes a new instance of the class.
Initializes a new instance of the class.
Initializes a new instance of the class.
The graphics.
The page unit.
The page unit.
The page unit.
Draws the Overlapping shape widgets.
Currently handled only for Docx format documents
Create pdf font and maintain it in the collection, To improve the performance
Paragraph has a color which is mismatched from the next sibling paragraph color
Create Auto tag.
Creates Pdf structure element for headings and paragraph.
The paragraph.
The layouted widge.
Gets the Pdf tag type enum value for heading style.
The outline level of the heading style.
Creates Pdf structure element for table, table row and table data.
The lt widget.
The owner widget.
The cell widget.
Draws the paragraph.
The paragraph.
The lt widget.
Draws the text box.
The text box.
The lt widget.
We have handle for rotated childshapes.
clipbounds value
return the clipbounds value
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
Get the text top position
Represent the text
Represent the font
Represent the size
Return the Text drawing y position
Decides whether, we should update the tab position or not.
The widget.
Index of the 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.
Paragraph
Layouted Widget
List Format
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 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
Calculate a line points for the WCommentMark.
Draw the WCommentMark.
Draw AbsoluteTab
Update AbsoluteTab leader
Draws the Footnote separator
The TXT range.
The lt widget.
Draws the Editable text range.
The TXT range.
The lt widget.
Inverse the specified character with suitable bidi character
Specify the input character
Return the inversed character
Determines whether the characters are inverses in the input text.
Specify the input text
Draws the text range.
The TXT range.
The lt widget.
The text.
Trim the space characters in the text.
Check whether the widget is in field result or not.
Hyper link field
Widget.
If the widget is in field result, return True;else false.
Update Target position to the bookmark hyperlink
Create Bookmark reference link
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
Draws the Symbol
Draws the image.
The image.
The bounds.
Creates color matrix.
brightness
contrast
saturation
Convert the image to specified color using ImageAttributes.
Original Image
ImageAttributes used to change the color.
Return the recolored image.
Decides whether table is preserved inside text box or not.
Table cell
Indicates whether to check textbox only.
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
Get matrix values of skia's matrix.
SKia's matrix to get values from.
Image matrix.
Gets the PdfImage with image quality from image
Image
Gets the PdfImage with image quality from stream
Memory stream
Converts the ole object into bitmap when the image and object is of WMF and equation type respectively.
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.
Represents a script type
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.
Represents a script type.
A layouted radical EQ switch.
Represents a charFormat for radical switch elements.
Draws the Editable DrawDropDownFormField.
dropDownFormField
The ltWidget.
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.
Represents a script type.
The text.
The char format.
The para format.
The bounds.
The clipwidth.
The layouted widget.
Rotate a Graphics based on Shape Rotation.
Specified the rotation angle.
Specifies whether text needs to vertically flip.
Specifies whether text needs to horizontally flip.
Specifies whether the text need to rotate.
Specifies the text wrapping style.
Indicates whether the text need to scale or not.
Specifies the modified rotation angle.
Check that previous or next sibling is tab in that line paragraph
CharacterFormat
textBounds
LayoutedWidget
isSameLine
Calculate the Text Bounds
Add the line to the Dictionary collection
Check that can we extend the previous Underline to the next text.
Previous boundsRight
Current boundsX
Current CharacterFormat
Previous CharacterFormat
Compare the two float values.
Value 1
value 2
Round off value
Check that text having underline or strike through.
TextRange
Charformat
Check that the Inline content control having the text range.
Return true, if the InlineContentControl have text range; Else false.
Checks whether the current widget is tab
Get the text box widget of current widget.
Reverse the string
Draws the small cap string.
scriptType
characterRangeType.
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
Script Type
Character Range Type
Font style of current Layouted widget
Text brush
Layouted widget bounds
Text
string format
character Format
Draws a string based on expanded character spacing.
The script type of the text.
The font used for drawing the text.
The bounds within which the text is drawn.
The text to be drawn.
The string format.
The character 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
OwnerParagraph
Update the X and Y position
X posiiton
Y position
Owner entity
Layouted Widget
Update the X and Y position when document has different page setup.
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
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 string
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
Clip bounds
Scaling factor value
Translation points
Rotation angle
Scale the graphics transform matrix.
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
The paragraph format.
The lt widget.
isParagraphMarkIsHidden
Draws the paragraph borders
Collection of borders, contains the each border rendering order
Border bounds
Current paragraph borders
Previous paragraph borders
Paragraph
Layouted widget
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.
Paragraph
Layouted widget
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.
Paragraph
Layouted widget
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.
Paragraph
Layouted widget
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.
Paragraph
Layouted widget
If paragraph inside Text box or shape have bottom border and that paragraph is the last element of textbox means
Microsoft word will preserve the bottom border at the top of the bottom margin of text box or shape by subtracting the internal bottom margin spacing and the text box or shape line width.
The spacing between the paragraph bottom border and textbox's or shape's bottom border
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.
Draw the revision bars in the specified color and width
Start point of the revision bar
End point of the revision bar
Color of the revision bar
Width of the revision bar
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.
Fill the Cell Color
The Layouted 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.
isForeColorEmpty
isBackColorEmpty
Fill Texture within the bounds
Texture Style
Fore Color
Back Color
Bounds
Draws the cell borders.
The cell.
The lt widget.
The previous cells top border width
Draws the multi line left border.
The cell layout information.
The left border.
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 left border.
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 right border.
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 right border.
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.
isBiDiTable
Draws the double line bottom border.
The cell layout information.
The start.
The end.
isBiDiTable
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].
Draw the double line for the text.
charFormat
borderType
lineWidth
start point
end point
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 setup
Bounds
Imlementation of Draw method of page.
Currentl drawing page
autoTagsCount
Draws Markup triangles.
Position to draw the triangle.
Revision Color
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
Align the child widgets.
The layouted widget.
The paragraph.
Imlementation of Draw method of IWidget interface .
Draw widget to graphics.
Draws the specified dc.
Check whether the widget is need to drwa or not
Draw the page border
Page number
Imlementation of Draw method of BookMark interface .
Decides whether Clipping is necessary or not.
Get text highlight color
Check whether the paragrah contains Text range
Draw the Empty string with white space to preserve Tags.
Imlementation of Draw method of LayoutedWidget interface .
The Layouted widget.
Is need to initialize layout info
Iterate every child elements of the table and add the floating items into the OverLappedShapeWidgets collection
Table layouted widget
Iterate the child elements of the paragraph
Paragraph layouted widget
Checks whether the child widget is floating item and add into the collection
Child layouted widget
Get space width at end of the line widget.
Checks whether the paragraph line is RTL.
Checks whether the paragraph line has text bidi.
Check that Line item are drawn.
LayoutedWidget
Return true, if line items are drawn.
Draw the Line Based in the collection.
Contains the underline values
Contains the strike through values
Transform the graphics based on the rotation and scaling.
The character format.
Indicates whether the line need to scale or not.
Line widget.
Gets the rotation values from the textbox, shapes(ChildShapes/GroupShapes).
Specified the rotation angle.
Specifies whether it is vertical flip.
Specifies whether it is horizontally flip.
Specifies whether the text need to rotate.
Specifies the text wrapping style.
Specifies the current textrange.
Checks whether the underline width is need to change or not.
Draw the underline style.
Draw double underline style using compoundArray property
Draw a wavy line using Bezier points
represents the character properties of the text
represents the bounds of the text
represents the font of the text
Returns the Object of PDFGraphics to draw the wavy line
To-Do:- PdfPath.AddCurve() method is not supported in PDF library. So, only here we are using PdfPath.AddBezier() method to draw the wavy line
Create the Pen to draw the Line for Underline and Strike through.
charFormat
lineWidth
Return the Pen to draw the line.
Checks whether clip bounds need to remove from container.
Increase the bounds with the table paddings.
Updates the clip bounds based on its owner clip bounds.
Sets clipping for the particular region.
Resets Graphics Transform positions.
Scale the graphics with input X and Y scaling values.
Specify the scaling factor of X.
Specify the scaling factor of Y.
Get the bounds based on the frame content.
Draw the paragraph
Draw a Comment highlighter for the line.
Represents a layouted widget of line.
Represents a WordDocument.
Gets a KeyValuePair for the specified key from specified collection.
Represents a input key to find.
Represents a KVP colection.
Returns a KeyValuePair for the specified key from specified collection.
Check whether a KeyValuePair is available in specified collection for the specified key.
Represents a input key to find.
Represents a KVP colection.
Returns a true, if KeyValuePair available in specified collection; Otherwise false.
Draw a comment highlighter.
Gets maximum height widget of line.
Represent a layouted widget of line.
Returns a LayoutedWidget, which has maximum height in line.
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 WCommentMark
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.
Gets the frames first item.
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 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.
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.
Update the positions of text watermark.
TextWatermark
Draw the text watermark.
Convert the Watermark text as Bitmap Image.
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
Adjust the brightness and contrast of the picture.
Represents a image that we need to gets a graphics.
The image.
Represents image Attributes
if set to true [is picture watermark].
Draws the Picture Watermark
Picture Watermark
Bounds
Page Setup
Draws the Editable check box.
The checkbox.
The ltWidget.
Draws the check box.
The checkbox.
The lt widget.
Draw picture fill
Imagebytes
Shapes path
Layouted widget bounds
Apply transparency for image
Represents image Attributes
Represents image transparency
Convert the LineJoin as PdfLineJoin
Draw child shape
Rotate the shape based on Flip positions
Measures the image.
The image.
Measures the picture bullet size
Picture
Font
The size of picture bullet
Measures the string.
The text.
The font.
The format.
Measures the string.
The text.
The font.
The format.
The character format.
isMeasureFromTabList
Gets the exact bounds of a string without an line spacing and top/bottom spacing values of font.
Specify the input string.
Specify the font to measure.
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].
Gets fall back font to preserve the text in converted PDF document.
Represent original Pdf Font.
Represent original System font.
Represent a input text.
Represent the scriptType of a input text.
Represent PdfStringFormat.
Returns a fall back font instance, if it has; otherwise returns original Pdf Font.
Gets fall back font to preserve the text in converted PDF document.
Represent original Pdf Font.
Represent original System font.
Represent a input text.
Represent PdfStringFormat.
Represent Substituted or embedded font stream.
Returns a fall back font instance, if it has; otherwise returns original Pdf Font.
Get fall back font from font substituted or embedded font stream.
Represent a input text.
Represent the fallback font name.
Represent the fallback font instances.
Represent substituted or embedded font stream.
Returns a fallback font instance, if it exists in the substituted or embedded font stream collection; otherwise returns null.
Check whether all the characters (glyphs) of input text is available in input font or not.
Represent the input font to check.
Represent the input text to check.
Represent the PdfStringFormat.
Returns true, if all input character glyphs are available in input font; Otherwise false.
Get the factor.
Represents a font name.
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.
isAscent.
Measures the string.
The text.
The font.
The default font
The format.
The Character format
Measures the small cap string.
The text.
The size.
The font.
The format.
The character format.
Draw Unicode Text
Gets the ascent
The Font.
Gets the descent
The Font.
Translate the specified matrix with offsetX and offsetY
Represent the matrix to translate
Represent the offsetX
Represent the offsetY
Represent the MatrixOrder to traslate
Multiply the specified matrix with target matrix
Represent the matrix to translate
Represent the target matrix
Represent the MatrixOrder to traslate
Rotate the specified matrix with specified angle.
Represent the angle to rotate the matrix
Represent the center point to rotate a matrix
Represent the MatrixOrder to traslate
Gets a new GraphicsPath object.
Returns a new GraphicsPath object.
Gets a new Bitmap object with specified width and height.
Represents a width of Bitmap.
Represents a height of Bitmap.
Returns a new Bitmap object with specified width and height.
Gets a Graphics of with specified image.
Represents a image that we need to gets a graphics.
Returns a Graphics of with specified image.
Gets a new SolidBrush object with specified color.
Represents a color of SolidBrush.
Returns a new SolidBrush object with specified color.
Gets a new ColorMatrix object.
Returns new ColorMatrix object.
Gets a new ColorMatrix object with specified color matrix.
Represents a color of matrix.
Returns new ColorMatrix object with specified color matrix.
Gets a new ImageAttributes object.
Returns a new ImageAttributes object.
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 arrow head.
The shape.
The pen.
The bounds.
if set to true [is arrow head exist].
The path.
The line points1.
Draws the open 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 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 stealth 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 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 stealth 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 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.
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.
Draws the stealth 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 stealth 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 pen.
Adds the stealth arrow head points.
The points.
The pen.
Adds the open arrow head points.
The points.
The path.
Gets the open arrow default values.
The lineFormat.
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 lineFormat.
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 point1.
The point2.
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 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 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 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 line Format.
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 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.
Gets the brush.
The color.
Gets the pdf brush.
The color.
Gets the color of the text.
The char format.
Get the RevisionColor
Revision color
Get the RevisionColor
Revision color
Is revision type insert type
Get the RevisionColor
Revision color
Is revision type insert type
Get the RevisionColor to fill a comment balloon.
Revision color
Is revision type insert type
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
Determins whether the paragraph is TOC.
Determines the the paragraph contians hyperlink field.
To check the current text range is present inside the HyperLink.
Check whether current text range is present inside the hyperlink field.
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.
Gets the pen.
Type of the underline.
Width of the underline.
Color of the underline.
Scales the image.
The image.
The width.
The height.
Adds link to the bookmark.
The bounds.
The bookmark name.
The target is nothing.
Creates bookmark hyperlink and add into list.
Adds the hyper link to collection.
The hyperlink.
The bounds.
Adds the hyper link to collection.
The picture.
The bounds.
Updates the target bounds and page number for current bookmark.
Bookmark hyperlink.
Bookmark hyperlink value.
Updates the TOC level.
The paragraph.
The bookmark.
Updates Result index
text
the measurer
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 paragraph item
Concatenates the font name, style, font size and Unicode text and returns the key for PDFFontCollection.
Font object to extract font name, font size and font style from.
check whether it's unicode or not.
Key for the PdfFontCollection dictionary to store and retreive the created PdfFont.
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
Gets or sets a value that indicates whether to regenerate the nested EMF images present in the Word document during PDF conversion. Default value isfalse.
True if it is necessary to regenerate the nested EMF images present in the Word document during PDF conversion; otherwise false.
Gets or sets the PdfDocument.
The PdfDocument.
Get the Current Bookmark name
Gets or sets the value indicates whether to export Word document heading as PDF bookmarks.
Decides whether, we should enable PdfMetafile.ComplexScript property for current page.
Gets or sets the graphics.
The graphics.
Gets or sets the ImageQuality.
image quality
Gets or sets the PreserveFormFields.
PreserveFormFields
Gets or sets the custom font collection.
Gets or sets the custom font name collection.
fontName
Gets a Fallback font collection of Word document.
Gets or set the embedded fonts.
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 preserve the ole equation as bitmap in Word to PDF conversion.
Gets or sets a value indicating whether to embed the complete font information in the resultant PDF document.
Gets or sets a value indicates whether the converted PDF document is tagged or not.
Remarks: Set this property as true, to preserve the accessible structure tags from Word document to the converted PDF. Using this property Word documents can be converted to PDF with 508 compliance.
Setting this property as true will automatically enable property.
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 bookmarkStyle.
The bookmarkStyle.
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
Represents the class which drawing a Math Equations.
Creates a class instance to render the WMath entity.
Represent the
Draw the WMath instance.
Represent the WMath instance to draw
Represent the layouted widget of WMath instance
Draw the IOfficeMath instance.
Represent the layouted widget of OfficeMath instance
Draw the delimiter character with required stretching.
Specify the delimiter widget.
Specify the required height to stretch.
Specify the character format.
Draw the Line used in MathML.
Represent the layouted widget of a line.
Draw the layouted string widget.
Represent the string widget
Represent the characterFormat
Represent the scalingFactor
Dispose a MathRenderer object.
Gets a class object for drawing.
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();
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();
Check and set balloon count for track changes.
Embed the Document fonts in the private font collection.
Gets the font name from the given stream.
Check whether the font stream is valid
ToDo : Need to implement similar method for Word to Image
Stream from which font instance will be created.
Convert ODTTF font stream to TTF font stream.
ODTTF font stream
TTF font stream
embed font key
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("Template.docx");
//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("Template.docx")
'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.
Scale the given rectangle bounds with specified scaling factor.
Getting Parent Node for the levels of the Bookmarks
Draw To PDF
The DocumentLayouter
PdfDocument
Create temp font stream
Actual font streams
Temp font streams
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.
Represents a class to get fallback fonts during Direct PDF conversion.
Gets fall back font to preserve the text in converted PDF document.
Represent original font.
Represent a input text.
Represent the scriptType of a input text.
Represent the character format of a input text.
Represent the fallback fonts list.
Represent the substituted or Embedded fonts collection.
Returns fallback font if it has; otherwise returns original font.
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.
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
Need to update the fields present in the document.
Indicates the quality of the image.
Indicates whether to preserve the Word document form fields as PDF document form fields
Indicates the Image resolution
The m_warning
Gets or sets a value indicates to automatically detect the complex script text present in the Word document during PDF conversion. Default value is false.
Trueif it is necessary to automatically detect the complex script text present in the Word document during PDF conversion; otherwise, false.
Set this property to true, only if you have complex script text that is not marked as complex script type (CharacterFormat.ComplexScript is false) in the Word document.
You can mark a text as complex script by enabling the WTextRange.CharacterFormat.ComplexScript property.
Since automatic detection of complex script text involves validation of all the text in the document and may impact proportionally in Word to PDF conversion performance.
This example illustrates AutoDetectComplexScript 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 AutoDetectComplexScript property as true, to detect the complex scripts automatically
converter.Settings.AutoDetectComplexScript = 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 AutoDetectComplexScript property as true, to detect the complex scripts automatically
converter.Settings.AutoDetectComplexScript = 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 that indicates whether to regenerate the nested Metafile images present in the Word document during PDF conversion. Default value isfalse.
True if it is necessary to regenerate the nested Metafile images present in the Word document during PDF conversion; otherwise false.
This example illustrates RecreateNestedMetafile 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 RecreateNestedMetafile property to true to Recreate the Nested Metafile automatically
converter.Settings.RecreateNestedMetafile = 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 RecreateNestedMetafile property to true to Recreate the Nested Metafile automatically
converter.Settings.RecreateNestedMetafile = 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 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 a value that indicates whether to preserve Word document form field as editable PDF form field.Default value isfalse.
TrueIf True, converts Word document form field as editable PDF form field in Word to PDF conversion. Otherwise editable form field will be preserved as text in Word to PDF conversion false.
//Loads an existing Word document
WordDocument wordDocument = new WordDocument(@"TemplateFormFields.docx");
//Instantiates DocToPDFConverter instance for Word to PDF conversion
DocToPDFConverter converter = new DocToPDFConverter();
//Sets to preserve the Word document form field as editable PDF form field in PDF document.
converter.Settings.PreserveFormFields = true;
//Converts Word document into PDF document
PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument);
//Releases the resources occupied by DocToPDFConverter instance
converter.Dispose();
//Closes the instance of Word document object
wordDocument.Close();
//Saves the PDF file
pdfDocument.Save("WordtoPDF.pdf");
//Closes the instance of PDF document object
pdfDocument.Close(true);
'Loads an existing Word document
Dim wordDocument As WordDocument = New WordDocument(@"TemplateFormFields.docx")
'Instantiates DocToPDFConverter instance for Word to PDF conversion
Dim converter As DocToPDFConverter = New DocToPDFConverter()
'Sets to preserve the Word document form field as editable PDF form field in PDF document.
converter.Settings.PreserveFormFields = True
'Converts Word document into PDF document
Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument)
'Releases the resources occupied by DocToPDFConverter instance
converter.Dispose()
'Closes the instance of Word document object
wordDocument.Close()
'Saves the PDF file
pdfDocument.Save("WordtoPDF.pdf")
'Closes the instance of PDF document object
pdfDocument.Close(True)
Gets or sets a value that indicates whether to update fields present in the Word document while converting a Word document to PDF.Default value is false.
True If true, updates the fields present in the Word document during Word to PDF conversion. otherwise, false.
This API is alternative for UpdateDocumentFields() to improve performance, if your requirement is to update the fields and convert the Word document to PDF.
You can remove UpdateDocumentFields() method and enable UpdateDocumentFields property to update the Word document fields and convert the Word document to PDF in optimized way.
The following code example demonstrates how to update the fields present while performing Word to PDF conversion.
//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();
//Updates the fields present in Word document
converter.Settings.UpdateDocumentFields = 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()
'Updates the fields present in Word document
converter.Settings.UpdateDocumentFields = 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 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 preserve ole equation as bitmap while converting a Word document ot PDF. Default value is false
True: if need to preserve the ole equation as bitmap; otherwise, False.
This example illustrates PreserveOleEquationAsBitmap 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 PreserveOleEquationAsBitmap property as true, to preserve the ole equation as bitmap in resultant PDF
converter.Settings.PreserveOleEquationAsBitmap = 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 PreserveOleEquationAsBitmap property as true, to preserve the ole equation as bitmap in resultant PDF
converter.Settings.PreserveOleEquationAsBitmap = 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)
Gets or sets a value indicates whether the converted PDF document is tagged or not. Default value is false
True: if need to preserve the accessible structure tags from Word document to the converted PDF; otherwise, False.
Set this property as true, to preserve the accessible structure tags from Word document to the converted PDF. Using this property Word documents can be converted to PDF with 508 compliance.
Setting this property as true will automatically enable property .
- This property will set the title and description for images, diagrams and other objects in the generated PDF document. This information is useful for people with vision or cognitive impairments who may not able to see or understand the object
- This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.
- This property is only applicable while converting the Word document as PDF document.
This example illustrates how to convert an Word document to PDF with AutoTag property.
//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 accessible structure tags in converted PDF
converter.Settings.AutoTag = true;
//Converts Word document into PDF document
PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument);
//Closes the instance of Word document object
wordDocument.Close();
//Releases the resources occupied by DocToPDFConverter instance
converter.Dispose();
//Saves the PDF file
pdfDocument.Save("WordtoPDF.pdf");
//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 accessible structure tags in converted PDF
converter.Settings.AutoTag = True
'Converts Word document into PDF document
Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument)
'Closes the instance of Word document object
wordDocument.Close()
'Releases the resources occupied by DocToPDFConverter instance
converter.Dispose()
'Saves the PDF file
pdfDocument.Save("WordtoPDF.pdf")
'Closes the instance of PDF document object
pdfDocument.Close(True)
Gets or sets a value indicates whether to export Word document headings or bookmarks as PDF bookmarks while performing Word to PDF conversion. Default value is ExportBookmarkType.Bookmarks
The member specifies whether Word headings or bookmarks need to be considered in Word to PDF conversion.
- The will consider only headings within the main document and text boxes not within headers, footers, endnotes, footnotes, or comments.
- This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only.
- This property is only applicable while converting the Word document as PDF document.
This example illustrates how to convert an Word document headings to PDF Bookmarks with the help of ExportBookmark property.
//Creates a new Word document
WordDocument wordDocument = new WordDocument();
//Add a section into the word document
IWSection section = wordDocument.AddSection();
//Add a paragraph into the section
IWParagraph paragraph = section.AddParagraph();
//Add a text into the paragraph
paragraph.AppendText("First Chapter1");
//Apply style for the text
paragraph.ApplyStyle(BuiltinStyle.Heading1);
paragraph.AppendText("First Chapter2");
paragraph.ApplyStyle(BuiltinStyle.Heading2);
paragraph.AppendText("First Chapter3");
paragraph.ApplyStyle(BuiltinStyle.Heading3);
//Instantiates DocToPDFConverter instance for Word to PDF conversion
DocToPDFConverter converter = new DocToPDFConverter();
//Sets ExportBookmarks for preserving Word document headings as PDF bookmarks
converter.Settings.ExportBookmarks = Syncfusion.DocIO.ExportBookmarkType.Headings;
//Converts Word document into PDF document
PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument);
//Closes the instance of Word document object
wordDocument.Close();
//Releases the resources occupied by DocToPDFConverter instance
converter.Dispose();
//Saves the PDF file
pdfDocument.Save("WordtoPDF.pdf");
//Closes the instance of PDF document object
pdfDocument.Close(true);
'creates a new Word document
Dim wordDocument As WordDocument = New WordDocument()
'Add a section into the word document
Dim section As IWSection = wordDocument.AddSection()
'Add a paragraph into the section
Dim paragraph As IWParagraph = section.AddParagraph();
'Add a text into the paragraph
paragraph.AppendText("First Chapter1");
'Apply style for the text
paragraph.ApplyStyle(BuiltinStyle.Heading1);
paragraph.AppendText("First Chapter2");
paragraph.ApplyStyle(BuiltinStyle.Heading2);
paragraph.AppendText("First Chapter3");
paragraph.ApplyStyle(BuiltinStyle.Heading3);
'Instantiates DocToPDFConverter instance for Word to PDF conversion
Dim converter As DocToPDFConverter = New DocToPDFConverter()
'Sets ExportBookmarks for preserving Word document headings as PDF bookmarks
converter.Settings.ExportBookmarks = Syncfusion.DocIO.ExportBookmarkType.Headings
'Converts Word document into PDF document
Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument)
'Closes the instance of Word document object
wordDocument.Close()
'Releases the resources occupied by DocToPDFConverter instance
converter.Dispose()
'Saves the PDF file
pdfDocument.Save("WordtoPDF.pdf")
'Closes the instance of PDF document object
pdfDocument.Close(True)