FAQ — Aspose.PDF FOSS עבור Java
איזה גרסה Java נדרשת?
Aspose.PDF FOSS for Java requires Java 11 or later. JDK LTS releases (11, 17, 21) are recommended for production use.
האם הספרייה חופשית לשימוש?
כן. Aspose.PDF FOSS עבור Java הוא MIT-רישיון. אין הסכם מסחרי, מפתח API, או הפעלת נדרש.
כיצד ניתן להוסיף את הספרייה לפרויקט מאן?
הוסף את הדברים הבאים ל- Your pom.xml:
<dependency>
<groupId>org.aspose</groupId>
<artifactId>aspose-pdf</artifactId>
<version>0.1.0-alpha</version>
</dependency>איך אני יוצר מסמך PDF חדש?
השתמשו ב Document שיעור ללא תובנות:
try (Document doc = new Document()) {
doc.getPages().add();
doc.save("output.pdf");
}כיצד אני מקבל את מספר הדפים של מסמך קיימים?
פתח את המסמך וקרא size() על האוסף של הדפים:
try (Document doc = new Document("input.pdf")) {
int count = doc.getPages().size();
}איך אני יכול להדביק שני קבצי PDF?
שימוש PdfFileEditor.concatenate():
PdfFileEditor editor = new PdfFileEditor();
editor.concatenate("first.pdf", "second.pdf", "merged.pdf");איך אני יכול להקפיד PDF?
שימוש PdfFileSecurity מתוך חבילת הפסח עם DocumentPrivilege ו KeySize:
try (PdfFileSecurity security = new PdfFileSecurity("input.pdf", "secured.pdf")) {
DocumentPrivilege priv = DocumentPrivilege.getForbidAll();
priv.setAllowPrint(true);
security.encryptFile("user", "owner", priv, KeySize.x256);
}כיצד אני משתמש בהצפנה AES לנתונים?
שימוש AESCipher שיטות סטטיות עבור קריפטוגרפיה AES ברמה ביטה ירוקה ודיקריפט:
byte[] ciphertext = AESCipher.encrypt(key, plaintext);
byte[] decrypted = AESCipher.decrypt(key, ciphertext);איפה הקוד המקור?
קוד מקור ו- issue tracker זמינים ב https://github.com/aspose-pdf-foss/Aspose.PDF-FOSS-for-Java.