Skip to content

Commit 11368da

Browse files
author
stlc-bot
committed
feat(parse): add option to include hidden PPTX slides (#27938)
Stainless-Generated-From: e83e1a2dacfa5d79edd1452fea55413fb79f4f28
1 parent 7ac7ed7 commit 11368da

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎pkg/cmd/parsing_test.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestParsingCreate(t *testing.T) {
2828
"--fast-options", "{}",
2929
"--file-id", "file_id",
3030
"--http-proxy", "https:",
31-
"--input-options", "{html: {make_all_elements_visible: true, remove_fixed_elements: true, remove_navigation_elements: true}, image: {camera_photo_correction: true}, pdf: {}, presentation: {out_of_bounds_content: true, skip_embedded_data: true}, spreadsheet: {detect_sub_tables_in_sheets: true, force_formula_computation_in_sheets: true, include_hidden_sheets: true}}",
31+
"--input-options", "{html: {make_all_elements_visible: true, remove_fixed_elements: true, remove_navigation_elements: true}, image: {camera_photo_correction: true}, pdf: {}, presentation: {include_hidden_slides: true, out_of_bounds_content: true, skip_embedded_data: true}, spreadsheet: {detect_sub_tables_in_sheets: true, force_formula_computation_in_sheets: true, include_hidden_sheets: true}}",
3232
"--output-options", "{additional_outputs: [stripped_md, concatenated_stripped_txt, word_bbox], extract_printed_page_number: true, granular_bboxes: [word, line, cell], images_to_save: [embedded], markdown: {annotate_line_numbers: true, annotate_links: true, annotate_revisions: true, inline_images: true, tables: {compact_markdown_tables: true, markdown_table_multiline_separator: markdown_table_multiline_separator, merge_continued_tables: true, output_tables_as_markdown: true}}, save_output_pdf: true, spatial_text: {do_not_unroll_columns: true, preserve_layout_alignment_across_pages: true, preserve_very_small_text: true}, tables_as_spreadsheet: {enable: true, guess_sheet_name: true}, watermark_handling: remove}",
3333
"--page-ranges", "{max_pages: 1, target_pages: target_pages}",
3434
"--processing-control", "{job_failure_conditions: {allowed_page_failure_ratio: 1, fail_on_buggy_font: true, fail_on_image_extraction_error: true, fail_on_image_ocr_error: true, fail_on_markdown_reconstruction_error: true}, timeouts: {base_in_seconds: 1, extra_time_per_page_in_seconds: 1}}",
@@ -67,7 +67,7 @@ func TestParsingCreate(t *testing.T) {
6767
"--input-options.html", "{make_all_elements_visible: true, remove_fixed_elements: true, remove_navigation_elements: true}",
6868
"--input-options.image", "{camera_photo_correction: true}",
6969
"--input-options.pdf", "{}",
70-
"--input-options.presentation", "{out_of_bounds_content: true, skip_embedded_data: true}",
70+
"--input-options.presentation", "{include_hidden_slides: true, out_of_bounds_content: true, skip_embedded_data: true}",
7171
"--input-options.spreadsheet", "{detect_sub_tables_in_sheets: true, force_formula_computation_in_sheets: true, include_hidden_sheets: true}",
7272
"--output-options.additional-outputs", "[stripped_md, concatenated_stripped_txt, word_bbox]",
7373
"--output-options.extract-printed-page-number=true",
@@ -129,6 +129,7 @@ func TestParsingCreate(t *testing.T) {
129129
" camera_photo_correction: true\n" +
130130
" pdf: {}\n" +
131131
" presentation:\n" +
132+
" include_hidden_slides: true\n" +
132133
" out_of_bounds_content: true\n" +
133134
" skip_embedded_data: true\n" +
134135
" spreadsheet:\n" +

0 commit comments

Comments
 (0)