ConvertDocxComments Property (GdPictureDocumentConverter)
                                 
                                
                                    
                                        In This Topic
                                    
                                
                                Specifies that the comments from DOCX documents should be converted as comment annotations in the PDF.
            
            
            
            Syntax
            
            
            
            
            'Declaration
 
Public Property ConvertDocxComments As Boolean
             
        
            
            public bool ConvertDocxComments {get; set;}
             
        
            
            public read-write property ConvertDocxComments: Boolean; 
             
        
            
            public function get,set ConvertDocxComments : boolean
             
        
            
            public: __property bool get_ConvertDocxComments();
public: __property void set_ConvertDocxComments( 
   bool value
);
             
        
            
            public:
property bool ConvertDocxComments {
   bool get();
   void set (    bool value);
}
             
        
             
        
            
            
            Property Value
The default value is false.
 
            
            
            
            
            
            Example
Loading and converting a .docx document showing the comments.
            
             
    
	
		Using gdpictureDocumentConverter As New GdPictureDocumentConverter()
    gdpictureDocumentConverter.ConvertDocxComments = True
    Dim status As GdPictureStatus = gdpictureDocumentConverter.LoadFromFile("test_doc.docx", GdPicture14.DocumentFormat.DocumentFormatDOCX)
    If status = GdPictureStatus.OK Then
        MessageBox.Show("The file has been loaded successfully.", "GdPicture")
        status = gdpictureDocumentConverter.SaveAsPDF("Converted.pdf", PdfConformance.PDF)
        If status = GdPictureStatus.OK Then
            MessageBox.Show("The file has been saved successfully.", "GdPicture")
        Else
            MessageBox.Show("The file has failed to save. Status: " + status.ToString(), "GdPicture")
        End If
    Else
        MessageBox.Show("The file has failed to load. Status: " + status.ToString(), "GdPicture")
    End If
End Using
	 
	
		using (GdPictureDocumentConverter gdpictureDocumentConverter = new GdPictureDocumentConverter())
{
    gdpictureDocumentConverter.ConvertDocxComments = true;
    GdPictureStatus status = gdpictureDocumentConverter.LoadFromFile("test_doc.docx", GdPicture14.DocumentFormat.DocumentFormatDOCX);
    if (status == GdPictureStatus.OK)
    {
        MessageBox.Show("The file has been loaded successfully.", "GdPicture");
        status = gdpictureDocumentConverter.SaveAsPDF("Converted.pdf", PdfConformance.PDF);
        if (status == GdPictureStatus.OK)
        {
            MessageBox.Show("The file has been saved successfully.", "GdPicture");
        }
        else
        {
            MessageBox.Show("The file has failed to save. Status: " + status.ToString(), "GdPicture");
        }
    }
    else
    {
        MessageBox.Show("The file has failed to load. Status: " + status.ToString(), "GdPicture");
    }
}
	 
	
 
Example
Loading and converting a .docx document showing the comments.
            
            Using gdpictureDocumentConverter As New GdPictureDocumentConverter()
                gdpictureDocumentConverter.ConvertDocxComments = True
                Dim status As GdPictureStatus = gdpictureDocumentConverter.LoadFromFile("test_doc.docx", GdPicture14.DocumentFormat.DocumentFormatDOCX)
                If status = GdPictureStatus.OK Then
                    MessageBox.Show("The file has been loaded successfully.", "GdPicture")
                    status = gdpictureDocumentConverter.SaveAsPDF("Converted.pdf", PdfConformance.PDF)
                    If status = GdPictureStatus.OK Then
                        MessageBox.Show("The file has been saved successfully.", "GdPicture")
                    Else
                        MessageBox.Show("The file has failed to save. Status: " + status.ToString(), "GdPicture")
                    End If
                Else
                    MessageBox.Show("The file has failed to load. Status: " + status.ToString(), "GdPicture")
                End If
            End Using
            using (GdPictureDocumentConverter gdpictureDocumentConverter = new GdPictureDocumentConverter())
            {
                gdpictureDocumentConverter.ConvertDocxComments = true;
                GdPictureStatus status = gdpictureDocumentConverter.LoadFromFile("test_doc.docx", GdPicture14.DocumentFormat.DocumentFormatDOCX);
                if (status == GdPictureStatus.OK)
                {
                    MessageBox.Show("The file has been loaded successfully.", "GdPicture");
                    status = gdpictureDocumentConverter.SaveAsPDF("Converted.pdf", PdfConformance.PDF);
                    if (status == GdPictureStatus.OK)
                    {
                        MessageBox.Show("The file has been saved successfully.", "GdPicture");
                    }
                    else
                    {
                        MessageBox.Show("The file has failed to save. Status: " + status.ToString(), "GdPicture");
                    }
                }
                else
                {
                    MessageBox.Show("The file has failed to load. Status: " + status.ToString(), "GdPicture");
                }
            }
            
            
            See Also