From 25f99cd08e70bfbbb55f962ef05f8f9008fbd8cc Mon Sep 17 00:00:00 2001 From: Muhammad-Adil Date: Thu, 6 Aug 2026 11:18:14 +0000 Subject: [PATCH 1/2] =?UTF-8?q?[draft]=20Start=20Indonesian=20(id)=20trans?= =?UTF-8?q?lation=20=E2=80=94=20rust-cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 6fb25e15bfe8642157b3e2ad5c0a0a822e0b0290 Mon Sep 17 00:00:00 2001 From: Muhammad-Adil Date: Thu, 6 Aug 2026 11:20:24 +0000 Subject: [PATCH 2/2] [auto] Translate to Indonesian (id) --- indonesian/rust-cpp/_index.md | 346 ++++++++++++++++++ indonesian/rust-cpp/convert/_index.md | 42 +++ .../rust-cpp/convert/export_fdf/_index.md | 37 ++ .../rust-cpp/convert/export_xfdf/_index.md | 37 ++ .../rust-cpp/convert/export_xml/_index.md | 37 ++ .../rust-cpp/convert/page_to_bmp/_index.md | 39 ++ .../rust-cpp/convert/page_to_dicom/_index.md | 39 ++ .../rust-cpp/convert/page_to_jpg/_index.md | 39 ++ .../rust-cpp/convert/page_to_pdf/_index.md | 38 ++ .../rust-cpp/convert/page_to_png/_index.md | 39 ++ .../rust-cpp/convert/page_to_svg/_index.md | 38 ++ .../rust-cpp/convert/page_to_tiff/_index.md | 39 ++ .../rust-cpp/convert/save_booklet/_index.md | 36 ++ .../rust-cpp/convert/save_doc/_index.md | 37 ++ .../rust-cpp/convert/save_docx/_index.md | 37 ++ .../convert/save_docx_enhanced/_index.md | 37 ++ .../rust-cpp/convert/save_epub/_index.md | 37 ++ .../rust-cpp/convert/save_markdown/_index.md | 36 ++ .../rust-cpp/convert/save_n_up/_index.md | 38 ++ .../rust-cpp/convert/save_pptx/_index.md | 37 ++ .../rust-cpp/convert/save_svg_zip/_index.md | 37 ++ .../rust-cpp/convert/save_tex/_index.md | 37 ++ .../rust-cpp/convert/save_tiff/_index.md | 37 ++ .../rust-cpp/convert/save_txt/_index.md | 37 ++ .../rust-cpp/convert/save_xlsx/_index.md | 37 ++ .../rust-cpp/convert/save_xps/_index.md | 37 ++ indonesian/rust-cpp/core/_index.md | 45 +++ indonesian/rust-cpp/core/append/_index.md | 43 +++ .../rust-cpp/core/append_pages/_index.md | 44 +++ indonesian/rust-cpp/core/bytes/_index.md | 40 ++ .../rust-cpp/core/character_count/_index.md | 40 ++ .../rust-cpp/core/clear_meta_info/_index.md | 40 ++ .../rust-cpp/core/extract_text/_index.md | 40 ++ .../rust-cpp/core/get_meta_info/_index.md | 40 ++ .../rust-cpp/core/is_linearized/_index.md | 41 +++ .../rust-cpp/core/merge_documents/_index.md | 43 +++ indonesian/rust-cpp/core/new/_index.md | 37 ++ indonesian/rust-cpp/core/open/_index.md | 37 ++ indonesian/rust-cpp/core/page_add/_index.md | 40 ++ .../core/page_character_count/_index.md | 44 +++ indonesian/rust-cpp/core/page_count/_index.md | 40 ++ .../rust-cpp/core/page_delete/_index.md | 40 ++ .../rust-cpp/core/page_insert/_index.md | 40 ++ .../rust-cpp/core/page_is_blank/_index.md | 44 +++ .../rust-cpp/core/page_word_count/_index.md | 44 +++ indonesian/rust-cpp/core/save/_index.md | 37 ++ indonesian/rust-cpp/core/save_as/_index.md | 37 ++ .../rust-cpp/core/set_license/_index.md | 40 ++ .../rust-cpp/core/set_meta_info/_index.md | 41 +++ indonesian/rust-cpp/core/split/_index.md | 43 +++ indonesian/rust-cpp/core/split_at/_index.md | 41 +++ .../rust-cpp/core/split_at_page/_index.md | 42 +++ .../rust-cpp/core/split_document/_index.md | 44 +++ indonesian/rust-cpp/core/word_count/_index.md | 40 ++ indonesian/rust-cpp/miscellaneous/_index.md | 19 + .../rust-cpp/miscellaneous/about/_index.md | 69 ++++ indonesian/rust-cpp/organize/_index.md | 71 ++++ .../rust-cpp/organize/add_page_num/_index.md | 40 ++ .../organize/add_text_footer/_index.md | 40 ++ .../organize/add_text_header/_index.md | 40 ++ .../rust-cpp/organize/add_watermark/_index.md | 69 ++++ .../rust-cpp/organize/convert/_index.md | 49 +++ indonesian/rust-cpp/organize/crop/_index.md | 40 ++ .../rust-cpp/organize/embed_fonts/_index.md | 40 ++ .../rust-cpp/organize/flatten/_index.md | 40 ++ .../rust-cpp/organize/grayscale/_index.md | 40 ++ .../organize/is_pdfa_compliant/_index.md | 41 +++ .../organize/is_pdfua_compliant/_index.md | 41 +++ .../rust-cpp/organize/optimize/_index.md | 40 ++ .../organize/optimize_file_size/_index.md | 40 ++ .../organize/optimize_resource/_index.md | 40 ++ .../organize/page_add_page_num/_index.md | 40 ++ .../rust-cpp/organize/page_add_text/_index.md | 41 +++ .../organize/page_add_text_footer/_index.md | 41 +++ .../organize/page_add_text_header/_index.md | 41 +++ .../organize/page_add_watermark/_index.md | 72 ++++ .../rust-cpp/organize/page_crop/_index.md | 41 +++ .../organize/page_grayscale/_index.md | 40 ++ .../rust-cpp/organize/page_layers/_index.md | 42 +++ .../organize/page_merge_layers/_index.md | 41 +++ .../page_remove_annotations/_index.md | 40 ++ .../page_remove_hidden_text/_index.md | 40 ++ .../organize/page_remove_images/_index.md | 40 ++ .../organize/page_remove_tables/_index.md | 40 ++ .../page_remove_text_footers/_index.md | 40 ++ .../page_remove_text_headers/_index.md | 40 ++ .../organize/page_remove_watermarks/_index.md | 40 ++ .../organize/page_replace_font/_index.md | 42 +++ .../organize/page_replace_text/_index.md | 42 +++ .../rust-cpp/organize/page_rotate/_index.md | 41 +++ .../rust-cpp/organize/page_set_size/_index.md | 41 +++ .../organize/remove_annotations/_index.md | 40 ++ .../organize/remove_attachments/_index.md | 40 ++ .../organize/remove_blank_pages/_index.md | 40 ++ .../organize/remove_bookmarks/_index.md | 40 ++ .../organize/remove_hidden_text/_index.md | 40 ++ .../rust-cpp/organize/remove_images/_index.md | 40 ++ .../organize/remove_javascripts/_index.md | 40 ++ .../organize/remove_pdfa_compliance/_index.md | 40 ++ .../remove_pdfua_compliance/_index.md | 40 ++ .../rust-cpp/organize/remove_tables/_index.md | 40 ++ .../organize/remove_text_footers/_index.md | 40 ++ .../organize/remove_text_headers/_index.md | 40 ++ .../organize/remove_watermarks/_index.md | 40 ++ indonesian/rust-cpp/organize/repair/_index.md | 40 ++ .../rust-cpp/organize/replace_font/_index.md | 41 +++ .../rust-cpp/organize/replace_text/_index.md | 41 +++ indonesian/rust-cpp/organize/rotate/_index.md | 40 ++ .../organize/set_background/_index.md | 42 +++ .../rust-cpp/organize/unembed_fonts/_index.md | 40 ++ .../rust-cpp/organize/validate/_index.md | 44 +++ indonesian/rust-cpp/security/_index.md | 28 ++ .../rust-cpp/security/decrypt/_index.md | 40 ++ .../rust-cpp/security/encrypt/_index.md | 57 +++ .../security/get_permissions/_index.md | 40 ++ .../rust-cpp/security/is_encrypted/_index.md | 39 ++ .../rust-cpp/security/is_signed/_index.md | 39 ++ .../security/open_with_password/_index.md | 37 ++ .../rust-cpp/security/remove_signs/_index.md | 38 ++ .../security/set_permissions/_index.md | 51 +++ .../rust-cpp/security/sign_pkcs7/_index.md | 84 +++++ .../security/sign_pkcs7_detached/_index.md | 84 +++++ 122 files changed, 5383 insertions(+) create mode 100644 indonesian/rust-cpp/_index.md create mode 100644 indonesian/rust-cpp/convert/_index.md create mode 100644 indonesian/rust-cpp/convert/export_fdf/_index.md create mode 100644 indonesian/rust-cpp/convert/export_xfdf/_index.md create mode 100644 indonesian/rust-cpp/convert/export_xml/_index.md create mode 100644 indonesian/rust-cpp/convert/page_to_bmp/_index.md create mode 100644 indonesian/rust-cpp/convert/page_to_dicom/_index.md create mode 100644 indonesian/rust-cpp/convert/page_to_jpg/_index.md create mode 100644 indonesian/rust-cpp/convert/page_to_pdf/_index.md create mode 100644 indonesian/rust-cpp/convert/page_to_png/_index.md create mode 100644 indonesian/rust-cpp/convert/page_to_svg/_index.md create mode 100644 indonesian/rust-cpp/convert/page_to_tiff/_index.md create mode 100644 indonesian/rust-cpp/convert/save_booklet/_index.md create mode 100644 indonesian/rust-cpp/convert/save_doc/_index.md create mode 100644 indonesian/rust-cpp/convert/save_docx/_index.md create mode 100644 indonesian/rust-cpp/convert/save_docx_enhanced/_index.md create mode 100644 indonesian/rust-cpp/convert/save_epub/_index.md create mode 100644 indonesian/rust-cpp/convert/save_markdown/_index.md create mode 100644 indonesian/rust-cpp/convert/save_n_up/_index.md create mode 100644 indonesian/rust-cpp/convert/save_pptx/_index.md create mode 100644 indonesian/rust-cpp/convert/save_svg_zip/_index.md create mode 100644 indonesian/rust-cpp/convert/save_tex/_index.md create mode 100644 indonesian/rust-cpp/convert/save_tiff/_index.md create mode 100644 indonesian/rust-cpp/convert/save_txt/_index.md create mode 100644 indonesian/rust-cpp/convert/save_xlsx/_index.md create mode 100644 indonesian/rust-cpp/convert/save_xps/_index.md create mode 100644 indonesian/rust-cpp/core/_index.md create mode 100644 indonesian/rust-cpp/core/append/_index.md create mode 100644 indonesian/rust-cpp/core/append_pages/_index.md create mode 100644 indonesian/rust-cpp/core/bytes/_index.md create mode 100644 indonesian/rust-cpp/core/character_count/_index.md create mode 100644 indonesian/rust-cpp/core/clear_meta_info/_index.md create mode 100644 indonesian/rust-cpp/core/extract_text/_index.md create mode 100644 indonesian/rust-cpp/core/get_meta_info/_index.md create mode 100644 indonesian/rust-cpp/core/is_linearized/_index.md create mode 100644 indonesian/rust-cpp/core/merge_documents/_index.md create mode 100644 indonesian/rust-cpp/core/new/_index.md create mode 100644 indonesian/rust-cpp/core/open/_index.md create mode 100644 indonesian/rust-cpp/core/page_add/_index.md create mode 100644 indonesian/rust-cpp/core/page_character_count/_index.md create mode 100644 indonesian/rust-cpp/core/page_count/_index.md create mode 100644 indonesian/rust-cpp/core/page_delete/_index.md create mode 100644 indonesian/rust-cpp/core/page_insert/_index.md create mode 100644 indonesian/rust-cpp/core/page_is_blank/_index.md create mode 100644 indonesian/rust-cpp/core/page_word_count/_index.md create mode 100644 indonesian/rust-cpp/core/save/_index.md create mode 100644 indonesian/rust-cpp/core/save_as/_index.md create mode 100644 indonesian/rust-cpp/core/set_license/_index.md create mode 100644 indonesian/rust-cpp/core/set_meta_info/_index.md create mode 100644 indonesian/rust-cpp/core/split/_index.md create mode 100644 indonesian/rust-cpp/core/split_at/_index.md create mode 100644 indonesian/rust-cpp/core/split_at_page/_index.md create mode 100644 indonesian/rust-cpp/core/split_document/_index.md create mode 100644 indonesian/rust-cpp/core/word_count/_index.md create mode 100644 indonesian/rust-cpp/miscellaneous/_index.md create mode 100644 indonesian/rust-cpp/miscellaneous/about/_index.md create mode 100644 indonesian/rust-cpp/organize/_index.md create mode 100644 indonesian/rust-cpp/organize/add_page_num/_index.md create mode 100644 indonesian/rust-cpp/organize/add_text_footer/_index.md create mode 100644 indonesian/rust-cpp/organize/add_text_header/_index.md create mode 100644 indonesian/rust-cpp/organize/add_watermark/_index.md create mode 100644 indonesian/rust-cpp/organize/convert/_index.md create mode 100644 indonesian/rust-cpp/organize/crop/_index.md create mode 100644 indonesian/rust-cpp/organize/embed_fonts/_index.md create mode 100644 indonesian/rust-cpp/organize/flatten/_index.md create mode 100644 indonesian/rust-cpp/organize/grayscale/_index.md create mode 100644 indonesian/rust-cpp/organize/is_pdfa_compliant/_index.md create mode 100644 indonesian/rust-cpp/organize/is_pdfua_compliant/_index.md create mode 100644 indonesian/rust-cpp/organize/optimize/_index.md create mode 100644 indonesian/rust-cpp/organize/optimize_file_size/_index.md create mode 100644 indonesian/rust-cpp/organize/optimize_resource/_index.md create mode 100644 indonesian/rust-cpp/organize/page_add_page_num/_index.md create mode 100644 indonesian/rust-cpp/organize/page_add_text/_index.md create mode 100644 indonesian/rust-cpp/organize/page_add_text_footer/_index.md create mode 100644 indonesian/rust-cpp/organize/page_add_text_header/_index.md create mode 100644 indonesian/rust-cpp/organize/page_add_watermark/_index.md create mode 100644 indonesian/rust-cpp/organize/page_crop/_index.md create mode 100644 indonesian/rust-cpp/organize/page_grayscale/_index.md create mode 100644 indonesian/rust-cpp/organize/page_layers/_index.md create mode 100644 indonesian/rust-cpp/organize/page_merge_layers/_index.md create mode 100644 indonesian/rust-cpp/organize/page_remove_annotations/_index.md create mode 100644 indonesian/rust-cpp/organize/page_remove_hidden_text/_index.md create mode 100644 indonesian/rust-cpp/organize/page_remove_images/_index.md create mode 100644 indonesian/rust-cpp/organize/page_remove_tables/_index.md create mode 100644 indonesian/rust-cpp/organize/page_remove_text_footers/_index.md create mode 100644 indonesian/rust-cpp/organize/page_remove_text_headers/_index.md create mode 100644 indonesian/rust-cpp/organize/page_remove_watermarks/_index.md create mode 100644 indonesian/rust-cpp/organize/page_replace_font/_index.md create mode 100644 indonesian/rust-cpp/organize/page_replace_text/_index.md create mode 100644 indonesian/rust-cpp/organize/page_rotate/_index.md create mode 100644 indonesian/rust-cpp/organize/page_set_size/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_annotations/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_attachments/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_blank_pages/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_bookmarks/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_hidden_text/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_images/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_javascripts/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_pdfa_compliance/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_pdfua_compliance/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_tables/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_text_footers/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_text_headers/_index.md create mode 100644 indonesian/rust-cpp/organize/remove_watermarks/_index.md create mode 100644 indonesian/rust-cpp/organize/repair/_index.md create mode 100644 indonesian/rust-cpp/organize/replace_font/_index.md create mode 100644 indonesian/rust-cpp/organize/replace_text/_index.md create mode 100644 indonesian/rust-cpp/organize/rotate/_index.md create mode 100644 indonesian/rust-cpp/organize/set_background/_index.md create mode 100644 indonesian/rust-cpp/organize/unembed_fonts/_index.md create mode 100644 indonesian/rust-cpp/organize/validate/_index.md create mode 100644 indonesian/rust-cpp/security/_index.md create mode 100644 indonesian/rust-cpp/security/decrypt/_index.md create mode 100644 indonesian/rust-cpp/security/encrypt/_index.md create mode 100644 indonesian/rust-cpp/security/get_permissions/_index.md create mode 100644 indonesian/rust-cpp/security/is_encrypted/_index.md create mode 100644 indonesian/rust-cpp/security/is_signed/_index.md create mode 100644 indonesian/rust-cpp/security/open_with_password/_index.md create mode 100644 indonesian/rust-cpp/security/remove_signs/_index.md create mode 100644 indonesian/rust-cpp/security/set_permissions/_index.md create mode 100644 indonesian/rust-cpp/security/sign_pkcs7/_index.md create mode 100644 indonesian/rust-cpp/security/sign_pkcs7_detached/_index.md diff --git a/indonesian/rust-cpp/_index.md b/indonesian/rust-cpp/_index.md new file mode 100644 index 0000000000..abea947920 --- /dev/null +++ b/indonesian/rust-cpp/_index.md @@ -0,0 +1,346 @@ +--- +title: "Aspose.PDF untuk Rust via C++" +description: "Aspose.PDF untuk Rust via C++" +keywords: "Rust, PDF, PDF toolkit, pdf, convert, processing" +tags: ['pdf-to-jpg', 'pdf-to-png', 'pdf-convert', 'pdf-tools'] +weight: 40 +url: /id/rust-cpp/ +type: docs +is_root: true +--- + +> Aspose.PDF for Rust via C++ allows developers manipulate them PDF files directly in the Rust. + +# Struktur + +## Document +Dokumen mewakili PDF-document. + +```rust +pub struct Document { /* private fields */ } +``` + +# Implementations + +## Convert from PDF functions + +| Fungsi | Deskripsi | +| -------- | ----------- | +| [save_docx](./convert/save_docx/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai DocX-document. | +| [save_doc](./convert/save_doc/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Doc-document. | +| [save_xlsx](./convert/save_xlsx/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai XlsX-document. | +| [save_txt](./convert/save_txt/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Txt-document. | +| [save_pptx](./convert/save_pptx/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai PptX-document. | +| [save_xps](./convert/save_xps/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Xps-document. | +| [save_tex](./convert/save_tex/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai TeX-document. | +| [save_epub](./convert/save_epub/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Epub-document. | +| [save_booklet](./convert/save_booklet/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai booklet PDF-document. | +| [save_n_up](./convert/save_n_up/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai N-Up PDF-document. | +| [save_markdown](./convert/save_markdown/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Markdown-document. | +| [save_tiff](./convert/save_tiff/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Tiff-document. | +| [save_docx_enhanced](./convert/save_docx_enhanced/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai DocX-document dengan Mode Pengakuan Tingkat Lanjut (tabel dan paragraf dapat diedit sepenuhnya). | +| [save_svg_zip](./convert/save_svg_zip/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai SVG-archive. | +| [export_fdf](./convert/export_fdf/) | Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke FDF-document. | +| [export_xfdf](./convert/export_xfdf/) | Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke XFDF-document. | +| [export_xml](./convert/export_xml/) | Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke XML-document. | +| [page_to_jpg](./convert/page_to_jpg/) | Konversi dan simpan halaman yang ditentukan sebagai Jpg-image. | +| [page_to_png](./convert/page_to_png/) | Konversi dan simpan halaman yang ditentukan sebagai Png-image. | +| [page_to_bmp](./convert/page_to_bmp/) | Konversi dan simpan halaman yang ditentukan sebagai Bmp-image. | +| [page_to_tiff](./convert/page_to_tiff/) | Konversi dan simpan halaman yang ditentukan sebagai Tiff-image. | +| [page_to_svg](./convert/page_to_svg/) | Konversi dan simpan halaman yang ditentukan sebagai Svg-image. | +| [page_to_pdf](./convert/page_to_pdf/) | Konversi dan simpan halaman yang ditentukan sebagai PDF-document. | +| [page_to_dicom](./convert/page_to_dicom/) | Konversi dan simpan halaman yang ditentukan sebagai DICOM-image. | + + +## Organize PDF functions + +| Fungsi | Deskripsi | +| -------- | ----------- | +| [optimize](./organize/optimize/) | Optimalkan konten PDF-document. | +| [optimize_resource](./organize/optimize_resource/) | Optimalkan sumber daya PDF-document. | +| [grayscale](./organize/grayscale/) | Konversi PDF-document menjadi hitam putih. | +| [rotate](./organize/rotate/) | Putar PDF-document. | +| [set_background](./organize/set_background/) | Atur warna latar belakang PDF-document menggunakan nilai RGB. | +| [repair](./organize/repair/) | Perbaiki PDF-document. | +| [replace_text](./organize/replace_text/) | Ganti teks dalam PDF-document | +| [add_page_num](./organize/add_page_num/) | Tambahkan nomor halaman ke PDF-document | +| [add_text_header](./organize/add_text_header/) | Tambahkan teks di Header PDF-document | +| [add_text_footer](./organize/add_text_footer/) | Tambahkan teks di Footer PDF-document | +| [flatten](./organize/flatten/) | Ratakan PDF-document | +| [remove_annotations](./organize/remove_annotations/) | Hapus anotasi dari PDF-document | +| [remove_attachments](./organize/remove_attachments/) | Hapus lampiran dari PDF-document | +| [remove_blank_pages](./organize/remove_blank_pages/) | Hapus halaman kosong dari PDF-document | +| [remove_bookmarks](./organize/remove_bookmarks/) | Hapus bookmark dari PDF-document | +| [remove_hidden_text](./organize/remove_hidden_text/) | Hapus teks tersembunyi dari PDF-document | +| [remove_images](./organize/remove_images/) | Hapus gambar dari PDF-document | +| [remove_javascripts](./organize/remove_javascripts/) | Hapus skrip java dari PDF-document | +| [remove_tables](./organize/remove_tables/) | Hapus tabel dari PDF-document. | +| [remove_watermarks](./organize/remove_watermarks/) | Hapus watermark dari PDF-document. | +| [add_watermark](./organize/add_watermark/) | Tambahkan watermark ke PDF-document. | +| [embed_fonts](./organize/embed_fonts/) | Sematkan font pada PDF-document. | +| [unembed_fonts](./organize/unembed_fonts/) | Hapus penyematan font pada PDF-document. | +| [optimize_file_size](./organize/optimize_file_size/) | Optimalkan ukuran PDF-document dengan kualitas kompresi gambar. | +| [remove_text_headers](./organize/remove_text_headers/) | Hapus header teks dari PDF-document. | +| [remove_text_footers](./organize/remove_text_footers/) | Hapus footer teks dari PDF-document. | +| [crop](./organize/crop/) | Potong halaman PDF-document. | +| [replace_font](./organize/replace_font/) | Ganti font dalam PDF-document. | +| [convert](./organize/convert/) | Konversi PDF-document menjadi PDF-document dengan format PDF yang ditentukan | +| [validate](./organize/validate/) | Validasi PDF-document untuk kepatuhan terhadap format PDF | +| [remove_pdfa_compliance](./organize/remove_pdfa_compliance/) | Hapus kepatuhan PDF/A dari PDF-document | +| [remove_pdfua_compliance](./organize/remove_pdfua_compliance/) | Hapus kepatuhan PDF/UA dari PDF-document | +| [is_pdfa_compliant](./organize/is_pdfa_compliant/) | Dapatkan apakah PDF-document mematuhi PDF/A | +| [is_pdfua_compliant](./organize/is_pdfua_compliant/) | Dapatkan apakah PDF-document mematuhi PDF/UA | +| [page_rotate](./organize/page_rotate/) | Putar halaman dalam PDF-document. | +| [page_set_size](./organize/page_set_size/) | Atur ukuran halaman dalam PDF-document. | +| [page_grayscale](./organize/page_grayscale/) | Konversi halaman menjadi hitam putih. | +| [page_add_text](./organize/page_add_text/) | Tambahkan teks pada halaman. | +| [page_replace_text](./organize/page_replace_text/) | Ganti teks pada halaman | +| [page_add_page_num](./organize/page_add_page_num/) | Tambahkan nomor halaman pada halaman | +| [page_add_text_header](./organize/page_add_text_header/) | Tambahkan teks di header halaman | +| [page_add_text_footer](./organize/page_add_text_footer/) | Tambahkan teks di footer halaman | +| [page_remove_annotations](./organize/page_remove_annotations/) | Hapus anotasi di halaman. | +| [page_remove_hidden_text](./organize/page_remove_hidden_text/) | Hapus teks tersembunyi di halaman. | +| [page_remove_images](./organize/page_remove_images/) | Hapus gambar di halaman. | +| [page_remove_tables](./organize/page_remove_tables/) | Hapus tabel di halaman. | +| [page_remove_watermarks](./organize/page_remove_watermarks/) | Hapus watermark pada halaman. | +| [page_add_watermark](./organize/page_add_watermark/) | Tambahkan watermark pada halaman. | +| [page_remove_text_headers](./organize/page_remove_text_headers/) | Hapus header teks pada halaman. | +| [page_remove_text_footers](./organize/page_remove_text_footers/) | Hapus footer teks pada halaman. | +| [page_crop](./organize/page_crop/) | Potong sebuah halaman. | +| [page_replace_font](./organize/page_replace_font/) | Ganti font pada halaman. | +| [page_merge_layers](./organize/page_merge_layers/) | Gabungkan semua lapisan pada halaman menjadi satu lapisan dengan nama lapisan baru yang ditentukan. | +| [page_layers](./organize/page_layers/) | Dapatkan nama-nama lapisan pada halaman. | + + +## Core PDF functions + +| Fungsi | Deskripsi | +| -------- | ----------- | +| [new](./core/new/) | Buat dokumen PDF baru. | +| [open](./core/open/) | Buka dokumen PDF dengan nama file. | +| [save](./core/save/) | Simpan dokumen PDF yang sebelumnya dibuka. | +| [save_as](./core/save_as/) | Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru. | +| [set_license](./core/set_license/) | Atur lisensi dengan nama file. | +| [extract_text](./core/extract_text/) | Kembalikan isi dokumen PDF sebagai teks biasa. | +| [word_count](./core/word_count/) | Kembalikan jumlah kata dalam dokumen PDF. | +| [character_count](./core/character_count/) | Kembalikan jumlah karakter dalam dokumen PDF. | +| [append](./core/append/) | Tambahkan halaman dari dokumen PDF lain. | +| [append_pages](./core/append_pages/) | Tambahkan halaman terpilih dari dokumen PDF lain. | +| [merge_documents](./core/merge_documents/) | Buat dokumen PDF baru dengan menggabungkan dokumen PDF yang disediakan. | +| [split_document](./core/split_document/) | Buat beberapa dokumen PDF baru dengan mengekstrak halaman dari dokumen PDF sumber. | +| [split](./core/split/) | Buat beberapa dokumen PDF baru dengan mengekstrak halaman dari dokumen PDF saat ini. | +| [split_at_page](./core/split_at_page/) | Pisahkan dokumen PDF menjadi dua dokumen PDF baru. | +| [split_at](./core/split_at/) | Pisahkan dokumen PDF saat ini menjadi dua dokumen PDF baru. | +| [bytes](./core/bytes/) | Kembalikan isi dokumen PDF sebagai vektor byte. | +| [get_meta_info](./core/get_meta_info/) | Dapatkan nilai informasi meta dokumen PDF. | +| [set_meta_info](./core/set_meta_info/) | Atur nilai informasi meta dari dokumen PDF. | +| [clear_meta_info](./core/clear_meta_info/) | Kosongkan semua nilai informasi meta dari dokumen PDF. | +| [is_linearized](./core/is_linearized/) | Dapatkan nilai yang menunjukkan apakah dokumen terlinier. | +| [page_add](./core/page_add/) | Tambahkan halaman baru dalam dokumen PDF. | +| [page_insert](./core/page_insert/) | Sisipkan halaman baru pada posisi yang ditentukan dalam dokumen PDF. | +| [page_delete](./core/page_delete/) | Hapus halaman yang ditentukan dalam dokumen PDF. | +| [page_count](./core/page_count/) | Kembalikan jumlah halaman dalam dokumen PDF. | +| [page_word_count](./core/page_word_count/) | Kembalikan jumlah kata pada halaman yang ditentukan dalam dokumen PDF. | +| [page_character_count](./core/page_character_count/) | Kembalikan jumlah karakter pada halaman yang ditentukan dalam dokumen PDF. | +| [page_is_blank](./core/page_is_blank/) | Kembalikan apakah halaman kosong dalam dokumen PDF. | + + +## Security +| Fungsi | Deskripsi | +| -------- | ----------- | +| [open_with_password](./security/open_with_password/) | Buka dokumen PDF yang dilindungi kata sandi. | +| [encrypt](./security/encrypt/) | Enkripsi dokumen PDF. | +| [decrypt](./security/decrypt/) | Dekripsi dokumen PDF. | +| [set_permissions](./security/set_permissions/) | Atur izin untuk dokumen PDF. | +| [get_permissions](./security/get_permissions/) | Dapatkan izin saat ini dari dokumen PDF. | +| [is_encrypted](./security/is_encrypted/) | Dapatkan status terenkripsi dari dokumen PDF. | +| [sign_pkcs7](./security/sign_pkcs7/) | Tandatangani dokumen PDF menggunakan tanda tangan digital PKCS#7. | +| [sign_pkcs7_detached](./security/sign_pkcs7_detached/) | Tandatangani dokumen PDF menggunakan tanda tangan digital PKCS#7 Terpisah. | +| [is_signed](./security/is_signed/) | Dapatkan status tertanda pada dokumen PDF. | +| [remove_signs](./security/remove_signs/) | Hapus tanda dari dokumen PDF. | + + +## Miscellaneous + +| Fungsi | Deskripsi | +| -------- | ----------- | +| [about](./miscellaneous/about/) | Kembalikan informasi metadata tentang Aspose.PDF untuk Rust melalui C++. | + + + +# Structs secondary + +## ProductInfo contains metadata about the Aspose.PDF for Rust via C++. +```rust +#[derive(Debug, Deserialize)] +pub struct ProductInfo { + #[serde(rename = "product")] + pub product: String, + + #[serde(rename = "family")] + pub family: String, + + #[serde(rename = "version")] + pub version: String, + + #[serde(rename = "releasedate")] + pub release_date: String, + + #[serde(rename = "producer")] + pub producer: String, + + #[serde(rename = "islicensed")] + pub is_licensed: bool, +} +``` + +## Bitflag set representing PDF permission capabilities. +```rust +bitflags! { + /// Set bitflag yang mewakili kemampuan izin PDF. + #[derive(Copy, Clone, PartialEq, Eq)] + pub struct Permissions: i32 { + const PRINT_DOCUMENT = 1 << 2; // 4 + const MODIFY_CONTENT = 1 << 3; // 8 + const EXTRACT_CONTENT = 1 << 4; // 16 + const MODIFY_TEXT_ANNOTATIONS = 1 << 5; // 32 + const FILL_FORM = 1 << 8; // 256 + const EXTRACT_CONTENT_WITH_DISABILITIES = 1 << 9; // 512 + const ASSEMBLE_DOCUMENT = 1 << 10; // 1024 + const PRINTING_QUALITY = 1 << 11; // 2048 + } +} +``` + +# Enums + +## Enumeration of possible page size values. +```rust +pub enum PageSize { + /// Ukuran A0. + A0 = 0, + /// Ukuran A1. + A1 = 1, + /// Ukuran A2. + A2 = 2, + /// ukuran A3. + A3 = 3, + /// ukuran A4. + A4 = 4, + /// ukuran A5. + A5 = 5, + /// ukuran A6. + A6 = 6, + /// ukuran B5. + B5 = 7, + /// ukuran PageLetter. + PageLetter = 8, + /// ukuran PageLegal. + PageLegal = 9, + /// ukuran PageLedger. + PageLedger = 10, + /// ukuran P11x17. + P11x17 = 11, +} +``` + +## Enumeration of possible rotation values. +```rust +pub enum Rotation { + /// Tidak diputar. + None = 0, + /// Diputar 90 derajat searah jarum jam. + On90 = 1, + /// Diputar 180 derajat. + On180 = 2, + /// Diputar 270 derajat searah jarum jam. + On270 = 3, + /// Diputar 360 derajat searah jarum jam. + On360 = 4, +} +``` + +## An enumeration of possible crypto algorithms. +```rust +pub enum CryptoAlgorithm { + /// RC4 dengan panjang kunci 40. + RC4x40 = 0, + /// RC4 dengan panjang kunci 128. + RC4x128 = 1, + /// AES dengan panjang kunci 128. + AESx128 = 2, + /// AES dengan panjang kunci 256. + AESx256 = 3, +} +``` + +## An enumeration of possible PDF format standards. +```rust +pub enum PdfFormat { + /// format PDF/A-1a. + PDF_A_1A = 0, + /// format PDF/A-1b. + PDF_A_1B = 1, + /// format PDF/A-2a. + PDF_A_2A = 2, + /// format PDF/A-3a. + PDF_A_3A = 3, + /// format PDF/A-2b. + PDF_A_2B = 4, + /// format PDF/A-2u. + PDF_A_2U = 5, + /// format PDF/A-3b. + PDF_A_3B = 6, + /// format PDF/A-3u. + PDF_A_3U = 7, + /// Versi Adobe 1.0. + V_1_0 = 8, + /// Versi Adobe 1.1. + V_1_1 = 9, + /// Versi Adobe 1.2. + V_1_2 = 10, + /// Versi Adobe 1.3. + V_1_3 = 11, + /// Versi Adobe 1.4. + V_1_4 = 12, + /// Versi Adobe 1.5. + V_1_5 = 13, + /// Versi Adobe 1.6. + V_1_6 = 14, + /// Versi Adobe 1.7. + V_1_7 = 15, + /// Standar ISO PDF 2.0. + V_2_0 = 16, + /// format PDF/UA-1. + PDF_UA_1 = 17, + /// format PDF/X-1a:2001. + PDF_X_1A_2001 = 18, + /// format PDF/X-1a. + PDF_X_1A = 19, + /// format PDF/X-3. + PDF_X_3 = 20, + /// format ZUGFeRD. + ZUGFeRD = 21, + /// format PDF/A-4. + PDF_A_4 = 22, + /// format PDF/A-4e. + PDF_A_4E = 23, + /// format PDF/A-4f. + PDF_A_4F = 24, + /// format PDF/X-4. + PDF_X_4 = 25, + /// format PDF/E-1 (PDF 1.6). + PDF_E_1 = 26, +} +``` + +## An enumeration of actions to take when a conversion error occurs. +```rust +pub enum ConvertErrorAction { + /// Hapus elemen yang tidak sesuai. + Delete = 0, + /// Tidak melakukan apa pun, pertahankan elemen yang tidak sesuai. + None = 1, +} +``` + diff --git a/indonesian/rust-cpp/convert/_index.md b/indonesian/rust-cpp/convert/_index.md new file mode 100644 index 0000000000..1f0f6f0590 --- /dev/null +++ b/indonesian/rust-cpp/convert/_index.md @@ -0,0 +1,42 @@ +--- +title: "Fungsi mengonversi dari PDF" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Fungsi untuk mengonversi dari file PDF." +type: docs +url: /id/rust-cpp/convert/ +--- + +## Convert from PDF functions + +| Nama | Deskripsi | +| -------------- | -------------- | +| [save_docx](./save_docx/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai DocX-document. | +| [save_doc](./save_doc/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Doc-document. | +| [save_xlsx](./save_xlsx/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai XlsX-document. | +| [save_txt](./save_txt/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Txt-document. | +| [save_pptx](./save_pptx/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai PptX-document. | +| [save_xps](./save_xps/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Xps-document. | +| [save_tex](./save_tex/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai TeX-document. | +| [save_epub](./save_epub/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Epub-document. | +| [save_booklet](./save_booklet/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai booklet PDF-document. | +| [save_n_up](./save_n_up/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai N-Up PDF-document. | +| [save_markdown](./save_markdown/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Markdown-document. | +| [save_tiff](./save_tiff/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai Tiff-document. | +| [save_docx_enhanced](./save_docx_enhanced/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai DocX-document dengan Mode Pengakuan Tingkat Lanjut (tabel dan paragraf dapat diedit sepenuhnya). | +| [save_svg_zip](./save_svg_zip/) | Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai SVG-archive. | +| [export_fdf](./export_fdf/) | Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke FDF-document. | +| [export_xfdf](./export_xfdf/) | Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke XFDF-document. | +| [export_xml](./export_xml/) | Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke XML-document. | +| [page_to_jpg](./page_to_jpg/) | Konversi dan simpan halaman yang ditentukan sebagai Jpg-image. | +| [page_to_png](./page_to_png/) | Konversi dan simpan halaman yang ditentukan sebagai Png-image. | +| [page_to_bmp](./page_to_bmp/) | Konversi dan simpan halaman yang ditentukan sebagai Bmp-image. | +| [page_to_tiff](./page_to_tiff/) | Konversi dan simpan halaman yang ditentukan sebagai Tiff-image. | +| [page_to_svg](./page_to_svg/) | Konversi dan simpan halaman yang ditentukan sebagai Svg-image. | +| [page_to_pdf](./page_to_pdf/) | Konversi dan simpan halaman yang ditentukan sebagai PDF-document. | +| [page_to_dicom](./page_to_dicom/) | Konversi dan simpan halaman yang ditentukan sebagai DICOM-image. | + + +## Detailed Description + +Fungsi untuk mengonversi dari file PDF. + diff --git a/indonesian/rust-cpp/convert/export_fdf/_index.md b/indonesian/rust-cpp/convert/export_fdf/_index.md new file mode 100644 index 0000000000..5e470d8992 --- /dev/null +++ b/indonesian/rust-cpp/convert/export_fdf/_index.md @@ -0,0 +1,37 @@ +--- +title: "export_fdf" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengekspor dari dokumen PDF yang sebelumnya dibuka dengan AcroForm ke dokumen FDF dengan nama file." +type: docs +url: /id/rust-cpp/convert/export_fdf/ +--- + +_Mengekspor dari dokumen PDF yang sebelumnya dibuka dengan AcroForm ke dokumen FDF dengan nama file._ + +```rust +pub fn export_fdf(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Ekspor dari dokumen PDF yang sebelumnya dibuka dengan AcroForm ke dokumen FDF + pdf.export_fdf("sample.fdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/export_xfdf/_index.md b/indonesian/rust-cpp/convert/export_xfdf/_index.md new file mode 100644 index 0000000000..c8d0509b50 --- /dev/null +++ b/indonesian/rust-cpp/convert/export_xfdf/_index.md @@ -0,0 +1,37 @@ +--- +title: "export_xfdf" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke XFDF-document dengan nama file." +type: docs +url: /id/rust-cpp/convert/export_xfdf/ +--- + +_Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke XFDF-document dengan nama file._ + +```rust +pub fn export_xfdf(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke XFDF-document + pdf.export_xfdf("sample.xfdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/export_xml/_index.md b/indonesian/rust-cpp/convert/export_xml/_index.md new file mode 100644 index 0000000000..858560a240 --- /dev/null +++ b/indonesian/rust-cpp/convert/export_xml/_index.md @@ -0,0 +1,37 @@ +--- +title: "export_xml" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke XML-document dengan nama file." +type: docs +url: /id/rust-cpp/convert/export_xml/ +--- + +_Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke XML-document dengan nama file._ + +```rust +pub fn export_xml(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Ekspor dari PDF-document yang sebelumnya dibuka dengan AcroForm ke XML-document + pdf.export_xml("sample.xml")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/page_to_bmp/_index.md b/indonesian/rust-cpp/convert/page_to_bmp/_index.md new file mode 100644 index 0000000000..bbd897ea0e --- /dev/null +++ b/indonesian/rust-cpp/convert/page_to_bmp/_index.md @@ -0,0 +1,39 @@ +--- +title: "page_to_bmp" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan halaman yang ditentukan sebagai BMP-image." +type: docs +url: /id/rust-cpp/convert/page_to_bmp/ +--- + +_Mengonversi dan menyimpan halaman yang ditentukan sebagai BMP-image._ + +```rust +pub fn page_to_bmp(&self, num: i32, resolution_dpi: i32, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **resolution_dpi** - the resolution in DPI + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan halaman yang ditentukan sebagai Bmp-image + pdf.page_to_bmp(1, 100, "sample_page1.bmp")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/page_to_dicom/_index.md b/indonesian/rust-cpp/convert/page_to_dicom/_index.md new file mode 100644 index 0000000000..ffe8d493a5 --- /dev/null +++ b/indonesian/rust-cpp/convert/page_to_dicom/_index.md @@ -0,0 +1,39 @@ +--- +title: "page_to_dicom" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan halaman yang ditentukan sebagai DICOM-image." +type: docs +url: /id/rust-cpp/convert/page_to_dicom/ +--- + +_Mengonversi dan menyimpan halaman yang ditentukan sebagai DICOM-image._ + +```rust +pub fn page_to_dicom(&self, num: i32, resolution_dpi: i32, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **resolution_dpi** - the resolution in DPI + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Mengonversi dan menyimpan halaman yang ditentukan sebagai DICOM-image + pdf.page_to_dicom(1, 100, "sample_page1.dcm")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/page_to_jpg/_index.md b/indonesian/rust-cpp/convert/page_to_jpg/_index.md new file mode 100644 index 0000000000..e7b213b09d --- /dev/null +++ b/indonesian/rust-cpp/convert/page_to_jpg/_index.md @@ -0,0 +1,39 @@ +--- +title: "page_to_jpg" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan halaman yang ditentukan sebagai gambar JPG-image." +type: docs +url: /id/rust-cpp/convert/page_to_jpg/ +--- + +_Mengonversi dan menyimpan halaman yang ditentukan sebagai gambar JPG-image._ + +```rust +pub fn page_to_jpg(&self, num: i32, resolution_dpi: i32, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **resolution_dpi** - the resolution in DPI + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan halaman yang ditentukan sebagai Jpg-image + pdf.page_to_jpg(1, 100, "sample_page1.jpg")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/page_to_pdf/_index.md b/indonesian/rust-cpp/convert/page_to_pdf/_index.md new file mode 100644 index 0000000000..e2e388d650 --- /dev/null +++ b/indonesian/rust-cpp/convert/page_to_pdf/_index.md @@ -0,0 +1,38 @@ +--- +title: "page_to_pdf" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan halaman yang ditentukan sebagai PDF-document." +type: docs +url: /id/rust-cpp/convert/page_to_pdf/ +--- + +_Mengonversi dan menyimpan halaman yang ditentukan sebagai PDF-document._ + +```rust +pub fn page_to_pdf(&self, num: i32, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Mengonversi dan menyimpan halaman yang ditentukan sebagai PDF-document + pdf.page_to_pdf(1, "sample_page1.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/page_to_png/_index.md b/indonesian/rust-cpp/convert/page_to_png/_index.md new file mode 100644 index 0000000000..8f5a303cb3 --- /dev/null +++ b/indonesian/rust-cpp/convert/page_to_png/_index.md @@ -0,0 +1,39 @@ +--- +title: "page_to_png" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan halaman yang ditentukan sebagai gambar PNG." +type: docs +url: /id/rust-cpp/convert/page_to_png/ +--- + +_Mengonversi dan menyimpan halaman yang ditentukan sebagai gambar PNG._ + +```rust +pub fn page_to_png(&self, num: i32, resolution_dpi: i32, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **resolution_dpi** - the resolution in DPI + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan halaman yang ditentukan sebagai gambar Png + pdf.page_to_png(1, 100, "sample_page1.png")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/page_to_svg/_index.md b/indonesian/rust-cpp/convert/page_to_svg/_index.md new file mode 100644 index 0000000000..cf66c547e9 --- /dev/null +++ b/indonesian/rust-cpp/convert/page_to_svg/_index.md @@ -0,0 +1,38 @@ +--- +title: "page_to_svg" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan halaman yang ditentukan sebagai SVG-image." +type: docs +url: /id/rust-cpp/convert/page_to_svg/ +--- + +_Mengonversi dan menyimpan halaman yang ditentukan sebagai SVG-image._ + +```rust +pub fn page_to_svg(&self, num: i32, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan halaman yang ditentukan sebagai Svg-image + pdf.page_to_svg(1, "sample_page1.svg")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/page_to_tiff/_index.md b/indonesian/rust-cpp/convert/page_to_tiff/_index.md new file mode 100644 index 0000000000..b1c25667e9 --- /dev/null +++ b/indonesian/rust-cpp/convert/page_to_tiff/_index.md @@ -0,0 +1,39 @@ +--- +title: "page_to_tiff" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan halaman yang ditentukan sebagai gambar TIFF." +type: docs +url: /id/rust-cpp/convert/page_to_tiff/ +--- + +_Mengonversi dan menyimpan halaman yang ditentukan sebagai gambar TIFF._ + +```rust +pub fn page_to_tiff(&self, num: i32, resolution_dpi: i32, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **resolution_dpi** - the resolution in DPI + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan halaman yang ditentukan sebagai gambar Tiff + pdf.page_to_tiff(1, 100, "sample_page1.tiff")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_booklet/_index.md b/indonesian/rust-cpp/convert/save_booklet/_index.md new file mode 100644 index 0000000000..50a0587baa --- /dev/null +++ b/indonesian/rust-cpp/convert/save_booklet/_index.md @@ -0,0 +1,36 @@ +--- +title: "save_booklet" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai PDF-document booklet." +type: docs +url: /id/rust-cpp/convert/save_booklet/ +--- + +_Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai PDF-document booklet._ + +```rust +pub fn save_booklet(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai PDF-document booklet + pdf.save_booklet("sample_booklet.pdf")?; + + Ok(()) +} +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_doc/_index.md b/indonesian/rust-cpp/convert/save_doc/_index.md new file mode 100644 index 0000000000..a5b69c793a --- /dev/null +++ b/indonesian/rust-cpp/convert/save_doc/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_doc" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai dokumen DOC-document." +type: docs +url: /id/rust-cpp/convert/save_doc/ +--- + +_Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai dokumen DOC-document._ + +```rust +pub fn save_doc(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai dokumen Doc-document + pdf.save_doc("sample.doc")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_docx/_index.md b/indonesian/rust-cpp/convert/save_docx/_index.md new file mode 100644 index 0000000000..10e6ba34df --- /dev/null +++ b/indonesian/rust-cpp/convert/save_docx/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_docx" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai dokumen DOCX-document." +type: docs +url: /id/rust-cpp/convert/save_docx/ +--- + +_Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai dokumen DOCX-document._ + +```rust +pub fn save_docx(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai dokumen DocX-document + pdf.save_docx("sample.docx")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_docx_enhanced/_index.md b/indonesian/rust-cpp/convert/save_docx_enhanced/_index.md new file mode 100644 index 0000000000..5c92359d22 --- /dev/null +++ b/indonesian/rust-cpp/convert/save_docx_enhanced/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_docx_enhanced" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan dokumen PDF yang sebelumnya dibuka sebagai DOCX-document dengan Enhanced Recognition Mode (tabel dan paragraf yang dapat diedit sepenuhnya)." +type: docs +url: /id/rust-cpp/convert/save_docx_enhanced/ +--- + +_Mengonversi dan menyimpan dokumen PDF yang sebelumnya dibuka sebagai DOCX-document dengan Enhanced Recognition Mode (tabel dan paragraf yang dapat diedit sepenuhnya)._ + +```rust +pub fn save_docx_enhanced(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan dokumen PDF yang sebelumnya dibuka sebagai DocX-document dengan Enhanced Recognition Mode (tabel dan paragraf yang dapat diedit sepenuhnya) + pdf.save_docx_enhanced("sample_enhanced.docx")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_epub/_index.md b/indonesian/rust-cpp/convert/save_epub/_index.md new file mode 100644 index 0000000000..1236b8f86f --- /dev/null +++ b/indonesian/rust-cpp/convert/save_epub/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_epub" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai EPUB-document." +type: docs +url: /id/rust-cpp/convert/save_epub/ +--- + +_Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai dokumen EPUB-document._ + +```rust +pub fn save_epub(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai dokumen Epub-document + pdf.save_epub("sample.epub")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_markdown/_index.md b/indonesian/rust-cpp/convert/save_markdown/_index.md new file mode 100644 index 0000000000..2a7a3f3d4b --- /dev/null +++ b/indonesian/rust-cpp/convert/save_markdown/_index.md @@ -0,0 +1,36 @@ +--- +title: "save_markdown" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan dokumen PDF yang sebelumnya dibuka sebagai dokumen Markdown." +type: docs +url: /id/rust-cpp/convert/save_markdown/ +--- + +_Mengonversi dan menyimpan dokumen PDF yang sebelumnya dibuka sebagai dokumen Markdown._ + +```rust +pub fn save_markdown(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan dokumen PDF yang sebelumnya dibuka sebagai dokumen Markdown + pdf.save_markdown("sample.md")?; + + Ok(()) +} +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_n_up/_index.md b/indonesian/rust-cpp/convert/save_n_up/_index.md new file mode 100644 index 0000000000..8738976aa9 --- /dev/null +++ b/indonesian/rust-cpp/convert/save_n_up/_index.md @@ -0,0 +1,38 @@ +--- +title: "save_n_up" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan dokumen PDF yang sebelumnya dibuka sebagai N-Up PDF-document." +type: docs +url: /id/rust-cpp/convert/save_n_up/ +--- + +_Mengonversi dan menyimpan dokumen PDF yang sebelumnya dibuka sebagai N-Up PDF-document._ + +```rust +pub fn save_n_up(&self, filename: &str, columns: i32, rows: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + * **columns** - the number of columns + * **rows** - the number of rows + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan dokumen PDF yang sebelumnya dibuka sebagai N-Up PDF-document + pdf.save_n_up("sample_n_up.pdf", 2, 2)?; + + Ok(()) +} +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_pptx/_index.md b/indonesian/rust-cpp/convert/save_pptx/_index.md new file mode 100644 index 0000000000..afe6d02c22 --- /dev/null +++ b/indonesian/rust-cpp/convert/save_pptx/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_pptx" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai dokumen PPTX-document." +type: docs +url: /id/rust-cpp/convert/save_pptx/ +--- + +_Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai dokumen PPTX-document._ + +```rust +pub fn save_pptx(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai dokumen PptX-document + pdf.save_pptx("sample.pptx")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_svg_zip/_index.md b/indonesian/rust-cpp/convert/save_svg_zip/_index.md new file mode 100644 index 0000000000..1897695113 --- /dev/null +++ b/indonesian/rust-cpp/convert/save_svg_zip/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_svg_zip" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai SVG-archive." +type: docs +url: /id/rust-cpp/convert/save_svg_zip/ +--- + +_Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai SVG-archive._ + +```rust +pub fn save_svg_zip(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai SVG-archive + pdf.save_svg_zip("sample_svg.zip")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_tex/_index.md b/indonesian/rust-cpp/convert/save_tex/_index.md new file mode 100644 index 0000000000..d41d583196 --- /dev/null +++ b/indonesian/rust-cpp/convert/save_tex/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_tex" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan dokumen PDF yang sebelumnya dibuka sebagai TeX-document." +type: docs +url: /id/rust-cpp/convert/save_tex/ +--- + +_Mengonversi dan menyimpan dokumen PDF yang sebelumnya dibuka sebagai TeX-document._ + +```rust +pub fn save_tex(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan dokumen PDF yang sebelumnya dibuka sebagai TeX-document + pdf.save_tex("sample.tex")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_tiff/_index.md b/indonesian/rust-cpp/convert/save_tiff/_index.md new file mode 100644 index 0000000000..a60b0cff4d --- /dev/null +++ b/indonesian/rust-cpp/convert/save_tiff/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_tiff" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai dokumen Tiff-document." +type: docs +url: /id/rust-cpp/convert/save_tiff/ +--- + +_Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai dokumen Tiff-document._ + +```rust +pub fn save_tiff(&self, resolution_dpi: i32, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **resolution_dpi** - the resolution in DPI + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai dokumen Tiff-document + pdf.save_tiff(100, "sample.tiff")?; + + Ok(()) +} +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_txt/_index.md b/indonesian/rust-cpp/convert/save_txt/_index.md new file mode 100644 index 0000000000..fd404bf1dc --- /dev/null +++ b/indonesian/rust-cpp/convert/save_txt/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_txt" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai TXT-document." +type: docs +url: /id/rust-cpp/convert/save_txt/ +--- + +_Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai TXT-document._ + +```rust +pub fn save_txt(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai Txt-document + pdf.save_txt("sample.txt")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_xlsx/_index.md b/indonesian/rust-cpp/convert/save_xlsx/_index.md new file mode 100644 index 0000000000..d074ca9c16 --- /dev/null +++ b/indonesian/rust-cpp/convert/save_xlsx/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_xlsx" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai XLSX-document." +type: docs +url: /id/rust-cpp/convert/save_xlsx/ +--- + +_Mengonversi dan menyimpan PDF-document yang sebelumnya dibuka sebagai XLSX-document._ + +```rust +pub fn save_xlsx(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan PDF-document yang sebelumnya dibuka sebagai XlsX-document + pdf.save_xlsx("sample.xlsx")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/convert/save_xps/_index.md b/indonesian/rust-cpp/convert/save_xps/_index.md new file mode 100644 index 0000000000..d4b0491dcf --- /dev/null +++ b/indonesian/rust-cpp/convert/save_xps/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_xps" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dan menyimpan dokumen PDF yang sebelumnya dibuka sebagai XPS-document." +type: docs +url: /id/rust-cpp/convert/save_xps/ +--- + +_Mengonversi dan menyimpan dokumen PDF yang sebelumnya dibuka sebagai XPS-document._ + +```rust +pub fn save_xps(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dan simpan dokumen PDF yang sebelumnya dibuka sebagai Xps-document + pdf.save_xps("sample.xps")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/_index.md b/indonesian/rust-cpp/core/_index.md new file mode 100644 index 0000000000..0ea31cdbf0 --- /dev/null +++ b/indonesian/rust-cpp/core/_index.md @@ -0,0 +1,45 @@ +--- +title: "Fungsi PDF inti" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Fungsi inti untuk bekerja dengan file PDF." +type: docs +url: /id/rust-cpp/core/ +--- + +## Core PDF functions + +| Nama | Deskripsi | +| -------------- | -------------- | +| [new](./new/) | Buat dokumen PDF baru. | +| [open](./open/) | Buka dokumen PDF dengan nama file. | +| [save](./save/) | Simpan dokumen PDF yang sebelumnya dibuka. | +| [save_as](./save_as/) | Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru. | +| [set_license](./set_license/) | Atur lisensi dengan nama file. | +| [extract_text](./extract_text/) | Kembalikan isi dokumen PDF sebagai teks biasa. | +| [word_count](./word_count/) | Kembalikan jumlah kata dalam dokumen PDF. | +| [character_count](./character_count/) | Kembalikan jumlah karakter dalam dokumen PDF. | +| [append](./append/) | Tambahkan halaman dari dokumen PDF lain. | +| [append_pages](./append_pages/) | Tambahkan halaman terpilih dari dokumen PDF lain. | +| [merge_documents](./merge_documents/) | Buat dokumen PDF baru dengan menggabungkan dokumen PDF yang disediakan. | +| [split_document](./split_document/) | Buat beberapa dokumen PDF baru dengan mengekstrak halaman dari dokumen PDF sumber. | +| [split](./split/) | Buat beberapa dokumen PDF baru dengan mengekstrak halaman dari dokumen PDF saat ini. | +| [split_at_page](./split_at_page/) | Pisahkan dokumen PDF menjadi dua dokumen PDF baru. | +| [split_at](./split_at/) | Pisahkan dokumen PDF saat ini menjadi dua dokumen PDF baru. | +| [bytes](./bytes/) | Kembalikan isi dokumen PDF sebagai vektor byte. | +| [get_meta_info](./get_meta_info/) | Dapatkan nilai informasi meta dokumen PDF. | +| [set_meta_info](./set_meta_info/) | Atur nilai informasi meta dari dokumen PDF. | +| [clear_meta_info](./clear_meta_info/) | Kosongkan semua nilai informasi meta dari dokumen PDF. | +| [is_linearized](./is_linearized/) | Dapatkan nilai yang menunjukkan apakah dokumen terlinier. | +| [page_add](./page_add/) | Tambahkan halaman baru dalam dokumen PDF. | +| [page_insert](./page_insert/) | Sisipkan halaman baru pada posisi yang ditentukan dalam dokumen PDF. | +| [page_delete](./page_delete/) | Hapus halaman yang ditentukan dalam dokumen PDF. | +| [page_count](./page_count/) | Kembalikan jumlah halaman dalam dokumen PDF. | +| [page_word_count](./page_word_count/) | Kembalikan jumlah kata pada halaman yang ditentukan dalam dokumen PDF. | +| [page_character_count](./page_character_count/) | Kembalikan jumlah karakter pada halaman yang ditentukan dalam dokumen PDF. | +| [page_is_blank](./page_is_blank/) | Kembalikan apakah halaman kosong dalam dokumen PDF. | + + +## Detailed Description + +Fungsi inti untuk bekerja dengan file PDF. + diff --git a/indonesian/rust-cpp/core/append/_index.md b/indonesian/rust-cpp/core/append/_index.md new file mode 100644 index 0000000000..509f415869 --- /dev/null +++ b/indonesian/rust-cpp/core/append/_index.md @@ -0,0 +1,43 @@ +--- +title: "append" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan halaman dari PDF-document lain." +type: docs +url: /id/rust-cpp/core/append/ +--- + +_Menambahkan halaman dari PDF-document lain._ + +```rust +pub fn append(&self, other: &Document) -> Result<(), PdfError> +``` + +**Arguments** + * **other** - a reference to another PDF-document to append pages from + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document utama + let pdf = Document::open("sample.pdf")?; + + // Buka dokumen PDF lain untuk ditambahkan + let another_pdf = Document::open("sample1page.pdf")?; + + // Tambahkan halaman dari dokumen PDF lain + pdf.append(&another_pdf)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_append.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/append_pages/_index.md b/indonesian/rust-cpp/core/append_pages/_index.md new file mode 100644 index 0000000000..41405136dc --- /dev/null +++ b/indonesian/rust-cpp/core/append_pages/_index.md @@ -0,0 +1,44 @@ +--- +title: "append_pages" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan halaman terpilih dari PDF-document lain." +type: docs +url: /id/rust-cpp/core/append_pages/ +--- + +_Menambahkan halaman terpilih dari PDF-document lain._ + +```rust +pub fn append_pages(&self, other: &Document, page_range: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **other** - a reference to another PDF-document to append pages from + * **page_range** - a string defining the page ranges to append (e.g. "-2,4,6-8,10-") + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document utama + let pdf = Document::open("sample1page.pdf")?; + + // Buka dokumen PDF lain untuk ditambahkan + let another_pdf = Document::open("sample.pdf")?; + + // Tambahkan halaman tertentu (1 dan 3) dari PDF-document lain + pdf.append_pages(&another_pdf, "1,3")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_append_pages.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/bytes/_index.md b/indonesian/rust-cpp/core/bytes/_index.md new file mode 100644 index 0000000000..5e4c6f4180 --- /dev/null +++ b/indonesian/rust-cpp/core/bytes/_index.md @@ -0,0 +1,40 @@ +--- +title: "byte" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengembalikan isi PDF-dokumen sebagai vektor byte." +type: docs +url: /id/rust-cpp/core/bytes/ +--- + +_Mengembalikan isi PDF-dokumen sebagai vektor byte._ + +```rust +pub fn bytes(&self) -> Result, PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(Vec\)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buat dokumen PDF baru + let pdf = Document::new()?; + + // Kembalikan isi PDF-dokumen sebagai vektor byte + let data = pdf.bytes()?; + + // Cetak panjang vektor byte + println!("Length: {}", data.len()); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/character_count/_index.md b/indonesian/rust-cpp/core/character_count/_index.md new file mode 100644 index 0000000000..c13b021ee5 --- /dev/null +++ b/indonesian/rust-cpp/core/character_count/_index.md @@ -0,0 +1,40 @@ +--- +title: "character_count" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengembalikan jumlah karakter dalam PDF-dokumen." +type: docs +url: /id/rust-cpp/core/character_count/ +--- + +_Mengembalikan jumlah karakter dalam PDF-dokumen._ + +```rust +pub fn character_count(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(i32)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Kembalikan jumlah karakter dalam PDF-dokumen + let count = pdf.character_count()?; + + // Cetak jumlah karakter + println!("Character count: {}", count); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/clear_meta_info/_index.md b/indonesian/rust-cpp/core/clear_meta_info/_index.md new file mode 100644 index 0000000000..aacb09e5a3 --- /dev/null +++ b/indonesian/rust-cpp/core/clear_meta_info/_index.md @@ -0,0 +1,40 @@ +--- +title: "clear_meta_info" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus semua nilai meta informasi dari PDF-document." +type: docs +url: /id/rust-cpp/core/clear_meta_info/ +--- + +_Menghapus semua nilai meta informasi dari PDF-document._ + +```rust +pub fn clear_meta_info(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus semua nilai meta informasi dari PDF-document + pdf.clear_meta_info()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_clear_meta_info.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/extract_text/_index.md b/indonesian/rust-cpp/core/extract_text/_index.md new file mode 100644 index 0000000000..7b47c67e79 --- /dev/null +++ b/indonesian/rust-cpp/core/extract_text/_index.md @@ -0,0 +1,40 @@ +--- +title: "extract_text" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengembalikan isi dokumen PDF sebagai teks biasa." +type: docs +url: /id/rust-cpp/core/extract_text/ +--- + +_Mengembalikan isi dokumen PDF sebagai teks biasa._ + +```rust +pub fn extract_text(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(String)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Kembalikan isi dokumen PDF sebagai teks biasa + let txt = pdf.extract_text()?; + + // Cetak teks yang diekstrak + println!("Extracted text:\n{}", txt); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/get_meta_info/_index.md b/indonesian/rust-cpp/core/get_meta_info/_index.md new file mode 100644 index 0000000000..4f1b9215c4 --- /dev/null +++ b/indonesian/rust-cpp/core/get_meta_info/_index.md @@ -0,0 +1,40 @@ +--- +title: "get_meta_info" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengambil nilai informasi meta dari dokumen PDF." +type: docs +url: /id/rust-cpp/core/get_meta_info/ +--- + +_Mengambil nilai informasi meta dari dokumen PDF._ + +```rust +pub fn get_meta_info(&self, key: &str) -> Result +``` + +**Arguments** + * **key** - the key whose value to get + +**Returns** + * **Ok(String)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Dapatkan nilai informasi meta dari dokumen PDF + let author = pdf.get_meta_info("Author")?; + + // Cetak hasil + println!("Author: {}", author); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/is_linearized/_index.md b/indonesian/rust-cpp/core/is_linearized/_index.md new file mode 100644 index 0000000000..0a90af24c4 --- /dev/null +++ b/indonesian/rust-cpp/core/is_linearized/_index.md @@ -0,0 +1,41 @@ +--- +title: "is_linearized" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengambil nilai yang menunjukkan apakah dokumen terlinear." +type: docs +url: /id/rust-cpp/core/is_linearized/ +--- + +_Mengambil nilai yang menunjukkan apakah dokumen terlinear._ + +```rust +pub fn is_linearized(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(bool)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Dapatkan nilai yang menunjukkan apakah dokumen terlinear + if pdf.is_linearized()? { + println!("The PDF-document is linearized."); + } else { + println!("The PDF-document is non-linearized."); + } + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/merge_documents/_index.md b/indonesian/rust-cpp/core/merge_documents/_index.md new file mode 100644 index 0000000000..706d2be056 --- /dev/null +++ b/indonesian/rust-cpp/core/merge_documents/_index.md @@ -0,0 +1,43 @@ +--- +title: "merge_documents" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Membuat PDF-document baru dengan menggabungkan PDF-document yang disediakan." +type: docs +url: /id/rust-cpp/core/merge_documents/ +--- + +_Membuat PDF-document baru dengan menggabungkan PDF-document yang disediakan._ + +```rust +pub fn merge_documents(documents: &[&Document]) -> Result +``` + +**Arguments** + * **documents** - a slice of references to PDF-documents to merge + +**Returns** + * **Ok((Self))** - with a new PDF-document instance, if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buat dokumen PDF baru + let pdf1 = Document::new()?; + + // Buka PDF-document bernama "sample.pdf" + let pdf2 = Document::open("sample.pdf")?; + + // Buat PDF-document baru dengan menggabungkan PDF-document yang disediakan + let pdf_merged = Document::merge_documents(&[&pdf1, &pdf2])?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf_merged.save_as("sample_merge_documents.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/new/_index.md b/indonesian/rust-cpp/core/new/_index.md new file mode 100644 index 0000000000..817c82783a --- /dev/null +++ b/indonesian/rust-cpp/core/new/_index.md @@ -0,0 +1,37 @@ +--- +title: "baru" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Membuat PDF-dokumen baru." +type: docs +url: /id/rust-cpp/core/new/ +--- + +_Membuat PDF-dokumen baru._ + +```rust +pub fn new() -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(Self)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buat dokumen PDF baru + let pdf = Document::new()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_new.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/open/_index.md b/indonesian/rust-cpp/core/open/_index.md new file mode 100644 index 0000000000..2130503570 --- /dev/null +++ b/indonesian/rust-cpp/core/open/_index.md @@ -0,0 +1,37 @@ +--- +title: "open" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Membuka dokumen PDF dengan nama file." +type: docs +url: /id/rust-cpp/core/open/ +--- + +_Membuka dokumen PDF dengan nama file._ + +```rust +pub fn open(filename: &str) -> Result +``` + +**Arguments** + * **filename** - path to the PDF-document to open + +**Returns** + * **Ok(Self)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document bernama "sample.pdf" + let pdf = Document::open("sample.pdf")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_open.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/page_add/_index.md b/indonesian/rust-cpp/core/page_add/_index.md new file mode 100644 index 0000000000..87aae62e92 --- /dev/null +++ b/indonesian/rust-cpp/core/page_add/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_add" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan halaman baru ke PDF-dokumen." +type: docs +url: /id/rust-cpp/core/page_add/ +--- + +_Menambahkan halaman baru ke PDF-dokumen._ + +```rust +pub fn page_add(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Tambahkan halaman baru dalam PDF-dokumen + pdf.page_add()?; + + // Simpan PDF-document yang sebelumnya dibuka + pdf.save()?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/page_character_count/_index.md b/indonesian/rust-cpp/core/page_character_count/_index.md new file mode 100644 index 0000000000..efce57515e --- /dev/null +++ b/indonesian/rust-cpp/core/page_character_count/_index.md @@ -0,0 +1,44 @@ +--- +title: "page_character_count" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengembalikan jumlah karakter pada halaman yang ditentukan dalam PDF-dokumen." +type: docs +url: /id/rust-cpp/core/page_character_count/ +--- + +_Mengembalikan jumlah karakter pada halaman yang ditentukan dalam PDF-dokumen._ + +```rust +pub fn page_character_count(&self) -> Result +``` + +**Arguments** + * **num** - the page number (1-based) + + +**Returns** + * **Ok(i32)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Tentukan nomor halaman (indeks berbasis 1) + let page_number = 1; + + // Kembalikan jumlah karakter pada halaman yang ditentukan + let count = pdf.page_character_count(page_number)?; + + // Cetak jumlah karakter + println!("Character count on page {}: {}", page_number, count); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/page_count/_index.md b/indonesian/rust-cpp/core/page_count/_index.md new file mode 100644 index 0000000000..4081bb68df --- /dev/null +++ b/indonesian/rust-cpp/core/page_count/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_count" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengembalikan jumlah halaman dalam PDF-document." +type: docs +url: /id/rust-cpp/core/page_count/ +--- + +_Mengembalikan jumlah halaman dalam PDF-document._ + +```rust +pub fn page_count(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(i32)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Kembalikan jumlah halaman dalam PDF-document + let count = pdf.page_count()?; + + // Cetak jumlah halaman + println!("Count: {}", count); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/page_delete/_index.md b/indonesian/rust-cpp/core/page_delete/_index.md new file mode 100644 index 0000000000..dfd637b96b --- /dev/null +++ b/indonesian/rust-cpp/core/page_delete/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_delete" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus halaman yang ditentukan dari dokumen PDF." +type: docs +url: /id/rust-cpp/core/page_delete/ +--- + +_Menghapus halaman yang ditentukan dari dokumen PDF._ + +```rust +pub fn page_delete(&self, num: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Hapus halaman yang ditentukan dalam dokumen PDF + pdf.page_delete(1)?; + + // Simpan PDF-document yang sebelumnya dibuka + pdf.save()?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/page_insert/_index.md b/indonesian/rust-cpp/core/page_insert/_index.md new file mode 100644 index 0000000000..56f0a39198 --- /dev/null +++ b/indonesian/rust-cpp/core/page_insert/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_insert" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menyisipkan halaman baru pada posisi yang ditentukan dalam PDF-document." +type: docs +url: /id/rust-cpp/core/page_insert/ +--- + +_Menyisipkan halaman baru pada posisi yang ditentukan dalam PDF-document._ + +```rust +pub fn page_insert(&self, num: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Sisipkan halaman baru pada posisi yang ditentukan dalam PDF-document + pdf.page_insert(1)?; + + // Simpan PDF-document yang sebelumnya dibuka + pdf.save()?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/page_is_blank/_index.md b/indonesian/rust-cpp/core/page_is_blank/_index.md new file mode 100644 index 0000000000..572d22378a --- /dev/null +++ b/indonesian/rust-cpp/core/page_is_blank/_index.md @@ -0,0 +1,44 @@ +--- +title: "page_is_blank" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Kembalikan apakah halaman kosong dalam dokumen PDF." +type: docs +url: /id/rust-cpp/core/page_is_blank/ +--- + +_Halaman kembali kosong dalam dokumen PDF._ + +```rust +pub fn page_is_blank(&self, num: i32) -> Result +``` + +**Arguments** + * **num** - the page number (1-based) + + +**Returns** + * **Ok(bool)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Tentukan nomor halaman (indeks berbasis 1) + let page_number = 1; + + // Halaman kembali kosong dalam dokumen PDF + let is_blank = pdf.page_is_blank(page_number)?; + + // Cetak jika halaman yang ditentukan kosong + println!("Is page {} blank? {}", page_number, is_blank); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/page_word_count/_index.md b/indonesian/rust-cpp/core/page_word_count/_index.md new file mode 100644 index 0000000000..164fd7e358 --- /dev/null +++ b/indonesian/rust-cpp/core/page_word_count/_index.md @@ -0,0 +1,44 @@ +--- +title: "page_word_count" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengembalikan jumlah kata pada halaman yang ditentukan dalam dokumen PDF." +type: docs +url: /id/rust-cpp/core/page_word_count/ +--- + +_Mengembalikan jumlah kata pada halaman yang ditentukan dalam dokumen PDF._ + +```rust +pub fn page_word_count(&self) -> Result +``` + +**Arguments** + * **num** - the page number (1-based) + + +**Returns** + * **Ok(i32)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Tentukan nomor halaman (indeks berbasis 1) + let page_number = 1; + + // Kembalikan jumlah kata pada halaman yang ditentukan + let count = pdf.page_word_count(page_number)?; + + // Cetak jumlah kata + println!("Word count on page {}: {}", page_number, count); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/save/_index.md b/indonesian/rust-cpp/core/save/_index.md new file mode 100644 index 0000000000..3cdd00c545 --- /dev/null +++ b/indonesian/rust-cpp/core/save/_index.md @@ -0,0 +1,37 @@ +--- +title: "save" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menyimpan dokumen PDF yang sebelumnya dibuka." +type: docs +url: /id/rust-cpp/core/save/ +--- + +_Menyimpan dokumen PDF yang sebelumnya dibuka._ + +```rust +pub fn save(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document bernama "sample.pdf" + let pdf = Document::open("sample.pdf")?; + + // Simpan PDF-document yang sebelumnya dibuka + pdf.save()?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/save_as/_index.md b/indonesian/rust-cpp/core/save_as/_index.md new file mode 100644 index 0000000000..49f2ab15d4 --- /dev/null +++ b/indonesian/rust-cpp/core/save_as/_index.md @@ -0,0 +1,37 @@ +--- +title: "save_as" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menyimpan dokumen PDF yang sebelumnya dibuka dengan nama file baru." +type: docs +url: /id/rust-cpp/core/save_as/ +--- + +_Menyimpan dokumen PDF yang sebelumnya dibuka dengan nama file baru._ + +```rust +pub fn save_as(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the output file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buat dokumen PDF baru + let pdf = Document::new()?; + + // Simpan dokumen PDF dengan nama file baru + pdf.save_as("sample_save_as.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/set_license/_index.md b/indonesian/rust-cpp/core/set_license/_index.md new file mode 100644 index 0000000000..8195d35ddf --- /dev/null +++ b/indonesian/rust-cpp/core/set_license/_index.md @@ -0,0 +1,40 @@ +--- +title: "set_license" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengatur lisensi menggunakan nama file." +type: docs +url: /id/rust-cpp/core/set_license/ +--- + +_Mengatur lisensi menggunakan nama file._ + +```rust +pub fn set_license(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the license-file + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Atur lisensi dengan nama file + pdf.set_license("Aspose.PDF.RustViaCPP.lic")?; + + // Sekarang Anda dapat bekerja dengan dokumen PDF berlisensi + // ... + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/set_meta_info/_index.md b/indonesian/rust-cpp/core/set_meta_info/_index.md new file mode 100644 index 0000000000..ec9b9494da --- /dev/null +++ b/indonesian/rust-cpp/core/set_meta_info/_index.md @@ -0,0 +1,41 @@ +--- +title: "set_meta_info" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengatur nilai meta informasi dari PDF-document." +type: docs +url: /id/rust-cpp/core/set_meta_info/ +--- + +_Mengatur nilai meta informasi dari PDF-document._ + +```rust +pub fn set_meta_info(&self, key: &str, value: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **key** - the key whose value to set + * **value** - the value to be set + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Atur nilai meta informasi dari PDF-document + pdf.set_meta_info("Author", "Aspose")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_set_meta_info.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/split/_index.md b/indonesian/rust-cpp/core/split/_index.md new file mode 100644 index 0000000000..82159ce1aa --- /dev/null +++ b/indonesian/rust-cpp/core/split/_index.md @@ -0,0 +1,43 @@ +--- +title: "split" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Membuat beberapa PDF-document baru dengan mengekstrak halaman dari PDF-document saat ini." +type: docs +url: /id/rust-cpp/core/split/ +--- + +_Membuat beberapa PDF-document baru dengan mengekstrak halaman dari PDF-document saat ini._ + +```rust +pub fn split(&self, page_range: &str) -> Result, PdfError> +``` + +**Arguments** + * **page_range** - a string specifying page ranges, e.g. `"1-2;3;4-"` + +**Returns** + * **Ok(Vec\)** - containing the resulting split documents, if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document bernama "sample.pdf" + let pdf_split = Document::open("sample.pdf")?; + + // Buat beberapa PDF-document baru dengan mengekstrak halaman dari PDF-document saat ini + let pdf_parts = pdf_split.split("1-2;3-")?; + + // Simpan setiap bagian yang dibagi sebagai PDF-document terpisah + for (i, pdf_part) in pdf_parts.iter().enumerate() { + let pdf_filename = format!("sample_split_part{}.pdf", i + 1); + pdf_part.save_as(&pdf_filename)?; + } + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/split_at/_index.md b/indonesian/rust-cpp/core/split_at/_index.md new file mode 100644 index 0000000000..7685144cec --- /dev/null +++ b/indonesian/rust-cpp/core/split_at/_index.md @@ -0,0 +1,41 @@ +--- +title: "split_at" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Membagi dokumen PDF saat ini menjadi dua dokumen PDF baru." +type: docs +url: /id/rust-cpp/core/split_at/ +--- + +_Membagi dokumen PDF saat ini menjadi dua dokumen PDF baru._ + +```rust +pub fn split_at(&self, page: i32) -> Result<(Self, Self), PdfError> +``` + +**Arguments** + * **page** - a page number at which to split (1-based, exclusive for the second part) + +**Returns** + * **Ok((Self, Self))** - with the two split documents, if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document bernama "sample.pdf" + let pdf_split = Document::open("sample.pdf")?; + + // Bagi dokumen PDF saat ini menjadi dua dokumen PDF baru + let (left, right) = pdf_split.split_at(2)?; + + // Simpan setiap bagian yang dibagi sebagai PDF-document terpisah + left.save_as("sample_split_at_left.pdf")?; + right.save_as("sample_split_at_right.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/split_at_page/_index.md b/indonesian/rust-cpp/core/split_at_page/_index.md new file mode 100644 index 0000000000..c9535379b5 --- /dev/null +++ b/indonesian/rust-cpp/core/split_at_page/_index.md @@ -0,0 +1,42 @@ +--- +title: "split_at_page" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Membagi PDF-document menjadi dua PDF-document baru." +type: docs +url: /id/rust-cpp/core/split_at_page/ +--- + +_Membagi PDF-document menjadi dua PDF-document baru._ + +```rust +pub fn split_at_page(document: &Document, page: i32) -> Result<(Self, Self), PdfError> +``` + +**Arguments** + * **document** - a reference to the source PDF-document to split + * **page** - a page number at which to split (1-based, exclusive for the second part) + +**Returns** + * **Ok((Self, Self))** - with the two split documents, if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document bernama "sample.pdf" + let pdf_split = Document::open("sample.pdf")?; + + // Bagi PDF-document menjadi dua PDF-document baru + let (left, right) = Document::split_at_page(&pdf_split, 2)?; + + // Simpan setiap bagian yang dibagi sebagai PDF-document terpisah + left.save_as("sample_split_at_page_left.pdf")?; + right.save_as("sample_split_at_page_right.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/split_document/_index.md b/indonesian/rust-cpp/core/split_document/_index.md new file mode 100644 index 0000000000..5315681049 --- /dev/null +++ b/indonesian/rust-cpp/core/split_document/_index.md @@ -0,0 +1,44 @@ +--- +title: "split_document" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Membuat beberapa PDF-document baru dengan mengekstrak halaman dari PDF-document sumber." +type: docs +url: /id/rust-cpp/core/split_document/ +--- + +_Membuat beberapa PDF-document baru dengan mengekstrak halaman dari PDF-document sumber._ + +```rust +pub fn split_document(document: &Document, page_range: &str) -> Result, PdfError> +``` + +**Arguments** + * **document** - a reference to the source PDF-document to split + * **page_range** - a string specifying page ranges, e.g. `"1-2;3;4-"` + +**Returns** + * **Ok(Vec\)** - containing the resulting split documents, if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document bernama "sample.pdf" + let pdf_split = Document::open("sample.pdf")?; + + // Membuat beberapa PDF-document baru dengan mengekstrak halaman dari PDF-document sumber + let pdf_parts = Document::split_document(&pdf_split, "1;2-")?; + + // Simpan setiap bagian yang dibagi sebagai PDF-document terpisah + for (i, pdf_part) in pdf_parts.iter().enumerate() { + let pdf_filename = format!("sample_split_document_part{}.pdf", i + 1); + pdf_part.save_as(&pdf_filename)?; + } + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/core/word_count/_index.md b/indonesian/rust-cpp/core/word_count/_index.md new file mode 100644 index 0000000000..0785ecc2ef --- /dev/null +++ b/indonesian/rust-cpp/core/word_count/_index.md @@ -0,0 +1,40 @@ +--- +title: "word_count" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengembalikan jumlah kata dalam dokumen PDF." +type: docs +url: /id/rust-cpp/core/word_count/ +--- + +_Mengembalikan jumlah kata dalam dokumen PDF._ + +```rust +pub fn word_count(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(i32)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Kembalikan jumlah kata dalam dokumen PDF + let count = pdf.word_count()?; + + // Cetak jumlah kata + println!("Word count: {}", count); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/miscellaneous/_index.md b/indonesian/rust-cpp/miscellaneous/_index.md new file mode 100644 index 0000000000..e2ebcc99ed --- /dev/null +++ b/indonesian/rust-cpp/miscellaneous/_index.md @@ -0,0 +1,19 @@ +--- +title: "Fungsi lain-lain" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Fungsi lain-lain untuk bekerja." +type: docs +url: /id/rust-cpp/miscellaneous/ +--- + +## Miscellaneous + +| Fungsi | Deskripsi | +| -------- | ----------- | +| [about](./about/) | Kembalikan informasi metadata tentang Aspose.PDF untuk Rust melalui C++. | + + +## Detailed Description + +Fungsi lain-lain untuk bekerja. + diff --git a/indonesian/rust-cpp/miscellaneous/about/_index.md b/indonesian/rust-cpp/miscellaneous/about/_index.md new file mode 100644 index 0000000000..d804564f3a --- /dev/null +++ b/indonesian/rust-cpp/miscellaneous/about/_index.md @@ -0,0 +1,69 @@ +--- +title: "tentang" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengembalikan informasi metadata tentang Aspose.PDF untuk Rust melalui C++." +type: docs +url: /id/rust-cpp/miscellaneous/about/ +--- + +_Mengembalikan informasi metadata tentang Aspose.PDF untuk Rust melalui C++._ + +```rust +pub fn about(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(ProductInfo)** - if the operation succeeds +```rust +#[derive(Debug, Deserialize)] +pub struct ProductInfo { + #[serde(rename = "product")] + pub product: String, + + #[serde(rename = "family")] + pub family: String, + + #[serde(rename = "version")] + pub version: String, + + #[serde(rename = "releasedate")] + pub release_date: String, + + #[serde(rename = "producer")] + pub producer: String, + + #[serde(rename = "islicensed")] + pub is_licensed: bool, +} +``` + + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buat dokumen PDF baru + let pdf = Document::new()?; + + // Mengembalikan informasi metadata tentang Aspose.PDF untuk Go melalui C++. + let info = pdf.about()?; + + // Cetak bidang metadata + println!("Product Info:"); + println!(" Product: {}", info.product); + println!(" Family: {}", info.family); + println!(" Version: {}", info.version); + println!(" ReleaseDate: {}", info.release_date); + println!(" Producer: {}", info.producer); + println!(" IsLicensed: {}", info.is_licensed); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/_index.md b/indonesian/rust-cpp/organize/_index.md new file mode 100644 index 0000000000..8bcc90b5a8 --- /dev/null +++ b/indonesian/rust-cpp/organize/_index.md @@ -0,0 +1,71 @@ +--- +title: "Fungsi mengatur PDF" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Fungsi untuk mengatur file PDF." +type: docs +url: /id/rust-cpp/organize/ +--- + +## Organize PDF functions + +| Nama | Deskripsi | +| -------------- | -------------- | +| [optimize](./optimize/) | Optimalkan konten PDF-document. | +| [optimize_resource](./optimize_resource/) | Optimalkan sumber daya PDF-document. | +| [grayscale](./grayscale/) | Konversi PDF-document menjadi hitam putih. | +| [rotate](./rotate/) | Putar PDF-document. | +| [set_background](./set_background/) | Atur warna latar belakang PDF-document menggunakan nilai RGB. | +| [repair](./repair/) | Perbaiki PDF-document. | +| [replace_text](./replace_text/) | Ganti teks dalam PDF-document | +| [add_page_num](./add_page_num/) | Tambahkan nomor halaman ke PDF-document | +| [add_text_header](./add_text_header/) | Tambahkan teks di Header PDF-document | +| [add_text_footer](./add_text_footer/) | Tambahkan teks di Footer PDF-document | +| [flatten](./flatten/) | Ratakan PDF-document | +| [remove_annotations](./remove_annotations/) | Hapus anotasi dari PDF-document | +| [remove_attachments](./remove_attachments/) | Hapus lampiran dari PDF-document | +| [remove_blank_pages](./remove_blank_pages/) | Hapus halaman kosong dari PDF-document | +| [remove_bookmarks](./remove_bookmarks/) | Hapus bookmark dari PDF-document | +| [remove_hidden_text](./remove_hidden_text/) | Hapus teks tersembunyi dari PDF-document | +| [remove_images](./remove_images/) | Hapus gambar dari PDF-document | +| [remove_javascripts](./remove_javascripts/) | Hapus skrip java dari PDF-document | +| [remove_tables](./remove_tables/) | Hapus tabel dari PDF-document. | +| [remove_watermarks](./remove_watermarks/) | Hapus watermark dari PDF-document. | +| [add_watermark](./add_watermark/) | Tambahkan watermark ke PDF-document. | +| [embed_fonts](./embed_fonts/) | Sematkan font pada PDF-document. | +| [unembed_fonts](./unembed_fonts/) | Hapus penyematan font pada PDF-document. | +| [optimize_file_size](./optimize_file_size/) | Optimalkan ukuran PDF-document dengan kualitas kompresi gambar. | +| [remove_text_headers](./remove_text_headers/) | Hapus header teks dari PDF-document. | +| [remove_text_footers](./remove_text_footers/) | Hapus footer teks dari PDF-document. | +| [crop](./crop/) | Potong halaman PDF-document. | +| [replace_font](./replace_font/) | Ganti font dalam PDF-document. | +| [convert](./convert/) | Konversi PDF-document menjadi PDF-document dengan format PDF yang ditentukan | +| [validate](./validate/) | Validasi PDF-document untuk kepatuhan terhadap format PDF | +| [remove_pdfa_compliance](./remove_pdfa_compliance/) | Hapus kepatuhan PDF/A dari PDF-document | +| [remove_pdfua_compliance](./remove_pdfua_compliance/) | Hapus kepatuhan PDF/UA dari PDF-document | +| [is_pdfa_compliant](./is_pdfa_compliant/) | Dapatkan apakah PDF-document mematuhi PDF/A | +| [is_pdfua_compliant](./is_pdfua_compliant/) | Dapatkan apakah PDF-document mematuhi PDF/UA | +| [page_rotate](./page_rotate/) | Putar halaman dalam PDF-document. | +| [page_set_size](./page_set_size/) | Atur ukuran halaman dalam PDF-document. | +| [page_grayscale](./page_grayscale/) | Konversi halaman menjadi hitam putih. | +| [page_add_text](./page_add_text/) | Tambahkan teks pada halaman. | +| [page_replace_text](./page_replace_text/) | Ganti teks pada halaman | +| [page_add_page_num](./page_add_page_num/) | Tambahkan nomor halaman pada halaman | +| [page_add_text_header](./page_add_text_header/) | Tambahkan teks di header halaman | +| [page_add_text_footer](./page_add_text_footer/) | Tambahkan teks di footer halaman | +| [page_remove_annotations](./page_remove_annotations/) | Hapus anotasi di halaman. | +| [page_remove_hidden_text](./page_remove_hidden_text/) | Hapus teks tersembunyi di halaman. | +| [page_remove_images](./page_remove_images/) | Hapus gambar di halaman. | +| [page_remove_tables](./page_remove_tables/) | Hapus tabel di halaman. | +| [page_remove_watermarks](./page_remove_watermarks/) | Hapus watermark pada halaman. | +| [page_add_watermark](./page_add_watermark/) | Tambahkan watermark pada halaman. | +| [page_remove_text_headers](./page_remove_text_headers/) | Hapus header teks pada halaman. | +| [page_remove_text_footers](./page_remove_text_footers/) | Hapus footer teks pada halaman. | +| [page_crop](./page_crop/) | Potong sebuah halaman. | +| [page_replace_font](./page_replace_font/) | Ganti font pada halaman. | +| [page_merge_layers](./page_merge_layers/) | Gabungkan semua lapisan pada halaman menjadi satu lapisan dengan nama lapisan baru yang ditentukan. | +| [page_layers](./page_layers/) | Dapatkan nama-nama lapisan pada halaman. | + + +## Detailed Description + +Fungsi untuk mengatur file PDF. diff --git a/indonesian/rust-cpp/organize/add_page_num/_index.md b/indonesian/rust-cpp/organize/add_page_num/_index.md new file mode 100644 index 0000000000..d7dda1b2de --- /dev/null +++ b/indonesian/rust-cpp/organize/add_page_num/_index.md @@ -0,0 +1,40 @@ +--- +title: "add_page_num" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan nomor halaman ke PDF-document." +type: docs +url: /id/rust-cpp/organize/add_page_num/ +--- + +_Menambahkan nomor halaman ke PDF-document._ + +```rust +pub fn add_page_num(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Tambahkan nomor halaman ke PDF-document + pdf.add_page_num()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_add_page_num.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/add_text_footer/_index.md b/indonesian/rust-cpp/organize/add_text_footer/_index.md new file mode 100644 index 0000000000..5223c89b7d --- /dev/null +++ b/indonesian/rust-cpp/organize/add_text_footer/_index.md @@ -0,0 +1,40 @@ +--- +title: "add_text_footer" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan teks di Footer PDF-document." +type: docs +url: /id/rust-cpp/organize/add_text_footer/ +--- + +_Menambahkan teks di Footer PDF-document._ + +```rust +pub fn add_text_footer(&self, footer: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **footer** - the pages footer + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Tambahkan teks di Footer PDF-document + pdf.add_text_footer("FOOTER")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_add_text_footer.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/add_text_header/_index.md b/indonesian/rust-cpp/organize/add_text_header/_index.md new file mode 100644 index 0000000000..023bd1df13 --- /dev/null +++ b/indonesian/rust-cpp/organize/add_text_header/_index.md @@ -0,0 +1,40 @@ +--- +title: "add_text_header" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan teks di Header dokumen PDF." +type: docs +url: /id/rust-cpp/organize/add_text_header/ +--- + +_Menambahkan teks di Header dokumen PDF._ + +```rust +pub fn add_text_header(&self, header: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **header** - the pages header + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Tambahkan teks di Header PDF-document + pdf.add_text_header("HEADER")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_add_text_header.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/add_watermark/_index.md b/indonesian/rust-cpp/organize/add_watermark/_index.md new file mode 100644 index 0000000000..3b73309aa1 --- /dev/null +++ b/indonesian/rust-cpp/organize/add_watermark/_index.md @@ -0,0 +1,69 @@ +--- +title: "add_watermark" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan watermark ke PDF-document." +type: docs +url: /id/rust-cpp/organize/add_watermark/ +--- + +_Menambahkan watermark ke PDF-document._ + +```rust +pub fn add_watermark( + &self, + text: &str, + font_name: &str, + font_size: f64, + foreground_color: &str, + x_position: i32, + y_position: i32, + rotation: i32, + is_background: bool, + opacity: f64, +) -> Result<(), PdfError> +``` + +**Arguments** + * **text** - the watermark text + * **font_name** - the font name + * **font_size** - the font size + * **foreground_color** - the text color (hexadecimal format "#RRGGBB", where RR-red, GG-green and BB-blue hexadecimal integers) + * **x_position** - the 'x' watermark position + * **y_position** - the 'y' watermark position + * **rotation** - the watermark rotation (0-360) + * **is_background** - the background + * **opacity** - the opacity (decimal) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Tambahkan watermark ke PDF-document + pdf.add_watermark( + "WATERMARK", + "Arial", + 16.0, + "#010101", + 100, + 100, + 45, + true, + 0.5, + )?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_add_watermark.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/convert/_index.md b/indonesian/rust-cpp/organize/convert/_index.md new file mode 100644 index 0000000000..d32e3bbe57 --- /dev/null +++ b/indonesian/rust-cpp/organize/convert/_index.md @@ -0,0 +1,49 @@ +--- +title: "convert" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi PDF-document menjadi PDF-document dengan format PDF yang ditentukan." +type: docs +url: /id/rust-cpp/organize/convert/ +--- + +_Mengonversi PDF-document menjadi PDF-document dengan format PDF yang ditentukan._ + +```rust + pub fn convert( + &self, + pdf_format: PdfFormat, + action: ConvertErrorAction, + ) -> Result<(bool, String), PdfError> +``` + +**Arguments** + * **pdf_format** - the target PDF format standard (enum [PdfFormat](../../)) + * **action** - the action to take on conversion errors (enum [ConvertErrorAction](../../)) + +**Returns** + * **Ok((bool, String))** - the operation result, `String` contains the conversion log + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::{ConvertErrorAction, Document, PdfFormat}; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi PDF-document menjadi PDF-document dengan format PDF yang ditentukan + let (ok, log) = pdf.convert(PdfFormat::PDF_A_2A, ConvertErrorAction::Delete)?; + + // Cetak hasil konversi dan log lengkap + println!("Convert PDF/A result: {}", ok); + println!("Convert PDF/A log:\n{}", log); + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_convert.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/crop/_index.md b/indonesian/rust-cpp/organize/crop/_index.md new file mode 100644 index 0000000000..cf80fabe87 --- /dev/null +++ b/indonesian/rust-cpp/organize/crop/_index.md @@ -0,0 +1,40 @@ +--- +title: "potong" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Memotong halaman dokumen PDF." +type: docs +url: /id/rust-cpp/organize/crop/ +--- + +_Memotong halaman dokumen PDF._ + +```rust +pub fn crop(&self, margin: f64) -> Result<(), PdfError> +``` + +**Arguments** + * **margin** - pages margins + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Potong halaman dokumen PDF + pdf.crop(10.5)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_crop.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/embed_fonts/_index.md b/indonesian/rust-cpp/organize/embed_fonts/_index.md new file mode 100644 index 0000000000..88ce2187c1 --- /dev/null +++ b/indonesian/rust-cpp/organize/embed_fonts/_index.md @@ -0,0 +1,40 @@ +--- +title: "embed_fonts" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menyematkan font pada dokumen PDF." +type: docs +url: /id/rust-cpp/organize/embed_fonts/ +--- + +_Menyematkan font pada dokumen PDF._ + +```rust +pub fn embed_fonts(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Menyematkan font pada dokumen PDF + pdf.embed_fonts()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_embed_fonts.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/flatten/_index.md b/indonesian/rust-cpp/organize/flatten/_index.md new file mode 100644 index 0000000000..a290990e02 --- /dev/null +++ b/indonesian/rust-cpp/organize/flatten/_index.md @@ -0,0 +1,40 @@ +--- +title: "flatten" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Meratakan dokumen PDF." +type: docs +url: /id/rust-cpp/organize/flatten/ +--- + +_Meratakan dokumen PDF._ + +```rust +pub fn flatten(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Kembalikan isi dokumen PDF sebagai teks biasa + let txt = pdf.extract_text()?; + + // Cetak teks yang diekstrak + println!("Extracted text:\n{}", txt); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/grayscale/_index.md b/indonesian/rust-cpp/organize/grayscale/_index.md new file mode 100644 index 0000000000..e02282401a --- /dev/null +++ b/indonesian/rust-cpp/organize/grayscale/_index.md @@ -0,0 +1,40 @@ +--- +title: "grayscale" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi dokumen PDF menjadi hitam putih." +type: docs +url: /id/rust-cpp/organize/grayscale/ +--- + +_Mengonversi dokumen PDF menjadi hitam putih._ + +```rust +pub fn grayscale(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Konversi dokumen PDF menjadi hitam putih + pdf.grayscale()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_grayscale.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/is_pdfa_compliant/_index.md b/indonesian/rust-cpp/organize/is_pdfa_compliant/_index.md new file mode 100644 index 0000000000..54c64abfe2 --- /dev/null +++ b/indonesian/rust-cpp/organize/is_pdfa_compliant/_index.md @@ -0,0 +1,41 @@ +--- +title: "is_pdfa_compliant" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mendapatkan apakah dokumen PDF mematuhi PDF/A." +type: docs +url: /id/rust-cpp/organize/is_pdfa_compliant/ +--- + +_Mendapatkan apakah dokumen PDF mematuhi PDF/A._ + +```rust +pub fn is_pdfa_compliant(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(bool)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Dapatkan status kepatuhan PDF/A dokumen PDF + if pdf.is_pdfa_compliant()? { + println!("The document is PDF/A compliant."); + } else { + println!("The document is not PDF/A compliant."); + } + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/is_pdfua_compliant/_index.md b/indonesian/rust-cpp/organize/is_pdfua_compliant/_index.md new file mode 100644 index 0000000000..fa7f22ed59 --- /dev/null +++ b/indonesian/rust-cpp/organize/is_pdfua_compliant/_index.md @@ -0,0 +1,41 @@ +--- +title: "is_pdfua_compliant" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mendapatkan apakah dokumen PDF mematuhi PDF/UA." +type: docs +url: /id/rust-cpp/organize/is_pdfua_compliant/ +--- + +_Mendapatkan apakah dokumen PDF mematuhi PDF/UA._ + +```rust +pub fn is_pdfua_compliant(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(bool)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Dapatkan status kepatuhan PDF/UA dokumen PDF + if pdf.is_pdfua_compliant()? { + println!("The document is PDF/UA compliant."); + } else { + println!("The document is not PDF/UA compliant."); + } + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/optimize/_index.md b/indonesian/rust-cpp/organize/optimize/_index.md new file mode 100644 index 0000000000..64645a7495 --- /dev/null +++ b/indonesian/rust-cpp/organize/optimize/_index.md @@ -0,0 +1,40 @@ +--- +title: "optimize" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengoptimalkan konten dokumen PDF." +type: docs +url: /id/rust-cpp/organize/optimize/ +--- + +_Mengoptimalkan konten dokumen PDF._ + +```rust +pub fn optimize(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Optimalkan konten dokumen PDF + pdf.optimize()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_optimize.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/optimize_file_size/_index.md b/indonesian/rust-cpp/organize/optimize_file_size/_index.md new file mode 100644 index 0000000000..86635ef3f6 --- /dev/null +++ b/indonesian/rust-cpp/organize/optimize_file_size/_index.md @@ -0,0 +1,40 @@ +--- +title: "optimize_file_size" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengoptimalkan ukuran dokumen PDF dengan kualitas kompresi gambar." +type: docs +url: /id/rust-cpp/organize/optimize_file_size/ +--- + +_Mengoptimalkan ukuran dokumen PDF dengan kualitas kompresi gambar._ + +```rust +pub fn optimize_file_size(&self, image_quality: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **image_quality** - the image compression quality + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Optimalkan ukuran dokumen PDF dengan kualitas kompresi gambar + pdf.optimize_file_size(50)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_optimize_file_size.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/optimize_resource/_index.md b/indonesian/rust-cpp/organize/optimize_resource/_index.md new file mode 100644 index 0000000000..6110746af9 --- /dev/null +++ b/indonesian/rust-cpp/organize/optimize_resource/_index.md @@ -0,0 +1,40 @@ +--- +title: "optimize_resource" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengoptimalkan sumber daya dokumen PDF." +type: docs +url: /id/rust-cpp/organize/optimize_resource/ +--- + +_Mengoptimalkan sumber daya dokumen PDF._ + +```rust +pub fn optimize_resource(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Optimalkan sumber daya dokumen PDF + pdf.optimize_resource()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_optimize_resource.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_add_page_num/_index.md b/indonesian/rust-cpp/organize/page_add_page_num/_index.md new file mode 100644 index 0000000000..2b2eddd7cd --- /dev/null +++ b/indonesian/rust-cpp/organize/page_add_page_num/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_add_page_num" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan nomor halaman pada halaman." +type: docs +url: /id/rust-cpp/organize/page_add_page_num/ +--- + +_Menambahkan nomor halaman pada halaman._ + +```rust +pub fn page_add_page_num(&self, num: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Tambahkan nomor halaman pada halaman + pdf.page_add_page_num(1)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_add_page_num.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_add_text/_index.md b/indonesian/rust-cpp/organize/page_add_text/_index.md new file mode 100644 index 0000000000..8c04a533da --- /dev/null +++ b/indonesian/rust-cpp/organize/page_add_text/_index.md @@ -0,0 +1,41 @@ +--- +title: "page_add_text" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan teks ke halaman." +type: docs +url: /id/rust-cpp/organize/page_add_text/ +--- + +_Menambahkan teks ke halaman._ + +```rust +pub fn page_add_text(&self, num: i32, add_text: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **add_text** - the text to add + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Tambahkan teks pada halaman + pdf.page_add_text(1, "added text")?; + + // Simpan PDF-document yang sebelumnya dibuka + pdf.save()?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_add_text_footer/_index.md b/indonesian/rust-cpp/organize/page_add_text_footer/_index.md new file mode 100644 index 0000000000..dfb0d03327 --- /dev/null +++ b/indonesian/rust-cpp/organize/page_add_text_footer/_index.md @@ -0,0 +1,41 @@ +--- +title: "page_add_text_footer" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan teks di footer halaman." +type: docs +url: /id/rust-cpp/organize/page_add_text_footer/ +--- + +_Menambahkan teks di footer halaman._ + +```rust +pub fn page_add_text_footer(&self, num: i32, footer: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **footer** - the pages footer + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Tambahkan teks di footer halaman + pdf.page_add_text_footer(1, "FOOTER")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_add_text_footer.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_add_text_header/_index.md b/indonesian/rust-cpp/organize/page_add_text_header/_index.md new file mode 100644 index 0000000000..c7eee230df --- /dev/null +++ b/indonesian/rust-cpp/organize/page_add_text_header/_index.md @@ -0,0 +1,41 @@ +--- +title: "page_add_text_header" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan teks di header halaman." +type: docs +url: /id/rust-cpp/organize/page_add_text_header/ +--- + +_Menambahkan teks di header halaman._ + +```rust +pub fn page_add_text_header(&self, num: i32, header: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **header** - the pages header + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Tambahkan teks di header halaman + pdf.page_add_text_header(1, "HEADER")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_add_text_header.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_add_watermark/_index.md b/indonesian/rust-cpp/organize/page_add_watermark/_index.md new file mode 100644 index 0000000000..0df4b292ef --- /dev/null +++ b/indonesian/rust-cpp/organize/page_add_watermark/_index.md @@ -0,0 +1,72 @@ +--- +title: "page_add_watermark" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menambahkan watermark pada halaman." +type: docs +url: /id/rust-cpp/organize/page_add_watermark/ +--- + +_Menambahkan watermark pada halaman._ + +```rust +pub fn page_add_watermark( + &self, + num: i32, + text: &str, + font_name: &str, + font_size: f64, + foreground_color: &str, + x_position: i32, + y_position: i32, + rotation: i32, + is_background: bool, + opacity: f64, +) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **text** - the watermark text + * **font_name** - the font name + * **font_size** - the font size + * **foreground_color** - the text color (hexadecimal format "#RRGGBB", where RR-red, GG-green and BB-blue hexadecimal integers) + * **x_position** - the 'x' watermark position + * **y_position** - the 'y' watermark position + * **rotation** - the watermark rotation (0-360) + * **is_background** - the background + * **opacity** - the opacity (decimal) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Tambahkan watermark pada halaman + pdf.page_add_watermark( + 1, + "WATERMARK", + "Arial", + 16.0, + "#010101", + 100, + 100, + 45, + true, + 0.5, + )?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_add_watermark.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_crop/_index.md b/indonesian/rust-cpp/organize/page_crop/_index.md new file mode 100644 index 0000000000..f29e82caa9 --- /dev/null +++ b/indonesian/rust-cpp/organize/page_crop/_index.md @@ -0,0 +1,41 @@ +--- +title: "page_crop" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Memotong sebuah halaman." +type: docs +url: /id/rust-cpp/organize/page_crop/ +--- + +_Memotong sebuah halaman._ + +```rust +pub fn page_crop(&self, num: i32, margin: f64) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **margin** - page margins + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Potong sebuah halaman + pdf.page_crop(1, 1.0)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_crop.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_grayscale/_index.md b/indonesian/rust-cpp/organize/page_grayscale/_index.md new file mode 100644 index 0000000000..9ee30e6663 --- /dev/null +++ b/indonesian/rust-cpp/organize/page_grayscale/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_grayscale" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengonversi halaman menjadi hitam putih." +type: docs +url: /id/rust-cpp/organize/page_grayscale/ +--- + +_Mengonversi halaman menjadi hitam putih._ + +```rust +pub fn page_grayscale(&self, num: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Konversi halaman menjadi hitam putih + pdf.page_grayscale(1)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_grayscale.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_layers/_index.md b/indonesian/rust-cpp/organize/page_layers/_index.md new file mode 100644 index 0000000000..af3d25a679 --- /dev/null +++ b/indonesian/rust-cpp/organize/page_layers/_index.md @@ -0,0 +1,42 @@ +--- +title: "page_layers" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mendapatkan nama lapisan pada halaman." +type: docs +url: /id/rust-cpp/organize/page_layers/ +--- + +_Mendapatkan nama lapisan pada halaman._ + +```rust +pub fn page_layers(&self, num: i32) -> Result, PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(Vec\)** - the array layers' names + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample_layers.pdf")?; + + // Dapatkan nama lapisan pada halaman 1 + let layers: Vec = pdf.page_layers(1)?; + + println!("Layers on page 1:"); + for name in layers { + println!("- {}", name); + } + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_merge_layers/_index.md b/indonesian/rust-cpp/organize/page_merge_layers/_index.md new file mode 100644 index 0000000000..c6c7c602f4 --- /dev/null +++ b/indonesian/rust-cpp/organize/page_merge_layers/_index.md @@ -0,0 +1,41 @@ +--- +title: "page_merge_layers" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menggabungkan semua lapisan pada halaman menjadi satu lapisan dengan nama lapisan baru yang ditentukan." +type: docs +url: /id/rust-cpp/organize/page_merge_layers/ +--- + +_Menggabungkan semua lapisan pada halaman menjadi satu lapisan dengan nama lapisan baru yang ditentukan._ + +```rust +pub fn page_merge_layers(&self, num: i32, new_layer_name: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **new_layer_name** - the name of the new layer after merging + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Gabungkan semua lapisan pada halaman menjadi satu lapisan dengan nama lapisan baru yang ditentukan + pdf.page_merge_layers(1, "New Layer Name")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_merge_layers.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_remove_annotations/_index.md b/indonesian/rust-cpp/organize/page_remove_annotations/_index.md new file mode 100644 index 0000000000..64f2034643 --- /dev/null +++ b/indonesian/rust-cpp/organize/page_remove_annotations/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_remove_annotations" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus anotasi pada halaman." +type: docs +url: /id/rust-cpp/organize/page_remove_annotations/ +--- + +_Menghapus anotasi pada halaman._ + +```rust +pub fn page_remove_annotations(&self, num: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Hapus anotasi pada halaman + pdf.page_remove_annotations(1)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_remove_annotations.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_remove_hidden_text/_index.md b/indonesian/rust-cpp/organize/page_remove_hidden_text/_index.md new file mode 100644 index 0000000000..8c57e5b46d --- /dev/null +++ b/indonesian/rust-cpp/organize/page_remove_hidden_text/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_remove_hidden_text" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus teks tersembunyi di halaman." +type: docs +url: /id/rust-cpp/organize/page_remove_hidden_text/ +--- + +_Menghapus teks tersembunyi di halaman._ + +```rust +pub fn page_remove_hidden_text(&self, num: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Hapus teks tersembunyi di halaman + pdf.page_remove_hidden_text(1)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_remove_hidden_text.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_remove_images/_index.md b/indonesian/rust-cpp/organize/page_remove_images/_index.md new file mode 100644 index 0000000000..bd1850ccea --- /dev/null +++ b/indonesian/rust-cpp/organize/page_remove_images/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_remove_images" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus gambar pada halaman." +type: docs +url: /id/rust-cpp/organize/page_remove_images/ +--- + +_Menghapus gambar pada halaman._ + +```rust +pub fn page_remove_images(&self, num: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Hapus gambar pada halaman + pdf.page_remove_images(1)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_remove_images.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_remove_tables/_index.md b/indonesian/rust-cpp/organize/page_remove_tables/_index.md new file mode 100644 index 0000000000..d266bde15e --- /dev/null +++ b/indonesian/rust-cpp/organize/page_remove_tables/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_remove_tables" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus tabel di halaman." +type: docs +url: /id/rust-cpp/organize/page_remove_tables/ +--- + +_Menghapus tabel di halaman._ + +```rust +pub fn page_remove_tables(&self, num: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Hapus tabel di halaman + pdf.page_remove_tables(1)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_remove_tables.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_remove_text_footers/_index.md b/indonesian/rust-cpp/organize/page_remove_text_footers/_index.md new file mode 100644 index 0000000000..89980dd57e --- /dev/null +++ b/indonesian/rust-cpp/organize/page_remove_text_footers/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_remove_text_footers" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus footer teks pada halaman." +type: docs +url: /id/rust-cpp/organize/page_remove_text_footers/ +--- + +_Menghapus footer teks pada halaman._ + +```rust +pub fn page_remove_text_footers(&self, num: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Hapus footer teks pada halaman + pdf.page_remove_text_footers(1)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_remove_text_footers.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_remove_text_headers/_index.md b/indonesian/rust-cpp/organize/page_remove_text_headers/_index.md new file mode 100644 index 0000000000..c925745bbb --- /dev/null +++ b/indonesian/rust-cpp/organize/page_remove_text_headers/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_remove_text_headers" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus header teks di halaman." +type: docs +url: /id/rust-cpp/organize/page_remove_text_headers/ +--- + +_Menghapus header teks di halaman._ + +```rust +pub fn page_remove_text_headers(&self, num: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Hapus header teks di halaman + pdf.page_remove_text_headers(1)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_remove_text_headers.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_remove_watermarks/_index.md b/indonesian/rust-cpp/organize/page_remove_watermarks/_index.md new file mode 100644 index 0000000000..14d4021fe3 --- /dev/null +++ b/indonesian/rust-cpp/organize/page_remove_watermarks/_index.md @@ -0,0 +1,40 @@ +--- +title: "page_remove_watermarks" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus watermark di halaman." +type: docs +url: /id/rust-cpp/organize/page_remove_watermarks/ +--- + +_Menghapus watermark di halaman._ + +```rust +pub fn page_remove_watermarks(&self, num: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Hapus watermark di halaman + pdf.page_remove_watermarks(1)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_remove_watermarks.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_replace_font/_index.md b/indonesian/rust-cpp/organize/page_replace_font/_index.md new file mode 100644 index 0000000000..0b26a6c046 --- /dev/null +++ b/indonesian/rust-cpp/organize/page_replace_font/_index.md @@ -0,0 +1,42 @@ +--- +title: "page_replace_font" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengganti font pada halaman." +type: docs +url: /id/rust-cpp/organize/page_replace_font/ +--- + +_Mengganti font pada halaman._ + +```rust +pub fn page_replace_font(&self, num: i32, find_font_name: &str, replace_font_name: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **find_font_name** - the font name to search + * **replace_font_name** - the font name to replace + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Ganti font pada halaman + pdf.page_replace_font(1, "Times-BoldItalic", "Helvetica-Bold")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_replace_font.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_replace_text/_index.md b/indonesian/rust-cpp/organize/page_replace_text/_index.md new file mode 100644 index 0000000000..8a6f800506 --- /dev/null +++ b/indonesian/rust-cpp/organize/page_replace_text/_index.md @@ -0,0 +1,42 @@ +--- +title: "page_replace_text" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengganti teks pada halaman." +type: docs +url: /id/rust-cpp/organize/page_replace_text/ +--- + +_Mengganti teks pada halaman._ + +```rust +pub fn page_replace_text(&self, num: i32, find_text: &str, replace_text: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **find_text** - the text fragment to search + * **replace_text** - the text fragment to replace + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Ganti teks pada halaman + pdf.page_replace_text(1, "PDF", "TXT")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_replace_text.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_rotate/_index.md b/indonesian/rust-cpp/organize/page_rotate/_index.md new file mode 100644 index 0000000000..2cb271367f --- /dev/null +++ b/indonesian/rust-cpp/organize/page_rotate/_index.md @@ -0,0 +1,41 @@ +--- +title: "page_rotate" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Memutar satu halaman dalam dokumen PDF." +type: docs +url: /id/rust-cpp/organize/page_rotate/ +--- + +_Memutar satu halaman dalam dokumen PDF._ + +```rust +pub fn page_rotate(&self, num: i32, rotation: Rotation) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **rotation** - rotation angle as enum `Rotation`: `None`, `On90`, `On180`, `On270`, or `On360` + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::{Document, Rotation}; + +fn main() -> Result<(), Box> { + // Buka PDF-document dari file + let pdf = Document::open("sample.pdf")?; + + // Putar halaman + pdf.page_rotate(1, Rotation::On180)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_rotate.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/page_set_size/_index.md b/indonesian/rust-cpp/organize/page_set_size/_index.md new file mode 100644 index 0000000000..64c8493738 --- /dev/null +++ b/indonesian/rust-cpp/organize/page_set_size/_index.md @@ -0,0 +1,41 @@ +--- +title: "page_set_size" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengatur ukuran halaman dalam dokumen PDF." +type: docs +url: /id/rust-cpp/organize/page_set_size/ +--- + +_Mengatur ukuran halaman dalam dokumen PDF._ + +```rust +pub fn page_set_size(&self, num: i32, page_size: PageSize) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **page_size** - page size as enum `PageSize`: `A0`, `A1`, `A2`, `A3`, `A4`, `A5`, `A6`, `B5`, `PageLetter`, `PageLegal`, `PageLedger`, or `P11x17` + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::{Document, PageSize}; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Atur ukuran halaman dalam dokumen PDF + pdf.page_set_size(1, PageSize::A1)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_page1_set_size_A1.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_annotations/_index.md b/indonesian/rust-cpp/organize/remove_annotations/_index.md new file mode 100644 index 0000000000..d2446123c4 --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_annotations/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_annotations" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus anotasi dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_annotations/ +--- + +_Menghapus anotasi dari dokumen PDF._ + +```rust +pub fn remove_annotations(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus anotasi dari PDF-document + pdf.remove_annotations()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_annotations.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_attachments/_index.md b/indonesian/rust-cpp/organize/remove_attachments/_index.md new file mode 100644 index 0000000000..c3d2988b11 --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_attachments/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_attachments" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus lampiran dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_attachments/ +--- + +_Menghapus lampiran dari dokumen PDF._ + +```rust +pub fn remove_attachments(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus lampiran dari PDF-document + pdf.remove_attachments()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_attachments.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_blank_pages/_index.md b/indonesian/rust-cpp/organize/remove_blank_pages/_index.md new file mode 100644 index 0000000000..12605a5de0 --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_blank_pages/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_blank_pages" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus halaman kosong dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_blank_pages/ +--- + +_Menghapus halaman kosong dari dokumen PDF._ + +```rust +pub fn remove_blank_pages(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus halaman kosong dari PDF-document + pdf.remove_blank_pages()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_blank_pages.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_bookmarks/_index.md b/indonesian/rust-cpp/organize/remove_bookmarks/_index.md new file mode 100644 index 0000000000..42887201f2 --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_bookmarks/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_bookmarks" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus bookmark dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_bookmarks/ +--- + +_Menghapus bookmark dari dokumen PDF._ + +```rust +pub fn remove_bookmarks(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus bookmark dari PDF-document + pdf.remove_bookmarks()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_bookmarks.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_hidden_text/_index.md b/indonesian/rust-cpp/organize/remove_hidden_text/_index.md new file mode 100644 index 0000000000..2e020f8af0 --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_hidden_text/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_hidden_text" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus teks tersembunyi dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_hidden_text/ +--- + +_Menghapus teks tersembunyi dari dokumen PDF._ + +```rust +pub fn remove_hidden_text(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus teks tersembunyi dari PDF-document + pdf.remove_hidden_text()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_hidden_text.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_images/_index.md b/indonesian/rust-cpp/organize/remove_images/_index.md new file mode 100644 index 0000000000..d9a0ed6f3d --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_images/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_images" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus gambar dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_images/ +--- + +_Menghapus gambar dari dokumen PDF._ + +```rust +pub fn remove_images(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus gambar dari PDF-document + pdf.remove_images()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_images.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_javascripts/_index.md b/indonesian/rust-cpp/organize/remove_javascripts/_index.md new file mode 100644 index 0000000000..832fb118b9 --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_javascripts/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_javascripts" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus skrip Java dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_javascripts/ +--- + +_Menghapus skrip Java dari dokumen PDF._ + +```rust +pub fn remove_javascripts(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus skrip java dari PDF-document + pdf.remove_javascripts()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_javascripts.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_pdfa_compliance/_index.md b/indonesian/rust-cpp/organize/remove_pdfa_compliance/_index.md new file mode 100644 index 0000000000..926dd95c27 --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_pdfa_compliance/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_pdfa_compliance" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Hapus kepatuhan PDF/A dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_pdfa_compliance/ +--- + +_Hapus kepatuhan PDF/A dari dokumen PDF._ + +```rust +pub fn remove_pdfa_compliance(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus kepatuhan PDF/A dari PDF-document + pdf.remove_pdfa_compliance()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_pdfa_compliance.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_pdfua_compliance/_index.md b/indonesian/rust-cpp/organize/remove_pdfua_compliance/_index.md new file mode 100644 index 0000000000..8c7c0ee582 --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_pdfua_compliance/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_pdfua_compliance" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Hapus kepatuhan PDF/UA dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_pdfua_compliance/ +--- + +_Hapus kepatuhan PDF/UA dari dokumen PDF._ + +```rust +pub fn remove_pdfua_compliance(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus kepatuhan PDF/UA dari PDF-document + pdf.remove_pdfua_compliance()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_pdfua_compliance.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_tables/_index.md b/indonesian/rust-cpp/organize/remove_tables/_index.md new file mode 100644 index 0000000000..658ac05202 --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_tables/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_tables" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus tabel dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_tables/ +--- + +_Menghapus tabel dari dokumen PDF._ + +```rust +pub fn remove_tables(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus tabel dari dokumen PDF + pdf.remove_tables()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_tables.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_text_footers/_index.md b/indonesian/rust-cpp/organize/remove_text_footers/_index.md new file mode 100644 index 0000000000..a81e4169a8 --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_text_footers/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_text_footers" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus footer teks dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_text_footers/ +--- + +_Menghapus footer teks dari dokumen PDF._ + +```rust +pub fn remove_text_footers(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus footer teks dari dokumen PDF + pdf.remove_text_footers()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_text_footers.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_text_headers/_index.md b/indonesian/rust-cpp/organize/remove_text_headers/_index.md new file mode 100644 index 0000000000..596bb87e46 --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_text_headers/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_text_headers" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus header teks dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_text_headers/ +--- + +_Menghapus header teks dari dokumen PDF._ + +```rust +pub fn remove_text_headers(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus header teks dari dokumen PDF + pdf.remove_text_headers()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_text_headers.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/remove_watermarks/_index.md b/indonesian/rust-cpp/organize/remove_watermarks/_index.md new file mode 100644 index 0000000000..10dbab71bb --- /dev/null +++ b/indonesian/rust-cpp/organize/remove_watermarks/_index.md @@ -0,0 +1,40 @@ +--- +title: "remove_watermarks" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Menghapus watermark dari dokumen PDF." +type: docs +url: /id/rust-cpp/organize/remove_watermarks/ +--- + +_Menghapus watermark dari dokumen PDF._ + +```rust +pub fn remove_watermarks(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Hapus watermark dari dokumen PDF + pdf.remove_watermarks()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_remove_watermarks.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/repair/_index.md b/indonesian/rust-cpp/organize/repair/_index.md new file mode 100644 index 0000000000..e0af18a58e --- /dev/null +++ b/indonesian/rust-cpp/organize/repair/_index.md @@ -0,0 +1,40 @@ +--- +title: "repair" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Memperbaiki dokumen PDF." +type: docs +url: /id/rust-cpp/organize/repair/ +--- + +_Memperbaiki dokumen PDF._ + +```rust +pub fn repair(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Perbaiki dokumen PDF + pdf.repair()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_repair.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/replace_font/_index.md b/indonesian/rust-cpp/organize/replace_font/_index.md new file mode 100644 index 0000000000..1a7c6da58e --- /dev/null +++ b/indonesian/rust-cpp/organize/replace_font/_index.md @@ -0,0 +1,41 @@ +--- +title: "replace_font" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengganti font dalam dokumen PDF." +type: docs +url: /id/rust-cpp/organize/replace_font/ +--- + +_Mengganti font dalam dokumen PDF._ + +```rust +pub fn replace_font(&self, find_font_name: &str, replace_font_name: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **find_font_name** - the font name to search + * **replace_font_name** - the font name to replace + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Ganti font dalam PDF-document. + pdf.replace_font("Helvetica", "Courier")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_replace_font.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/replace_text/_index.md b/indonesian/rust-cpp/organize/replace_text/_index.md new file mode 100644 index 0000000000..6d9bfe0423 --- /dev/null +++ b/indonesian/rust-cpp/organize/replace_text/_index.md @@ -0,0 +1,41 @@ +--- +title: "replace_text" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengganti teks." +type: docs +url: /id/rust-cpp/organize/replace_text/ +--- + +_Mengganti teks._ + +```rust +pub fn replace_text(&self, find_text: &str, replace_text: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **find_text** - the text fragment to search + * **replace_text** - the text fragment to replace + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Ganti teks dalam PDF-document + pdf.replace_text("PDF", "TXT")?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_replace_text.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/rotate/_index.md b/indonesian/rust-cpp/organize/rotate/_index.md new file mode 100644 index 0000000000..aca743ee28 --- /dev/null +++ b/indonesian/rust-cpp/organize/rotate/_index.md @@ -0,0 +1,40 @@ +--- +title: "rotate" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Memutar dokumen PDF." +type: docs +url: /id/rust-cpp/organize/rotate/ +--- + +_Memutar dokumen PDF._ + +```rust +pub fn rotate(&self, rotation: Rotation) -> Result<(), PdfError> +``` + +**Arguments** + * **rotation** - rotation angle as enum `Rotation`: `None`, `On90`, `On180`, `On270`, or `On360` + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::{Document, Rotation}; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Putar dokumen PDF + pdf.rotate(Rotation::On270)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_rotate.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/set_background/_index.md b/indonesian/rust-cpp/organize/set_background/_index.md new file mode 100644 index 0000000000..56431beffe --- /dev/null +++ b/indonesian/rust-cpp/organize/set_background/_index.md @@ -0,0 +1,42 @@ +--- +title: "set_background" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Mengatur warna latar belakang dokumen PDF menggunakan nilai RGB." +type: docs +url: /id/rust-cpp/organize/set_background/ +--- + +_Mengatur warna latar belakang dokumen PDF menggunakan nilai RGB._ + +```rust +pub fn set_background(&self, r: i32, g: i32, b: i32) -> Result<(), PdfError> +``` + +**Arguments** + * **r** - red component (0-255) + * **g** - green component (0-255) + * **b** - blue component (0-255) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Atur warna latar belakang dokumen PDF menggunakan nilai RGB + pdf.set_background(200, 100, 101)?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_set_background.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/unembed_fonts/_index.md b/indonesian/rust-cpp/organize/unembed_fonts/_index.md new file mode 100644 index 0000000000..1d12ad020b --- /dev/null +++ b/indonesian/rust-cpp/organize/unembed_fonts/_index.md @@ -0,0 +1,40 @@ +--- +title: "unembed_fonts" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Melepaskan font dari PDF-document." +type: docs +url: /id/rust-cpp/organize/unembed_fonts/ +--- + +_Melepaskan font dari PDF-document._ + +```rust +pub fn unembed_fonts(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Lepaskan font dari PDF-document + pdf.unembed_fonts()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_unembed_fonts.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/organize/validate/_index.md b/indonesian/rust-cpp/organize/validate/_index.md new file mode 100644 index 0000000000..9b59ee21b5 --- /dev/null +++ b/indonesian/rust-cpp/organize/validate/_index.md @@ -0,0 +1,44 @@ +--- +title: "validate" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Memvalidasi dokumen PDF untuk kepatuhan terhadap format PDF." +type: docs +url: /id/rust-cpp/organize/validate/ +--- + +_Memvalidasi dokumen PDF untuk kepatuhan terhadap format PDF._ + +```rust + pub fn validate( + &self, + pdf_format: PdfFormat, + ) -> Result<(bool, String), PdfError> +``` + +**Arguments** + * **pdf_format** - the target PDF format standard (enum [PdfFormat](../../)) + +**Returns** + * **Ok((bool, String))** - the operation result, `String` contains the validation log + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::{Document, PdfFormat}; + +fn main() -> Result<(), Box> { + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Validasi PDF-document untuk kepatuhan terhadap format PDF + let (ok, log) = pdf.validate(PdfFormat::PDF_A_2A)?; + + // Cetak hasil validasi dan log lengkap + println!("Validate PDF/A result: {}", ok); + println!("Validate PDF/A log:\n{}", log); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/security/_index.md b/indonesian/rust-cpp/security/_index.md new file mode 100644 index 0000000000..f57d36a52d --- /dev/null +++ b/indonesian/rust-cpp/security/_index.md @@ -0,0 +1,28 @@ +--- +title: "Fungsi keamanan" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Fungsi keamanan." +type: docs +url: /id/rust-cpp/security/ +--- + +## Security + +| Fungsi | Deskripsi | +| -------- | ----------- | +| [open_with_password](./open_with_password/) | Buka dokumen PDF yang dilindungi kata sandi. | +| [encrypt](./encrypt/) | Enkripsi dokumen PDF. | +| [decrypt](./decrypt/) | Dekripsi dokumen PDF. | +| [set_permissions](./set_permissions/) | Atur izin untuk dokumen PDF. | +| [get_permissions](./get_permissions/) | Dapatkan izin saat ini dari dokumen PDF. | +| [is_encrypted](./is_encrypted/) | Dapatkan status terenkripsi dari dokumen PDF. | +| [sign_pkcs7](./sign_pkcs7/) | Tandatangani dokumen PDF menggunakan tanda tangan digital PKCS#7. | +| [sign_pkcs7_detached](./sign_pkcs7_detached/) | Tandatangani dokumen PDF menggunakan tanda tangan digital PKCS#7 Terpisah. | +| [is_signed](./is_signed/) | Dapatkan status tertanda pada dokumen PDF. | +| [remove_signs](./remove_signs/) | Hapus tanda dari dokumen PDF. | + + +## Detailed Description + +Fungsi keamanan. + diff --git a/indonesian/rust-cpp/security/decrypt/_index.md b/indonesian/rust-cpp/security/decrypt/_index.md new file mode 100644 index 0000000000..f4c57ec814 --- /dev/null +++ b/indonesian/rust-cpp/security/decrypt/_index.md @@ -0,0 +1,40 @@ +--- +title: "decrypt" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Dekripsi dokumen PDF." +type: docs +url: /id/rust-cpp/security/decrypt/ +--- + +_Dekripsi PDF-document._ + +```rust +pub fn decrypt(&self) -> Result<(), PdfError> +``` + +**Arguments** + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document yang dilindungi kata sandi + let pdf = Document::open_with_password("sample_with_password.pdf", "ownerpass")?; + + // Dekripsi PDF-document + pdf.decrypt()?; + + // Simpan dokumen PDF yang sebelumnya dibuka dengan nama file baru + pdf.save_as("sample_decrypt.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/security/encrypt/_index.md b/indonesian/rust-cpp/security/encrypt/_index.md new file mode 100644 index 0000000000..ef932b0a83 --- /dev/null +++ b/indonesian/rust-cpp/security/encrypt/_index.md @@ -0,0 +1,57 @@ +--- +title: "enkripsi" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Enkripsi dokumen PDF." +type: docs +url: /id/rust-cpp/security/encrypt/ +--- + +_Enkripsi dokumen PDF._ + +```rust +pub fn encrypt( + &self, + user_password: &str, + owner_password: &str, + permissions: Permissions, + crypto_algorithm: CryptoAlgorithm, + use_pdf_20: bool, +) -> Result<(), PdfError> +``` + +**Arguments** + * **user_password** - the user password + * **owner_password** - the owner password + * **permissions** - the allowed permissions (bitflags `Permissions`) + * **crypto_algorithm** - the encryption algorithm (`CryptoAlgorithm` enum) + * **use_pdf_20** - whether to use PDF 2.0 encryption + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::{CryptoAlgorithm, Document, Permissions}; + +fn main() -> Result<(), Box> { + // Buat dokumen PDF baru + let pdf = Document::new()?; + + // Enkripsi dokumen PDF + pdf.encrypt( + "userpass", // User password + "ownerpass", // Owner password + Permissions::PRINT_DOCUMENT | Permissions::MODIFY_CONTENT | Permissions::FILL_FORM, // Permissions bitmask + CryptoAlgorithm::AESx128, // Encryption algorithm + true, // Use PDF 2.0 encryption + )?; + + // Simpan dokumen PDF yang terenkripsi + pdf.save_as("sample_with_password.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/security/get_permissions/_index.md b/indonesian/rust-cpp/security/get_permissions/_index.md new file mode 100644 index 0000000000..de22140b76 --- /dev/null +++ b/indonesian/rust-cpp/security/get_permissions/_index.md @@ -0,0 +1,40 @@ +--- +title: "get_permissions" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Dapatkan izin saat ini dari dokumen PDF." +type: docs +url: /id/rust-cpp/security/get_permissions/ +--- + +_Dapatkan izin saat ini dari PDF-document._ + +```rust +pub fn get_permissions(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(Permissions)** - the bitmask of permissions, if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::{Document, Permissions}; + +fn main() -> Result<(), Box> { + // Buka PDF-document yang dilindungi kata sandi + let pdf = Document::open_with_password("sample_with_permissions.pdf", "ownerpass")?; + + // Dapatkan izin saat ini dari PDF-document + let permissions: Permissions = pdf.get_permissions()?; + + // Cetak izin + println!("Permissions: {}", permissions); + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/security/is_encrypted/_index.md b/indonesian/rust-cpp/security/is_encrypted/_index.md new file mode 100644 index 0000000000..f856e21bd2 --- /dev/null +++ b/indonesian/rust-cpp/security/is_encrypted/_index.md @@ -0,0 +1,39 @@ +--- +title: "is_encrypted" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Dapatkan status terenkripsi dari dokumen PDF." +type: docs +url: /id/rust-cpp/security/is_encrypted/ +--- + +_Dapatkan status terenkripsi dari PDF-document._ + +```rust +pub fn is_encrypted(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(bool)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document yang dilindungi kata sandi + let pdf = Document::open_with_password("sample_with_password.pdf", "ownerpass")?; + + // Dapatkan status terenkripsi dari PDF-document + if pdf.is_encrypted()? { + println!("The document is encrypted."); + } + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/security/is_signed/_index.md b/indonesian/rust-cpp/security/is_signed/_index.md new file mode 100644 index 0000000000..7151037fe4 --- /dev/null +++ b/indonesian/rust-cpp/security/is_signed/_index.md @@ -0,0 +1,39 @@ +--- +title: "is_signed" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Dapatkan status tertanda pada dokumen PDF." +type: docs +url: /id/rust-cpp/security/is_signed/ +--- + +_Dapatkan status penandatanganan dokumen PDF._ + +```rust +pub fn is_signed(&self) -> Result +``` + +**Arguments** + + +**Returns** + * **Ok(bool)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document bernama "sample_with_sign.pdf" + let pdf = Document::open("sample_with_sign.pdf")?; + + // Dapatkan status penandatanganan dokumen PDF + if pdf.is_signed()? { + println!("The document is signed."); + } + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/security/open_with_password/_index.md b/indonesian/rust-cpp/security/open_with_password/_index.md new file mode 100644 index 0000000000..f026a47454 --- /dev/null +++ b/indonesian/rust-cpp/security/open_with_password/_index.md @@ -0,0 +1,37 @@ +--- +title: "open_with_password" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Buka dokumen PDF yang dilindungi kata sandi." +type: docs +url: /id/rust-cpp/security/open_with_password/ +--- + +_Buka PDF-document yang dilindungi kata sandi._ + +```rust +pub fn open_with_password(filename: &str, password: &str) -> Result +``` + +**Arguments** + * **filename** - path to the PDF-document to open + * **password** - user/owner password of the password-protected PDF-document + +**Returns** + * **Ok(Self)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document yang dilindungi kata sandi + let _pdf = Document::open_with_password("sample_with_password.pdf", "ownerpass")?; + + // sedang bekerja... + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/security/remove_signs/_index.md b/indonesian/rust-cpp/security/remove_signs/_index.md new file mode 100644 index 0000000000..c606852bd0 --- /dev/null +++ b/indonesian/rust-cpp/security/remove_signs/_index.md @@ -0,0 +1,38 @@ +--- +title: "remove_signs" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Hapus tanda dari dokumen PDF." +type: docs +url: /id/rust-cpp/security/remove_signs/ +--- + +_Hapus tanda dari PDF-document._ + +```rust +pub fn remove_signs(&self, filename: &str) -> Result<(), PdfError> +``` + +**Arguments** + * **filename** - the path to the resulting PDF-document without signatures + + +**Returns** + * **Ok(bool)** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; + +fn main() -> Result<(), Box> { + // Buka PDF-document bernama "sample_with_sign.pdf" + let pdf = Document::open("sample_with_sign.pdf")?; + + // Hapus tanda dari PDF-document + pdf.remove_signs("sample_remove_signs.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/security/set_permissions/_index.md b/indonesian/rust-cpp/security/set_permissions/_index.md new file mode 100644 index 0000000000..a23860b909 --- /dev/null +++ b/indonesian/rust-cpp/security/set_permissions/_index.md @@ -0,0 +1,51 @@ +--- +title: "set_permissions" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Atur izin untuk dokumen PDF." +type: docs +url: /id/rust-cpp/security/set_permissions/ +--- + +_Atur izin untuk dokumen PDF._ + +```rust +pub fn set_permissions( + &self, + user_password: &str, + owner_password: &str, + permissions: Permissions, +) -> Result<(), PdfError> +``` + +**Arguments** + * **user_password** - the user password + * **owner_password** - the owner password + * **permissions** - the allowed permissions (bitflags `Permissions`) + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::{Document, Permissions}; + +fn main() -> Result<(), Box> { + // Buat dokumen PDF baru + let pdf = Document::new()?; + + // Atur izin untuk dokumen PDF. + pdf.set_permissions( + "userpass", // User password + "ownerpass", // Owner password + Permissions::PRINT_DOCUMENT | Permissions::MODIFY_CONTENT | Permissions::FILL_FORM, // Permissions bitmask + )?; + + // Simpan dokumen PDF dengan izin yang diperbarui + pdf.save_as("sample_with_permissions.pdf")?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/security/sign_pkcs7/_index.md b/indonesian/rust-cpp/security/sign_pkcs7/_index.md new file mode 100644 index 0000000000..e863d1d268 --- /dev/null +++ b/indonesian/rust-cpp/security/sign_pkcs7/_index.md @@ -0,0 +1,84 @@ +--- +title: "sign_pkcs7" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Tandatangani dokumen PDF menggunakan tanda tangan digital PKCS#7." +type: docs +url: /id/rust-cpp/security/sign_pkcs7/ +--- + +_Tandatangani dokumen PDF menggunakan tanda tangan digital PKCS#7._ + +```rust + pub fn sign_pkcs7( + &self, + num: i32, + sign_data: &[u8], + psw_sign: &str, + set_x_indent: i32, + set_y_indent: i32, + set_height: i32, + set_width: i32, + reason: &str, + contact: &str, + location: &str, + is_visible: bool, + appearance_data: &[u8], + filename: &str, + ) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **sign_data** - the raw bytes of the signature (PKCS#7 specification in Internet RFC 2315) + * **psw_sign** - the password of the signature + * **set_x_indent** - the x indent of the signature + * **set_y_indent** - the y indent of the signature + * **set_height** - the height of the signature + * **set_width** - the width of the signature + * **reason** - the reason of a signature + * **contact** - the contact of a signature + * **location** - the location of a signature + * **is_visible** - the visiblity of signature + * **appearance_data** - the raw bytes of the graphic appearance for the signature + * **filename** - the path to the resulting PDF-document with signature + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; +use std::fs; + +fn main() -> Result<(), Box> { + // Baca sertifikat dan file gambar ke dalam vektor byte + let cert = fs::read("sign.pfx")?; + let img = fs::read("sign.png")?; + + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Tandatangani dokumen PDF menggunakan tanda tangan digital PKCS#7 + pdf.sign_pkcs7( + 1, + &cert, + "Pa$$w0rd2023", + 100, + 100, + 70, + 100, + "Reason", + "Contact", + "Location", + true, + &img, + "sample_sign_pkcs7.pdf", + )?; + + Ok(()) +} + +``` \ No newline at end of file diff --git a/indonesian/rust-cpp/security/sign_pkcs7_detached/_index.md b/indonesian/rust-cpp/security/sign_pkcs7_detached/_index.md new file mode 100644 index 0000000000..f85d79dc14 --- /dev/null +++ b/indonesian/rust-cpp/security/sign_pkcs7_detached/_index.md @@ -0,0 +1,84 @@ +--- +title: "sign_pkcs7_detached" +second_title: "Aspose.PDF untuk Rust via C++" +description: "Tandatangani dokumen PDF menggunakan tanda tangan digital PKCS#7 Terpisah." +type: docs +url: /id/rust-cpp/security/sign_pkcs7_detached/ +--- + +_Tandatangani dokumen PDF menggunakan tanda tangan digital PKCS#7 Detached._ + +```rust + pub fn sign_pkcs7_detached( + &self, + num: i32, + sign_data: &[u8], + psw_sign: &str, + set_x_indent: i32, + set_y_indent: i32, + set_height: i32, + set_width: i32, + reason: &str, + contact: &str, + location: &str, + is_visible: bool, + appearance_data: &[u8], + filename: &str, + ) -> Result<(), PdfError> +``` + +**Arguments** + * **num** - the page number (1-based) + * **sign_data** - the raw bytes of the signature (PKCS#7 specification in Internet RFC 2315) + * **psw_sign** - the password of the signature + * **set_x_indent** - the x indent of the signature + * **set_y_indent** - the y indent of the signature + * **set_height** - the height of the signature + * **set_width** - the width of the signature + * **reason** - the reason of a signature + * **contact** - the contact of a signature + * **location** - the location of a signature + * **is_visible** - the visiblity of signature + * **appearance_data** - the raw bytes of the graphic appearance for the signature + * **filename** - the path to the resulting PDF-document with signature + + +**Returns** + * **Ok(())** - if the operation succeeds + * **Err(PdfError)** - if the operation fails + +**Example** + +```rust +use asposepdf::Document; +use std::fs; + +fn main() -> Result<(), Box> { + // Baca sertifikat dan file gambar ke dalam vektor byte + let cert = fs::read("sign.pfx")?; + let img = fs::read("sign.png")?; + + // Buka dokumen PDF dengan nama file + let pdf = Document::open("sample.pdf")?; + + // Tandatangani dokumen PDF menggunakan tanda tangan digital PKCS#7 Detached + pdf.sign_pkcs7_detached( + 1, + &cert, + "Pa$$w0rd2023", + 100, + 100, + 70, + 100, + "Reason", + "Contact", + "Location", + true, + &img, + "sample_sign_pkcs7_detached.pdf", + )?; + + Ok(()) +} + +``` \ No newline at end of file