그럼 당신은 진수는 다음과 같이 화면을 빼다 다음 문자열로 데이터를 인코딩 및 수 :
cb.showTextAligned(PdfContentByte.ALIGN_LEFT,"HIDDENDATA_"+ hexencodeddata, 2000f,2000f, 0f);
모든 문자열이 HIDDENDATA_
또 다른 방법은 검색 과정을 읽는 것은 주석
을 사용하는 것입니다
public void addAnnotation(PdfWriter writer,
Document document, Rectangle rect, String text) {
PdfAnnotation annotation = new PdfAnnotation(writer,
new Rectangle(
rect.getRight() + 10, rect.getBottom(),
rect.getRight() + 30, rect.getTop()));
annotation.setTitle("Text annotation");
annotation.put(PdfName.SUBTYPE, PdfName.TEXT);
annotation.put(PdfName.OPEN, PdfBoolean.PDFFALSE);
annotation.put(PdfName.NAME, new PdfName(text));
writer.addAnnotation(annotation);
}
그런 다음이를 사용하여 읽으십시오.이 사용자에게 표시되지 않습니다있는 방법으로 PDF로 embedd 할 수있는 방법이 있나요
http://downloads.snowtide.com/javadoc/PDFTextStream/2.3.2/com/snowtide/pdf/PDFTextStream.html
XML은 매우 복잡한 데이터를 저장할 수 있으며 일반적으로 – gigadot
합니까? – Karlovsky120