Document
Inheritance: java.lang.Object, com.aspose.note.Node, com.aspose.note.CompositeNodeBase, com.aspose.note.CompositeNode
All Implemented Interfaces: com.aspose.note.INotebookChildNode
public class Document extends CompositeNode<Page> implements INotebookChildNode
Aspose.Note 문서를 나타냅니다.
생성자
| 생성자 | 설명 |
|---|---|
| Document() | 새 인스턴스를 초기화합니다 Document 클래스. |
| Document(String filePath) | 새 인스턴스를 초기화합니다 Document 클래스. |
| Document(String filePath, LoadOptions loadOptions) | 새 인스턴스를 초기화합니다 Document 클래스. |
| Document(InputStream inStream) | 새 인스턴스를 초기화합니다 Document 클래스. |
| Document(InputStream inStream, LoadOptions loadOptions) | 새 인스턴스를 초기화합니다 Document 클래스. |
메서드
Document()
public Document()
Document 클래스의 새 인스턴스를 초기화합니다. 빈 OneNote 문서를 생성합니다.
Document(String filePath)
public Document(String filePath)
Document 클래스의 새 인스턴스를 초기화합니다. 파일에서 기존 OneNote 문서를 엽니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| filePath | java.lang.String | 파일 경로. |
Document(String filePath, LoadOptions loadOptions)
public Document(String filePath, LoadOptions loadOptions)
Document 클래스의 새 인스턴스를 초기화합니다. 파일에서 기존 OneNote 문서를 엽니다. 암호화 비밀번호와 같은 추가 옵션을 지정할 수 있습니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| filePath | java.lang.String | 파일 경로. |
| loadOptions | LoadOptions | 문서를 로드하는 데 사용되는 옵션입니다. null일 수 있습니다. |
Document(InputStream inStream)
public Document(InputStream inStream)
Document 클래스의 새 인스턴스를 초기화합니다. 스트림에서 기존 OneNote 문서를 엽니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| inStream | java.io.InputStream | 스트림입니다. |
Document(InputStream inStream, LoadOptions loadOptions)
public Document(InputStream inStream, LoadOptions loadOptions)
Document 클래스의 새 인스턴스를 초기화합니다. 스트림에서 기존 OneNote 문서를 엽니다. 암호화 비밀번호와 같은 추가 옵션을 지정할 수 있습니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| inStream | java.io.InputStream | 스트림입니다. |
| loadOptions | LoadOptions | 문서를 로드하는 데 사용되는 옵션입니다. null일 수 있습니다. |
accept(DocumentVisitor visitor)
public void accept(DocumentVisitor visitor)
노드의 방문자를 수락합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| visitor | DocumentVisitor | DocumentVisitor에서 파생된 클래스의 객체. |
detectLayoutChanges()
public void detectLayoutChanges()
이전 DetectLayoutChanges 호출 이후 문서 레이아웃에 발생한 모든 변경 사항을 감지합니다. AutomaticLayoutChangesDetectionEnabled가 true로 설정된 경우, 문서 내보내기 시작 시 자동으로 사용됩니다.
getAutomaticLayoutChangesDetectionEnabled()
public boolean getAutomaticLayoutChangesDetectionEnabled()
Aspose.Note가 레이아웃 변경을 자동으로 감지할지 여부를 나타내는 값을 가져옵니다. 기본값은 true입니다.
Returns: boolean
getColor()
public Color getColor()
색상을 가져옵니다.
Returns: java.awt.Color
getCreationTime()
public Date getCreationTime()
생성 시간을 가져옵니다.
Returns: java.util.Date
getDisplayName()
public String getDisplayName()
표시 이름을 가져옵니다.
Returns: java.lang.String
getFileFormat()
public int getFileFormat()
파일 형식을 가져옵니다 (OneNote 2010, OneNote Online).
Returns: int
getGuid()
public UUID getGuid()
객체의 전역 고유 ID를 가져옵니다.
Returns: java.util.UUID
getGuidInternal()
public System.Guid getGuidInternal()
Returns: com.aspose.ms.System.Guid
getPageHistory(Page page)
public PageHistory getPageHistory(Page page)
PageHistory를 가져옵니다. 이 객체는 문서에 표시된 각 페이지에 대한 전체 기록을 포함합니다(가장 오래된 것이 인덱스 0에 있습니다). 현재 페이지 리비전은 PageHistory.current로 접근할 수 있으며, 과거 버전 컬렉션과 별도로 포함됩니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| page | Page | 페이지의 현재 리비전입니다. |
Returns:
PageHistory - The PageHistory.
isEncrypted(InputStream stream, Document[] document)
public static boolean isEncrypted(InputStream stream, Document[] document)
스트림에서 가져온 문서가 암호화되었는지 확인합니다. 확인하려면 문서를 완전히 로드해야 합니다. 따라서 이 메서드는 성능 저하를 초래할 수 있습니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 스트림 | java.io.InputStream | 스트림입니다. |
| document | Document[] | 로드된 문서입니다. |
Returns: boolean - 문서가 암호화된 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.
isEncrypted(InputStream stream, LoadOptions options, Document[] document)
public static boolean isEncrypted(InputStream stream, LoadOptions options, Document[] document)
스트림에서 가져온 문서가 암호화되었는지 확인합니다. 확인하려면 문서를 완전히 로드해야 합니다. 따라서 이 메서드는 성능 저하를 초래할 수 있습니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 스트림 | java.io.InputStream | 스트림입니다. |
| options | LoadOptions | 로드 옵션입니다. |
| document | Document[] | 로드된 문서입니다. |
Returns: boolean - 문서가 암호화된 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.
isEncrypted(InputStream stream, String password, Document[] document)
public static boolean isEncrypted(InputStream stream, String password, Document[] document)
스트림에서 가져온 문서가 암호화되었는지 확인합니다. 확인하려면 문서를 완전히 로드해야 합니다. 따라서 이 메서드는 성능 저하를 초래할 수 있습니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 스트림 | java.io.InputStream | 스트림입니다. |
| password | java.lang.String | 문서를 복호화하기 위한 비밀번호입니다. |
| document | Document[] | 로드된 문서입니다. |
Returns: boolean - 문서가 암호화된 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.
isEncrypted(String filePath, Document[] document)
public static boolean isEncrypted(String filePath, Document[] document)
파일에서 가져온 문서가 암호화되었는지 확인합니다. 확인하려면 문서를 완전히 로드해야 합니다. 따라서 이 메서드는 성능 저하를 초래할 수 있습니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| filePath | java.lang.String | 파일 경로. |
| document | Document[] | 로드된 문서입니다. |
Returns: boolean - 문서가 암호화된 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.
isEncrypted(String filePath, LoadOptions options, Document[] document)
public static boolean isEncrypted(String filePath, LoadOptions options, Document[] document)
파일에서 가져온 문서가 암호화되었는지 확인합니다. 확인하려면 문서를 완전히 로드해야 합니다. 따라서 이 메서드는 성능 저하를 초래할 수 있습니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| filePath | java.lang.String | 파일 경로. |
| options | LoadOptions | 로드 옵션입니다. |
| document | Document[] | 로드된 문서입니다. |
Returns: boolean - 문서가 암호화된 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.
isEncrypted(String filePath, String password, Document[] document)
public static boolean isEncrypted(String filePath, String password, Document[] document)
파일에서 가져온 문서가 암호화되었는지 확인합니다. 확인하려면 문서를 완전히 로드해야 합니다. 따라서 이 메서드는 성능 저하를 초래할 수 있습니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| filePath | java.lang.String | 파일 경로. |
| password | java.lang.String | 문서를 복호화하기 위한 비밀번호입니다. |
| document | Document[] | 로드된 문서입니다. |
Returns: boolean - 문서가 암호화된 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.
print()
public void print()
기본 프린터를 사용하여 문서를 인쇄합니다.
print(PrintOptions options)
public void print(PrintOptions options)
기본 프린터를 사용하여 문서를 인쇄합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| options | PrintOptions | 문서를 인쇄하는 데 사용되는 옵션입니다. null일 수 있습니다. |
print(String printerName)
public void print(String printerName)
기본 프린터를 사용하여 문서를 인쇄합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| printerName | java.lang.String |
print(AttributeSet printSettings)
public void print(AttributeSet printSettings)
기본 프린터를 사용하여 문서를 인쇄합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| printSettings | javax.print.attribute.AttributeSet |
save(OutputStream stream)
public void save(OutputStream stream)
OneNote 문서를 스트림에 저장합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 스트림 | java.io.OutputStream | 문서가 저장될 System.iO.stream입니다. |
save(OutputStream stream, SaveOptions options)
public void save(OutputStream stream, SaveOptions options)
지정된 저장 옵션을 사용하여 OneNote 문서를 스트림에 저장합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 스트림 | java.io.OutputStream | 문서가 저장될 System.iO.stream입니다. |
| options | SaveOptions | 문서가 스트림에 저장되는 방식을 지정하는 옵션입니다. |
save(OutputStream stream, int format)
public void save(OutputStream stream, int format)
지정된 형식으로 OneNote 문서를 스트림에 저장합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 스트림 | java.io.OutputStream | 문서가 저장될 System.iO.stream입니다. |
| format | int | 문서를 저장할 형식. |
save(String fileName)
public void save(String fileName)
OneNote 문서를 파일에 저장합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 파일이름 | java.lang.String | 파일의 전체 이름입니다. 지정된 전체 이름을 가진 파일이 이미 존재하면 기존 파일이 덮어쓰기됩니다. |
save(String fileName, SaveOptions options)
public void save(String fileName, SaveOptions options)
지정된 저장 옵션을 사용하여 OneNote 문서를 파일에 저장합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 파일이름 | java.lang.String | 파일의 전체 이름입니다. 지정된 전체 이름을 가진 파일이 이미 존재하면 기존 파일이 덮어쓰기됩니다. |
| options | SaveOptions | 문서가 파일에 저장되는 옵션을 지정합니다. |
save(String fileName, int format)
public void save(String fileName, int format)
지정된 형식으로 OneNote 문서를 파일에 저장합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 파일이름 | java.lang.String | 파일의 전체 이름입니다. 지정된 전체 이름을 가진 파일이 이미 존재하면 기존 파일이 덮어쓰기됩니다. |
| format | int | 문서를 저장할 형식. |
setAutomaticLayoutChangesDetectionEnabled(boolean value)
public void setAutomaticLayoutChangesDetectionEnabled(boolean value)
Aspose.Note가 레이아웃 변경을 자동으로 감지할지 여부를 나타내는 값을 설정합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 값 | boolean | 새 값입니다. null일 수 있습니다. |
setColor(Color value)
public void setColor(Color value)
색상을 설정합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 값 | java.awt.Color | Color의 값입니다. |
setCreationTime(Date value)
public void setCreationTime(Date value)
생성 시간을 설정합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 값 | java.util.Date | DateTime의 값입니다. |
setDisplayName(String value)
public void setDisplayName(String value)
표시 이름을 설정합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| 값 | java.lang.String | DateTime의 값입니다. |