File tree Expand file tree Collapse file tree
net/developer-guide/basic-usage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -367,18 +367,18 @@ using (var converter = new Converter(
367367 if (loadContext .HierarchyLevel == 0 )
368368 {
369369 Console .WriteLine (" -> This is the main document" );
370- return new PdfLoadOptions { RemoveEmbeddedFiles = false };
371370 }
372371 else if (loadContext .HierarchyLevel == 1 )
373372 {
374373 Console .WriteLine (" -> This is an embedded file in the main document" );
375- return new PdfLoadOptions ();
376374 }
377375 else
378376 {
379377 Console .WriteLine ($" -> This is nested {loadContext .HierarchyLevel } levels deep" );
380- return new PdfLoadOptions ();
381378 }
379+
380+ // Return appropriate load options for the document type
381+ return new PdfLoadOptions ();
382382 }))
383383{
384384 int itemCount = 0 ;
@@ -388,7 +388,7 @@ using (var converter = new Converter(
388388 {
389389 itemCount ++ ;
390390
391- // SaveContext also shows hierarchy level during conversion
391+ // SaveContext shows hierarchy level during conversion
392392 var outputName = $" contract-L{saveContext .HierarchyLevel }-I{saveContext .ItemIndex }.pdf" ;
393393 Console .WriteLine ($" Saving: {outputName }" );
394394
You can’t perform that action at this time.
0 commit comments