Skip to content

Commit 5589299

Browse files
Updates for v25.5
1 parent 3c00806 commit 5589299

3 files changed

Lines changed: 78 additions & 63 deletions

File tree

content/conversion/developer-guide/advanced-usage/load-options-by-document-family/convert-presentation-document-with-load-options.md

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var apiInstance = new ConvertApi(configuration);
9393
// Prepare convert settings
9494
var loadOptions = new PresentationLoadOptions
9595
{
96-
HideComments = true
96+
CommentsPosition = PresentationLoadOptions.CommentsPositionEnum.None
9797
};
9898
var settings = new ConvertSettings
9999
{
@@ -130,7 +130,7 @@ $settings->setFilePath("Presentation/with_notes.pptx");
130130
$settings->setFormat("pdf");
131131

132132
$loadOptions = new Model\PresentationLoadOptions();
133-
$loadOptions->setHideComments(true);
133+
$loadOptions->setCommentsPosition(Model\PresentationLoadOptions::COMMENTS_POSITION_NONE);
134134

135135
$settings->setLoadOptions($loadOptions);
136136
$settings->setOutputPath("converted");
@@ -157,7 +157,7 @@ settings.setFilePath("Presentation/with_notes.pptx");
157157
settings.setFormat("pdf");
158158

159159
PresentationLoadOptions loadOptions = new PresentationLoadOptions();
160-
loadOptions.setHideComments(true);
160+
loadOptions.setCommentsPosition(CommentsPositionEnum.NONE);
161161

162162
settings.setLoadOptions(loadOptions);
163163
settings.setOutputPath("converted");
@@ -183,7 +183,7 @@ settings.file_path = "Presentation/with_notes.pptx"
183183
settings.format = "pdf"
184184

185185
loadOptions = GroupDocsConversionCloud::PresentationLoadOptions.new
186-
loadOptions.hide_comments = true
186+
loadOptions.comments_position = "None"
187187

188188
settings.load_options = loadOptions
189189
settings.output_path = "converted"
@@ -208,7 +208,7 @@ settings.filePath = "Presentation/with_notes.pptx";
208208
settings.format = "pdf";
209209

210210
let loadOptions = new conversion_cloud.PresentationLoadOptions();
211-
loadOptions.hideComments = true;
211+
loadOptions.commentsPosition = conversion_cloud.PresentationLoadOptions.CommentsPositionEnum.None;
212212

213213
settings.loadOptions = loadOptions;
214214
settings.outputPath = "converted";
@@ -234,7 +234,7 @@ settings.file_path = "Presentation/with_notes.pptx"
234234
settings.format = "pdf"
235235

236236
loadOptions = groupdocs_conversion_cloud.PresentationLoadOptions()
237-
loadOptions.hide_comments = True
237+
loadOptions.comments_position = "None"
238238

239239
settings.load_options = loadOptions
240240
settings.output_path = "converted"
@@ -250,33 +250,34 @@ result = apiInstance.convert_document(groupdocs_conversion_cloud.ConvertDocument
250250
package presentation
251251

252252
import (
253-
"fmt"
253+
"fmt"
254254

255-
"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config"
256-
"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go/models"
255+
"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config"
256+
"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go/models"
257257
)
258258

259-
func ConvertPresentationWithHiddenSlidesIncluded() {
259+
func ConvertPresentationByHidingComments() {
260260

261-
settings := models.ConvertSettings{
262-
Format: "pdf",
263-
FilePath: "Presentation/with_hidden_page.pptx",
264-
OutputPath: "converted",
265-
LoadOptions: &models.PresentationLoadOptions{
266-
Format: "pptx",
267-
ShowHiddenSlides: true,
268-
},
269-
}
261+
settings := models.ConvertSettings{
262+
Format: "pdf",
263+
FilePath: "Presentation/with_notes.pptx",
264+
OutputPath: "converted",
265+
LoadOptions: &models.PresentationLoadOptions{
266+
Format: "pptx",
267+
CommentsPosition: models.CommentsPositionEnumNone,
268+
},
269+
}
270270

271-
result, _, err := config.Client.ConvertApi.ConvertDocument(config.Ctx, settings)
271+
result, _, err := config.Client.ConvertApi.ConvertDocument(config.Ctx, settings)
272272

273-
if err != nil {
274-
fmt.Printf("ConvertPresentationWithHiddenSlidesIncluded error: %v\n", err)
275-
return
276-
}
273+
if err != nil {
274+
fmt.Printf("ConvertPresentationByHidingComments error: %v\n", err)
275+
return
276+
}
277277

278-
fmt.Printf("Document converted successfully: %v\n", result[0].Url)
278+
fmt.Printf("Document converted successfully: %v\n", result[0].Url)
279279
}
280+
280281
```
281282

282283
{{< /tab >}} {{< /tabs >}}

content/conversion/developer-guide/advanced-usage/load-options-by-document-family/convert-spreadsheet-document-with-load-options.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var apiInstance = new ConvertApi(configuration);
9494
// Prepare convert settings
9595
var loadOptions = new SpreadsheetLoadOptions
9696
{
97-
HideComments = true,
97+
PrintComments = SpreadsheetLoadOptions.PrintCommentsEnum.PrintNoComments,
9898
OnePagePerSheet = true,
9999
};
100100
var settings = new ConvertSettings
@@ -130,9 +130,9 @@ $settings = new Model\ConvertSettings();
130130
$settings->setFilePath("Spreadsheet/sample.xlsx");
131131
$settings->setFormat("pdf");
132132

133-
$loadOptions = new Model\SpreadsheetLoadOptions();
134-
$loadOptions->setHideComments(true);
135-
$loadOptions->setOnePagePerSheet(true);
133+
$loadOptions = new Model\SpreadsheetLoadOptions();
134+
$loadOptions->setPrintComments(Model\SpreadsheetLoadOptions::PRINT_COMMENTS_PRINT_NO_COMMENTS);
135+
$loadOptions->setOnePagePerSheet(true);
136136

137137
$settings->setLoadOptions($loadOptions);
138138
$settings->setOutputPath("converted");
@@ -159,7 +159,7 @@ settings.setFilePath("Spreadsheet/sample.xlsx");
159159
settings.setFormat("pdf");
160160

161161
SpreadsheetLoadOptions loadOptions = new SpreadsheetLoadOptions();
162-
loadOptions.setHideComments(true);
162+
loadOptions.setPrintComments(PrintCommentsEnum.PRINTNOCOMMENTS);
163163
loadOptions.setOnePagePerSheet(true);
164164

165165
settings.setLoadOptions(loadOptions);
@@ -185,9 +185,9 @@ settings = GroupDocsConversionCloud::ConvertSettings.new
185185
settings.file_path = "Spreadsheet/sample.xlsx"
186186
settings.format = "pdf"
187187

188-
loadOptions = GroupDocsConversionCloud::SpreadsheetLoadOptions.new
189-
loadOptions.hide_comments = true
190-
loadOptions.one_page_per_sheet = true
188+
loadOptions = groupdocs_conversion_cloud.SpreadsheetLoadOptions()
189+
loadOptions.print_comments = "PrintNoComments"
190+
loadOptions.one_page_per_sheet = True
191191

192192
settings.load_options = loadOptions
193193
settings.output_path = "converted"
@@ -212,7 +212,7 @@ settings.filePath = "Spreadsheet/sample.xlsx";
212212
settings.format = "pdf";
213213

214214
let loadOptions = new conversion_cloud.SpreadsheetLoadOptions();
215-
loadOptions.hideComments = true;
215+
loadOptions.printComments = conversion_cloud.SpreadsheetLoadOptions.PrintCommentsEnum.PrintNoComments;
216216
loadOptions.onePagePerSheet = true;
217217

218218
settings.loadOptions = loadOptions;
@@ -239,7 +239,7 @@ settings.file_path = "Spreadsheet/sample.xlsx"
239239
settings.format = "pdf"
240240

241241
loadOptions = groupdocs_conversion_cloud.SpreadsheetLoadOptions()
242-
loadOptions.hide_comments = True
242+
loadOptions.print_comments = "PrintNoComments"
243243
loadOptions.one_page_per_sheet = True
244244

245245
settings.load_options = loadOptions
@@ -256,32 +256,32 @@ result = apiInstance.convert_document(groupdocs_conversion_cloud.ConvertDocument
256256
package spreadsheet
257257

258258
import (
259-
"fmt"
259+
"fmt"
260260

261-
"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config"
262-
"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go/models"
261+
"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config"
262+
"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go/models"
263263
)
264264

265-
func ConvertSpreadsheetByShowingGridLines() {
265+
func ConvertSpreadsheetAndHideComments() {
266266

267-
settings := models.ConvertSettings{
268-
Format: "pdf",
269-
FilePath: "Spreadsheet/sample.xlsx",
270-
OutputPath: "converted",
271-
LoadOptions: &models.SpreadsheetLoadOptions{
272-
ShowGridLines: true,
273-
OnePagePerSheet: true,
274-
},
275-
}
267+
settings := models.ConvertSettings{
268+
Format: "pdf",
269+
FilePath: "Spreadsheet/sample.xlsx",
270+
OutputPath: "converted",
271+
LoadOptions: &models.SpreadsheetLoadOptions{
272+
PrintComments: models.PrintCommentsEnumPrintNoComments,
273+
OnePagePerSheet: true,
274+
},
275+
}
276276

277-
result, _, err := config.Client.ConvertApi.ConvertDocument(config.Ctx, settings)
277+
result, _, err := config.Client.ConvertApi.ConvertDocument(config.Ctx, settings)
278278

279-
if err != nil {
280-
fmt.Printf("ConvertSpreadsheetByShowingGridLines error: %v\n", err)
281-
return
282-
}
279+
if err != nil {
280+
fmt.Printf("ConvertSpreadsheetAndHideComments error: %v\n", err)
281+
return
282+
}
283283

284-
fmt.Printf("Document converted successfully: %v\n", result[0].Url)
284+
fmt.Printf("Document converted successfully: %v\n", result[0].Url)
285285
}
286286
```
287287

content/conversion/developer-guide/data-structures/loadoptions.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ keywords: ""
3636
|convertRange|Convert specific range when converting to other than cells format. Example: "D1:F8"
3737
|skipEmptyRowsAndColumns|Skips empty rows and columns when converting
3838
|password|Password to unprotect protected document
39-
|hideComment|Hide comments
39+
|printComments|Represents the way comments are printed with the sheet. Default is PrintNoComments. Values: PrintInPlace, PrintNoComments, PrintSheetEnd, PrintWithThreadedComments.
4040

4141
```json
4242
{
@@ -48,7 +48,7 @@ keywords: ""
4848
"convertRange": "",
4949
"skipEmptyRowsAndColumns": true,
5050
"password": "Pass123",
51-
"hideComment": true
51+
"printComments": "PrintNoComments"
5252
}
5353
```
5454

@@ -168,20 +168,34 @@ keywords: ""
168168

169169
| Properties | Description
170170
|---|---
171-
|format|The format of input file, ("docx", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions.
172-
|defaultFont|Default font for rendering the presentation
173-
|fontSubstitutes|Substitute specific fonts when converting Slides document
174-
|password|Password to unprotect protected document
175-
|showHiddenSlides|Show hidden slides
176-
|hideComment|Hide comments
171+
|format|The format of input file, ("docx", for example). This field must be filled with correct input file format when using ConvertDirect method, which accepts input file as binary stream, so the API can correctly handle LoadOptions.
172+
|defaultFont|Default font for rendering the presentation.
173+
|fontSubstitutes|Substitute specific fonts when converting Slides document.
174+
|password|Password to unprotect protected document.
175+
|showHiddenSlides|Show hidden slides.
176+
|commentsPosition|Represents the way comments are printed with the slide. Default is None. Values: None, Bottom, Right.
177+
|notesPosition|Represents the way notes are printed with the slide. Default is None. Values: None, BottomTruncated, BottomFull.
178+
|preserveDocumentStructure|Determines whether the document structure should be preserved when converting to PDF (default is false).
179+
|clearCustomDocumentProperties|Value indicating whether custom document properties should be cleared.
180+
|clearBuiltInDocumentProperties|Value indicating whether built-in document properties should be cleared.
181+
|convertOwned|Option to control whether the owned documents in the documents container must be converted.
182+
|convertOwner|Option to control whether the documents container itself must be converted. If this property is true, the documents container will be the first converted document. Default is true.
183+
|depth|Option to control how many levels in depth to perform conversion. Default: 1
177184

178185
```json
179186
{
180187
"defaultFont": "Arial",
181188
"fontSubstitutes": [],
182189
"password": "Pass123",
183190
"showHiddenSlides": false,
184-
"hideComment": true
191+
"commentsPosition": "None",
192+
"notesPosition": "None",
193+
"preserveDocumentStructure": false,
194+
"clearCustomDocumentProperties": false,
195+
"clearBuiltInDocumentProperties": false,
196+
"convertOwned": false,
197+
"convertOwner": true,
198+
"depth": 1
185199
}
186200
```
187201

0 commit comments

Comments
 (0)