C# Class Aspose.Plugins.AsposeVSOpenXML.Program

Show file Open project: aspose-words/Aspose.Words-for-.NET

Public Methods

Method Description
AddCommentOnFirstParagraph ( string fileName, string author, string initials, string comment ) : void
AddStylesPartToPackage ( WordprocessingDocument doc ) : StyleDefinitionsPart
ChangeHeader ( String documentPath ) : void
ChangeHeader ( string documentPath ) : void
ChangeTextInCell ( string filepath, string txt ) : void
ConvertDOCMtoDOCX ( string oldfileName, string newfileName ) : void
CreateAndAddParagraphStyle ( StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename, string aliases = "" ) : void
CreateWordprocessingDocument ( string filepath ) : void
DeleteComments ( string fileName, string author = "" ) : void
ExtractComments ( Document doc ) : void
FindBoundingBoxAroundNode ( Bitmap originalBitmap ) : Rectangle

Finds the minimum bounding box around non-transparent pixels in a Bitmap.

FindShapeSizes ( Shape shape ) : void
GenerateFooterPartContent ( FooterPart part ) : void
GenerateHeaderPartContent ( HeaderPart part ) : void
GetCommentsFromDocument ( string fileName ) : void
InsertAPicture ( string document, string fileName ) : void
OpenWordprocessingDocumentReadonly ( string filepath ) : void
RemoveComments ( string File, string authorName ) : void
RemoveHeadersAndFooters ( string filename ) : void
RenderCellToImage ( string dataDir, Document doc ) : void
RenderDrawingMLToDisk ( string dataDir, Shape drawingML ) : void
RenderNode ( Node node, string filePath, ImageSaveOptions imageOptions ) : void

Renders any node in a document to the path specified using the image save options.

RenderParagraphToImage ( string dataDir, Document doc ) : void
RenderRowToImage ( string dataDir, Document doc ) : void
RenderShapeToDisk ( string dataDir, Shape shape ) : void
RenderShapeToGraphics ( string dataDir, Shape shape ) : void
RenderShapeToStream ( string dataDir, Shape shape ) : void
SearchAndReplace ( string document ) : void
WDDeleteHiddenText ( string docName ) : void

Private Methods

Method Description
AddImageToBody ( WordprocessingDocument wordDoc, string relationshipId ) : void
AddTable ( string fileName, string data ) : void
IsSectionProps ( ParagraphProperties pPr ) : bool
Main ( string args ) : void
OpenAndAddTextToWordDocument ( string filepath, string txt ) : void
OpenAndAddToWordprocessingStream ( Stream stream, string txt ) : void
RemovePageBreaks ( Document doc ) : void
RemovePageBreaks ( string filename ) : void
RemoveSectionBreaks ( Document doc ) : void
RemoveSectionBreaks ( string filename ) : void
ReplaceOneWordWithAnother ( Document doc ) : void
ReplaceTwoSimilarWords ( Document doc ) : void

Method Details

AddCommentOnFirstParagraph() public static method

public static AddCommentOnFirstParagraph ( string fileName, string author, string initials, string comment ) : void
fileName string
author string
initials string
comment string
return void

AddStylesPartToPackage() public static method

public static AddStylesPartToPackage ( WordprocessingDocument doc ) : StyleDefinitionsPart
doc WordprocessingDocument
return StyleDefinitionsPart

ChangeHeader() public static method

public static ChangeHeader ( String documentPath ) : void
documentPath String
return void

ChangeHeader() public static method

public static ChangeHeader ( string documentPath ) : void
documentPath string
return void

ChangeTextInCell() public static method

public static ChangeTextInCell ( string filepath, string txt ) : void
filepath string
txt string
return void

ConvertDOCMtoDOCX() public static method

public static ConvertDOCMtoDOCX ( string oldfileName, string newfileName ) : void
oldfileName string
newfileName string
return void

CreateAndAddParagraphStyle() public static method

public static CreateAndAddParagraphStyle ( StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename, string aliases = "" ) : void
styleDefinitionsPart StyleDefinitionsPart
styleid string
stylename string
aliases string
return void

CreateWordprocessingDocument() public static method

public static CreateWordprocessingDocument ( string filepath ) : void
filepath string
return void

DeleteComments() public static method

public static DeleteComments ( string fileName, string author = "" ) : void
fileName string
author string
return void

ExtractComments() public static method

public static ExtractComments ( Document doc ) : void
doc Document
return void

FindBoundingBoxAroundNode() public static method

Finds the minimum bounding box around non-transparent pixels in a Bitmap.
public static FindBoundingBoxAroundNode ( Bitmap originalBitmap ) : Rectangle
originalBitmap Bitmap
return Rectangle

FindShapeSizes() public static method

public static FindShapeSizes ( Shape shape ) : void
shape Shape
return void

GenerateFooterPartContent() public static method

public static GenerateFooterPartContent ( FooterPart part ) : void
part FooterPart
return void

GenerateHeaderPartContent() public static method

public static GenerateHeaderPartContent ( HeaderPart part ) : void
part HeaderPart
return void

GetCommentsFromDocument() public static method

public static GetCommentsFromDocument ( string fileName ) : void
fileName string
return void

InsertAPicture() public static method

public static InsertAPicture ( string document, string fileName ) : void
document string
fileName string
return void

OpenWordprocessingDocumentReadonly() public static method

public static OpenWordprocessingDocumentReadonly ( string filepath ) : void
filepath string
return void

RemoveComments() public static method

public static RemoveComments ( string File, string authorName ) : void
File string
authorName string
return void

RemoveHeadersAndFooters() public static method

public static RemoveHeadersAndFooters ( string filename ) : void
filename string
return void

RenderCellToImage() public static method

public static RenderCellToImage ( string dataDir, Document doc ) : void
dataDir string
doc Document
return void

RenderDrawingMLToDisk() public static method

public static RenderDrawingMLToDisk ( string dataDir, Shape drawingML ) : void
dataDir string
drawingML Shape
return void

RenderNode() public static method

Renders any node in a document to the path specified using the image save options.
public static RenderNode ( Node node, string filePath, ImageSaveOptions imageOptions ) : void
node Node The node to render.
filePath string
imageOptions ImageSaveOptions The image options to use during rendering. This can be null.
return void

RenderParagraphToImage() public static method

public static RenderParagraphToImage ( string dataDir, Document doc ) : void
dataDir string
doc Document
return void

RenderRowToImage() public static method

public static RenderRowToImage ( string dataDir, Document doc ) : void
dataDir string
doc Document
return void

RenderShapeToDisk() public static method

public static RenderShapeToDisk ( string dataDir, Shape shape ) : void
dataDir string
shape Shape
return void

RenderShapeToGraphics() public static method

public static RenderShapeToGraphics ( string dataDir, Shape shape ) : void
dataDir string
shape Shape
return void

RenderShapeToStream() public static method

public static RenderShapeToStream ( string dataDir, Shape shape ) : void
dataDir string
shape Shape
return void

SearchAndReplace() public static method

public static SearchAndReplace ( string document ) : void
document string
return void

WDDeleteHiddenText() public static method

public static WDDeleteHiddenText ( string docName ) : void
docName string
return void