@@ -57,18 +57,18 @@ namespace pdflib
5757
5858 j[" page_boundary" ] = page_boundary;
5959
60- j[" do_sanitization" ] = do_sanitization;
60+ j[" do_sanitization" ] = nlohmann::json ( do_sanitization) ;
6161
62- j[" keep_char_cells" ] = keep_char_cells;
63- j[" keep_shapes" ] = keep_shapes;
64- j[" keep_bitmaps" ] = keep_bitmaps;
62+ j[" keep_char_cells" ] = nlohmann::json ( keep_char_cells) ;
63+ j[" keep_shapes" ] = nlohmann::json ( keep_shapes) ;
64+ j[" keep_bitmaps" ] = nlohmann::json ( keep_bitmaps) ;
6565
6666 j[" max_num_lines" ] = max_num_lines;
6767 j[" max_num_bitmaps" ] = max_num_bitmaps;
6868
69- j[" create_word_cells" ] = create_word_cells;
70- j[" create_line_cells" ] = create_line_cells;
71- j[" enforce_same_font" ] = enforce_same_font;
69+ j[" create_word_cells" ] = nlohmann::json ( create_word_cells) ;
70+ j[" create_line_cells" ] = nlohmann::json ( create_line_cells) ;
71+ j[" enforce_same_font" ] = nlohmann::json ( enforce_same_font) ;
7272
7373 j[" horizontal_cell_tolerance" ] = horizontal_cell_tolerance;
7474
@@ -77,10 +77,10 @@ namespace pdflib
7777 j[" line_space_width_factor_for_merge" ] = line_space_width_factor_for_merge;
7878 j[" line_space_width_factor_for_merge_with_space" ] = line_space_width_factor_for_merge_with_space;
7979
80- j[" populate_json_objects" ] = populate_json_objects;
80+ j[" populate_json_objects" ] = nlohmann::json ( populate_json_objects) ;
8181
82- j[" keep_glyphs" ] = keep_glyphs;
83- j[" keep_qpdf_warnings" ] = keep_qpdf_warnings;
82+ j[" keep_glyphs" ] = nlohmann::json ( keep_glyphs) ;
83+ j[" keep_qpdf_warnings" ] = nlohmann::json ( keep_qpdf_warnings) ;
8484
8585 return j;
8686 }
0 commit comments