INNER CODE UNIT · Rust
export_pdf_direct_to_file
edwardkim/rhwp · bindings/Native/src/lib.rs:109
fn export_pdf_direct_to_file(
_input_path: &Path,
_output_file: &Path,
_target_page: Option<u32>,
) -> Result<String, String> {
Ok(concat!(
"{\"ok\":false,\"code\":\"featureDisabled\",",
"\"error\":\"Direct PDF export requires the native-skia feature.\"}"
)
.to_string())
}
#[cfg(feature = "native-skia")]
fn export_pdf_direct_to_file(
input_path: &Path,
output_file: &Path,
target_page: Option<u32>,
) -> Result<String, String> {