[package]
edition = "2021"
rust-version = "1.89"
name = "flpdf-cli"
version = "0.10.0"
authors = ["Mitsuru Hayasaka <10877+mitsuru@users.noreply.github.com>"]
build = false
exclude = [
"tests/ci_workflow_contract.rs",
"tests/release_workflow_contract.rs",
"tests/readme_rewrite_contract.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Command-line tools for flpdf, mirroring qpdf inspection and rewrite subcommands."
homepage = "https://github.com/fulgur-rs/flpdf"
documentation = "https://docs.rs/flpdf-cli"
readme = "README.md"
keywords = [
"pdf",
"qpdf",
"cli",
"linearization",
]
categories = ["command-line-utilities"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fulgur-rs/flpdf"
[features]
default = []
qpdf-libjpeg-compat = ["flpdf/qpdf-libjpeg-compat"]
qpdf-zlib-compat = ["flpdf/qpdf-zlib-compat"]
[[bin]]
name = "flpdf"
path = "src/main.rs"
doc = false
[[bin]]
name = "zlib-flate"
path = "src/main.rs"
doc = false
[[test]]
name = "cli_acroform_memo"
path = "tests/cli_acroform_memo.rs"
[[test]]
name = "cli_acroform_transforms"
path = "tests/cli_acroform_transforms.rs"
[[test]]
name = "cli_arg_parsing_segments"
path = "tests/cli_arg_parsing_segments.rs"
[[test]]
name = "cli_attachment_lifecycle"
path = "tests/cli_attachment_lifecycle.rs"
[[test]]
name = "cli_attachment_page_ops"
path = "tests/cli_attachment_page_ops.rs"
[[test]]
name = "cli_byte_identical"
path = "tests/cli_byte_identical.rs"
[[test]]
name = "cli_byte_identical_overlay"
path = "tests/cli_byte_identical_overlay.rs"
[[test]]
name = "cli_chained_indirect"
path = "tests/cli_chained_indirect.rs"
[[test]]
name = "cli_check_content_diagnostics"
path = "tests/cli_check_content_diagnostics.rs"
[[test]]
name = "cli_check_exitcodes"
path = "tests/cli_check_exitcodes.rs"
[[test]]
name = "cli_check_linearization"
path = "tests/cli_check_linearization.rs"
[[test]]
name = "cli_coalesce_warning"
path = "tests/cli_coalesce_warning.rs"
[[test]]
name = "cli_collate_usage_qpdf"
path = "tests/cli_collate_usage_qpdf.rs"
[[test]]
name = "cli_compression_level"
path = "tests/cli_compression_level.rs"
[[test]]
name = "cli_deep_page_tree_qpdf"
path = "tests/cli_deep_page_tree_qpdf.rs"
[[test]]
name = "cli_deterministic_id"
path = "tests/cli_deterministic_id.rs"
[[test]]
name = "cli_dictionary_key_escape"
path = "tests/cli_dictionary_key_escape.rs"
[[test]]
name = "cli_dump_object_removed"
path = "tests/cli_dump_object_removed.rs"
[[test]]
name = "cli_empty_primary"
path = "tests/cli_empty_primary.rs"
[[test]]
name = "cli_encrypt_split_pages_qpdf"
path = "tests/cli_encrypt_split_pages_qpdf.rs"
[[test]]
name = "cli_encryption_inspect"
path = "tests/cli_encryption_inspect.rs"
[[test]]
name = "cli_encryption_precedence"
path = "tests/cli_encryption_precedence.rs"
[[test]]
name = "cli_full_rewrite"
path = "tests/cli_full_rewrite.rs"
[[test]]
name = "cli_help_topics"
path = "tests/cli_help_topics.rs"
[[test]]
name = "cli_inline_images_transform"
path = "tests/cli_inline_images_transform.rs"
[[test]]
name = "cli_inspect_output_conflicts"
path = "tests/cli_inspect_output_conflicts.rs"
[[test]]
name = "cli_inspection_argv"
path = "tests/cli_inspection_argv.rs"
[[test]]
name = "cli_inspection_combinations"
path = "tests/cli_inspection_combinations.rs"
[[test]]
name = "cli_inspection_transform_combinations"
path = "tests/cli_inspection_transform_combinations.rs"
[[test]]
name = "cli_job_inspection"
path = "tests/cli_job_inspection.rs"
[[test]]
name = "cli_job_json"
path = "tests/cli_job_json.rs"
[[test]]
name = "cli_json"
path = "tests/cli_json.rs"
[[test]]
name = "cli_json_donor_policy"
path = "tests/cli_json_donor_policy.rs"
[[test]]
name = "cli_json_input"
path = "tests/cli_json_input.rs"
[[test]]
name = "cli_json_multi_source_pages_qpdf"
path = "tests/cli_json_multi_source_pages_qpdf.rs"
[[test]]
name = "cli_json_object_generation"
path = "tests/cli_json_object_generation.rs"
[[test]]
name = "cli_json_page_cache"
path = "tests/cli_json_page_cache.rs"
[[test]]
name = "cli_json_split_pages_precedence_qpdf"
path = "tests/cli_json_split_pages_precedence_qpdf.rs"
[[test]]
name = "cli_linearize"
path = "tests/cli_linearize.rs"
[[test]]
name = "cli_linearize_multi_source_qpdf"
path = "tests/cli_linearize_multi_source_qpdf.rs"
[[test]]
name = "cli_linearize_objstm"
path = "tests/cli_linearize_objstm.rs"
[[test]]
name = "cli_linearize_page_ops_qpdf"
path = "tests/cli_linearize_page_ops_qpdf.rs"
[[test]]
name = "cli_linearize_qpdf"
path = "tests/cli_linearize_qpdf.rs"
[[test]]
name = "cli_linearize_stop_on_error"
path = "tests/cli_linearize_stop_on_error.rs"
[[test]]
name = "cli_logger_routing"
path = "tests/cli_logger_routing.rs"
[[test]]
name = "cli_no_warn"
path = "tests/cli_no_warn.rs"
[[test]]
name = "cli_non_utf8_byte_preservation"
path = "tests/cli_non_utf8_byte_preservation.rs"
[[test]]
name = "cli_ocproperties_page_ops_qpdf"
path = "tests/cli_ocproperties_page_ops_qpdf.rs"
[[test]]
name = "cli_overlay"
path = "tests/cli_overlay.rs"
[[test]]
name = "cli_overlay_mediabox_qpdf"
path = "tests/cli_overlay_mediabox_qpdf.rs"
[[test]]
name = "cli_page_labels_transform"
path = "tests/cli_page_labels_transform.rs"
[[test]]
name = "cli_page_operation_transforms_qpdf"
path = "tests/cli_page_operation_transforms_qpdf.rs"
[[test]]
name = "cli_page_tree_orphan_qpdf"
path = "tests/cli_page_tree_orphan_qpdf.rs"
[[test]]
name = "cli_pages_acroform_qpdf"
path = "tests/cli_pages_acroform_qpdf.rs"
[[test]]
name = "cli_pages_annot_nullout_qpdf"
path = "tests/cli_pages_annot_nullout_qpdf.rs"
[[test]]
name = "cli_pages_direct_root_qpdf"
path = "tests/cli_pages_direct_root_qpdf.rs"
[[test]]
name = "cli_pages_inherited_mediabox_qpdf"
path = "tests/cli_pages_inherited_mediabox_qpdf.rs"
[[test]]
name = "cli_pages_numrange_alloc_qpdf"
path = "tests/cli_pages_numrange_alloc_qpdf.rs"
[[test]]
name = "cli_pages_objr_obj_annot_p_drop_qpdf"
path = "tests/cli_pages_objr_obj_annot_p_drop_qpdf.rs"
[[test]]
name = "cli_pages_objstm_order_qpdf"
path = "tests/cli_pages_objstm_order_qpdf.rs"
[[test]]
name = "cli_pages_pagelabels_qpdf"
path = "tests/cli_pages_pagelabels_qpdf.rs"
[[test]]
name = "cli_pages_source_dedup_raw_bytes"
path = "tests/cli_pages_source_dedup_raw_bytes.rs"
[[test]]
name = "cli_pages_structtree_pg_drop_qpdf"
path = "tests/cli_pages_structtree_pg_drop_qpdf.rs"
[[test]]
name = "cli_pages_thread_bead_p_drop_qpdf"
path = "tests/cli_pages_thread_bead_p_drop_qpdf.rs"
[[test]]
name = "cli_pages_verbose_diagnostics"
path = "tests/cli_pages_verbose_diagnostics.rs"
[[test]]
name = "cli_password_hex_key_tests"
path = "tests/cli_password_hex_key_tests.rs"
[[test]]
name = "cli_preserve_unreferenced_pages"
path = "tests/cli_preserve_unreferenced_pages.rs"
[[test]]
name = "cli_progname_prefix"
path = "tests/cli_progname_prefix.rs"
[[test]]
name = "cli_qdf"
path = "tests/cli_qdf.rs"
[[test]]
name = "cli_qdf_roundtrip_matrix"
path = "tests/cli_qdf_roundtrip_matrix.rs"
[[test]]
name = "cli_qpdf_conflict_matrix"
path = "tests/cli_qpdf_conflict_matrix.rs"
[[test]]
name = "cli_raw_xref_identity"
path = "tests/cli_raw_xref_identity.rs"
[[test]]
name = "cli_recompress_flate"
path = "tests/cli_recompress_flate.rs"
[[test]]
name = "cli_repeated_job_json_files"
path = "tests/cli_repeated_job_json_files.rs"
[[test]]
name = "cli_repeated_value_options"
path = "tests/cli_repeated_value_options.rs"
[[test]]
name = "cli_replace_input"
path = "tests/cli_replace_input.rs"
[[test]]
name = "cli_show_object"
path = "tests/cli_show_object.rs"
[[test]]
name = "cli_show_stream_removed"
path = "tests/cli_show_stream_removed.rs"
[[test]]
name = "cli_split_pages_preserve_unreferenced_qpdf"
path = "tests/cli_split_pages_preserve_unreferenced_qpdf.rs"
[[test]]
name = "cli_split_pages_verbose_qpdf"
path = "tests/cli_split_pages_verbose_qpdf.rs"
[[test]]
name = "cli_static_id"
path = "tests/cli_static_id.rs"
[[test]]
name = "cli_static_id_attachments_qpdf"
path = "tests/cli_static_id_attachments_qpdf.rs"
[[test]]
name = "cli_tests"
path = "tests/cli_tests.rs"
[[test]]
name = "cli_top_level_remove_unreferenced_resources"
path = "tests/cli_top_level_remove_unreferenced_resources.rs"
[[test]]
name = "cli_warning_suffix_matrix"
path = "tests/cli_warning_suffix_matrix.rs"
[[test]]
name = "cli_xref_entry_warning_offset"
path = "tests/cli_xref_entry_warning_offset.rs"
[[test]]
name = "cli_zlib_flate"
path = "tests/cli_zlib_flate.rs"
[[test]]
name = "cmp_copy_encryption_key_derivation_tests"
path = "tests/cmp_copy_encryption_key_derivation_tests.rs"
[[test]]
name = "cmp_copy_encryption_length_tests"
path = "tests/cmp_copy_encryption_length_tests.rs"
[[test]]
name = "cmp_issue_117_loop_tests"
path = "tests/cmp_issue_117_loop_tests.rs"
[[test]]
name = "cmp_linearize_generate_order_tests"
path = "tests/cmp_linearize_generate_order_tests.rs"
[[test]]
name = "cmp_qlwe5_linearization_tests"
path = "tests/cmp_qlwe5_linearization_tests.rs"
[[test]]
name = "cmp_trailer_size_tests"
path = "tests/cmp_trailer_size_tests.rs"
[[test]]
name = "cmp_trailer_value_description_tests"
path = "tests/cmp_trailer_value_description_tests.rs"
[[test]]
name = "compat_baseline_static_id"
path = "tests/compat_baseline_static_id.rs"
[[test]]
name = "compat_matrix_baseline"
path = "tests/compat_matrix_baseline.rs"
[[test]]
name = "compat_smoke"
path = "tests/compat_smoke.rs"
[[test]]
name = "encrypt_cli_tests"
path = "tests/encrypt_cli_tests.rs"
[[test]]
name = "encrypt_decrypt_matrix_tests"
path = "tests/encrypt_decrypt_matrix_tests.rs"
[[test]]
name = "encrypted_linearize_tests"
path = "tests/encrypted_linearize_tests.rs"
[[test]]
name = "encrypted_rewrite_tests"
path = "tests/encrypted_rewrite_tests.rs"
[[test]]
name = "image_optimization"
path = "tests/image_optimization.rs"
[[test]]
name = "inline_image_oracle_route_tests"
path = "tests/inline_image_oracle_route_tests.rs"
[[test]]
name = "job_json_image_optimization"
path = "tests/job_json_image_optimization.rs"
[[test]]
name = "json_schema_diff"
path = "tests/json_schema_diff.rs"
[[test]]
name = "keep_files_open"
path = "tests/keep_files_open.rs"
[[test]]
name = "library_version"
path = "tests/library_version.rs"
[[test]]
name = "normalize_content_route_contract_tests"
path = "tests/normalize_content_route_contract_tests.rs"
[[test]]
name = "object_handle_consumers_qpdf_tests"
path = "tests/object_handle_consumers_qpdf_tests.rs"
[[test]]
name = "overlay_transform_order_route_tests"
path = "tests/overlay_transform_order_route_tests.rs"
[[test]]
name = "page_ops_qpdf_matrix"
path = "tests/page_ops_qpdf_matrix.rs"
[[test]]
name = "page_range_qpdf_parity"
path = "tests/page_range_qpdf_parity.rs"
[[test]]
name = "password_mode_tests"
path = "tests/password_mode_tests.rs"
[[test]]
name = "password_recovery_tests"
path = "tests/password_recovery_tests.rs"
[[test]]
name = "progress_reporting"
path = "tests/progress_reporting.rs"
[[test]]
name = "report_memory_usage"
path = "tests/report_memory_usage.rs"
[[test]]
name = "verbose_overlay_progress"
path = "tests/verbose_overlay_progress.rs"
[[test]]
name = "verbose_pages_progress"
path = "tests/verbose_pages_progress.rs"
[[test]]
name = "verbose_wrote_file"
path = "tests/verbose_wrote_file.rs"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.flpdf]
version = "0.10.0"
[dependencies.same-file]
version = "1"
[dependencies.stacker]
version = "0.1.24"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.flpdf]
version = "0.10.0"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.regex]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.yaml-rust2]
version = "0.12"
default-features = false