PdfSaveOptions
Inheritance: java.lang.Object, com.aspose.threed.IOConfig, com.aspose.threed.SaveOptions
public class PdfSaveOptions extends SaveOptions
PDF 내보내기 시 저장 옵션.
생성자
| 생성자 | 설명 |
|---|---|
| PdfSaveOptions() | PdfSaveOptions의 생성자 |
메서드
| 메서드 | 설명 |
|---|---|
| equals(Object arg0) | |
| getAuxiliaryColor() | 3D 콘텐츠를 렌더링할 때 사용되는 보조 색상을 가져옵니다. |
| getBackgroundColor() | PDF 파일의 3D 뷰 배경 색상. |
| getClass() | |
| getEmbedTextures() | 외부 텍스처를 PDF 파일에 포함합니다. 기본값은 false입니다. |
| getEncoding() | 텍스트 기반 파일에 대한 기본 인코딩을 가져옵니다. |
| getExportTextures() | 씬에서 사용된 텍스처를 출력 디렉터리로 복사하려고 시도합니다. |
| getFaceColor() | 3D 콘텐츠를 렌더링할 때 사용되는 면 색상을 가져옵니다. |
| getFileFormat() | 현재 저장/로드 옵션에 지정된 파일 형식을 가져옵니다. |
| getFileName() | 내보내기/가져오기 씬의 파일 이름. |
| getFileSystem() | 로드/저장 중 외부 종속성을 관리하는 방법을 사용자가 처리하도록 허용합니다. |
| getFileSystemFactory() | FileSystem에 대한 팩토리 클래스를 가져옵니다. |
| getFlipCoordinateSystem() | 내보내기 중에 장면의 좌표계를 뒤집는지 가져옵니다. |
| getLightingScheme() | LightingScheme은 3D 아트워크에 적용할 조명을 지정합니다. |
| getLookupPaths() | OBJ와 같은 일부 파일은 외부 파일에 의존하며, 검색 경로를 통해 Aspose.3D가 외부 파일을 찾아 로드할 수 있도록 허용합니다. |
| getRenderMode() | 렌더 모드는 3D 아트워크가 렌더링되는 스타일을 지정합니다. |
| hashCode() | |
| notify() | |
| notifyAll() | |
| setAuxiliaryColor(Vector3 value) | 3D 콘텐츠를 렌더링할 때 사용되는 보조 색상을 설정합니다. |
| setBackgroundColor(Vector3 value) | PDF 파일의 3D 뷰 배경 색상. |
| setEmbedTextures(boolean value) | 외부 텍스처를 PDF 파일에 포함합니다. 기본값은 false입니다. |
| setEncoding(Charset value) | 텍스트 기반 파일에 대한 기본 인코딩을 설정합니다. |
| setExportTextures(boolean value) | 씬에서 사용된 텍스처를 출력 디렉터리로 복사하려고 시도합니다. |
| setFaceColor(Vector3 value) | 3D 콘텐츠를 렌더링할 때 사용되는 면 색상을 설정합니다. |
| setFileName(String value) | 내보내기/가져오기 씬의 파일 이름. |
| setFileSystem(FileSystem value) | 로드/저장 중 외부 종속성을 관리하는 방법을 사용자가 처리하도록 허용합니다. |
| setFileSystemFactory(FileSystemFactory value) | FileSystem에 대한 팩토리 클래스를 설정합니다. |
| setFlipCoordinateSystem(boolean value) | 내보내기 중에 장면의 좌표계를 뒤집도록 설정합니다. |
| setLightingScheme(PdfLightingScheme value) | LightingScheme은 3D 아트워크에 적용할 조명을 지정합니다. |
| setLookupPaths(ArrayList | OBJ와 같은 일부 파일은 외부 파일에 의존하며, 검색 경로를 통해 Aspose.3D가 외부 파일을 찾아 로드할 수 있도록 허용합니다. |
| setRenderMode(PdfRenderMode value) | 렌더 모드는 3D 아트워크가 렌더링되는 스타일을 지정합니다. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
PdfSaveOptions()
public PdfSaveOptions()
PdfSaveOptions의 생성자
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getAuxiliaryColor()
public Vector3 getAuxiliaryColor()
3D 콘텐츠를 렌더링할 때 사용되는 보조 색상을 가져옵니다. 이 색상의 해석은 getRenderMode에 따라 달라집니다.
Returns: Vector3 - the auxiliary color to be used when rendering the 3D content. The interpretation of this color depends on the getRenderMode
getBackgroundColor()
public Vector3 getBackgroundColor()
PDF 파일의 3D 뷰 배경 색상.
Returns: Vector3 - Background color of the 3D view in PDF file.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getEmbedTextures()
public boolean getEmbedTextures()
외부 텍스처를 PDF 파일에 포함합니다. 기본값은 false입니다.
Returns: boolean - 외부 텍스처를 PDF 파일에 포함합니다. 기본값은 false입니다.
getEncoding()
public Charset getEncoding()
텍스트 기반 파일에 대한 기본 인코딩을 가져옵니다. 기본값은 null이며, 이는 가져오기/내보내기 프로그램이 사용할 인코딩을 결정함을 의미합니다.
Returns: java.nio.charset.Charset - 텍스트 기반 파일에 대한 기본 인코딩. 기본값은 null이며, 이는 가져오기/내보내기 프로그램이 사용할 인코딩을 결정함을 의미합니다.
getExportTextures()
public boolean getExportTextures()
씬에서 사용된 텍스처를 출력 디렉터리로 복사하려고 시도합니다.
Returns: boolean - 장면에서 사용된 텍스처를 출력 디렉터리로 복사하려고 시도합니다.
getFaceColor()
public Vector3 getFaceColor()
3D 콘텐츠를 렌더링할 때 사용되는 면 색상을 가져옵니다. 이는 getRenderMode의 값이 Illustration인 경우에만 관련됩니다.
Returns: Vector3 - the face color to be used when rendering the 3D content. This is only relevant only when the getRenderMode has a value of Illustration.
getFileFormat()
public FileFormat getFileFormat()
현재 저장/로드 옵션에 지정된 파일 형식을 가져옵니다.
Returns: FileFormat - the file format that specified in current Save/Load option.
getFileName()
public String getFileName()
내보내기/가져오기 씬의 파일 이름입니다. 선택 사항이지만 OBJ의 재질과 같은 외부 자산을 직렬화할 때 유용합니다.
Returns: java.lang.String - 내보내기/가져오기 씬의 파일 이름입니다. 선택 사항이지만 OBJ의 재질과 같은 외부 자산을 직렬화할 때 유용합니다.
getFileSystem()
public FileSystem getFileSystem()
로드/저장 중 외부 종속성을 관리하는 방법을 사용자가 처리하도록 허용합니다.
Returns: FileSystem - Allow user to handle how to manage the external dependencies during load/save. Example: The default FileSystem is LocalFileSystem, it is not safe in environment like server side, But you can override the file system access by specifying a different implementation. Aspose.3D provides different FileSystem implementation like:
- Memory-based file system
- Directory-based file system
- Dummy file system
- Zip file system
그리고 자체 구현을 사용할 수도 있습니다.
Scene scene = new Scene();
var material = new PhongMaterial();
var boxNode = scene.getRootNode().createChildNode(new Box());
boxNode.setMaterial(material);
var opt = new ObjSaveOptions();
var memFs = new HashMap<string, MemoryStream>();
opt.setFileSystem(FileSystem.createMemoryFileSystem(memFs));
opt.setFileName("output.obj");
try(var output = new ByteArrayOutputStream()) {
scene.save(output, opt);
//The material will be written to variable memFs named output.mtl
var materialInBytes = memFs["output.mtl"].toArray();
}
getFileSystemFactory()
public static FileSystemFactory getFileSystemFactory()
FileSystem에 대한 팩토리 클래스를 가져옵니다. 기본 팩토리는 com.aspose.threed.LocalFileSystem을 생성하는데, 이는 서버 환경에 적합하지 않습니다.
Returns: FileSystemFactory - the factory class for FileSystem. The default factory will create com.aspose.threed.LocalFileSystem which is not suitable for server environment. Example: The default FileSystem in SaveOptions/LoadOptions is directory-based file system, You can override the default implementation by specify it through IOConfig.FileSystemFactory:
IOConfig.setFileSystemFactory(new FileSystemFactory() {
@Override
public FileSystem call() {
return FileSystem.createDummyFileSystem();
}
});
Scene scene = new Scene();
var material = new PhongMaterial();
var boxNode = scene.getRootNode().createChildNode(new Box());
boxNode.setMaterial(material);
//opt.FileSystem would be dummy file system now
var opt = new ObjSaveOptions();
scene.Save("output.obj", opt);
//the material file output.mtl will not be written to any places because we've configured a dummy file system as default implementation.
getFlipCoordinateSystem()
public boolean getFlipCoordinateSystem()
내보내기 중에 장면의 좌표계를 뒤집는지 가져옵니다.
Returns: boolean - 내보내기 중에 장면의 좌표계를 뒤집습니다.
getLightingScheme()
public PdfLightingScheme getLightingScheme()
LightingScheme은 3D 아트워크에 적용할 조명을 지정합니다.
Returns: PdfLightingScheme - LightingScheme specifies the lighting to apply to 3D artwork.
getLookupPaths()
public ArrayList<String> getLookupPaths()
OBJ와 같은 일부 파일은 외부 파일에 의존하며, 검색 경로를 통해 Aspose.3D가 외부 파일을 찾아 로드할 수 있도록 허용합니다.
Returns: java.util.ArrayList<java.lang.String> - OBJ와 같은 일부 파일은 외부 파일에 의존하므로, 조회 경로를 통해 Aspose.3D가 외부 파일을 찾을 수 있게 합니다. Example: 다음 코드는 텍스처를 수동으로 지정하는 방법을 보여주며, 가져오기자가 찾을 수 있도록 합니다.
var opt = new ObjLoadOptions();
//Specify the lookup paths, so the textures can be located.
opt.getLookupPaths().add("textures");
var scene = Scene.fromFile("input.obj", opt);
scene.save("output.glb");
getRenderMode()
public PdfRenderMode getRenderMode()
렌더 모드는 3D 아트워크가 렌더링되는 스타일을 지정합니다.
Returns: PdfRenderMode - Render mode specifies the style in which the 3D artwork is rendered.
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setAuxiliaryColor(Vector3 value)
public void setAuxiliaryColor(Vector3 value)
3D 콘텐츠를 렌더링할 때 사용되는 보조 색상을 설정합니다. 이 색상의 해석은 getRenderMode에 따라 달라집니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| value | Vector3 | 새 값 |
setBackgroundColor(Vector3 value)
public void setBackgroundColor(Vector3 value)
PDF 파일의 3D 뷰 배경 색상.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| value | Vector3 | 새 값 |
setEmbedTextures(boolean value)
public void setEmbedTextures(boolean value)
외부 텍스처를 PDF 파일에 포함합니다. 기본값은 false입니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 값 | boolean | 새 값 |
setEncoding(Charset value)
public void setEncoding(Charset value)
텍스트 기반 파일에 대한 기본 인코딩을 설정합니다. 기본값은 null이며, 이는 가져오기/내보내기 프로그램이 사용할 인코딩을 결정함을 의미합니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 값 | java.nio.charset.Charset | 새 값 |
setExportTextures(boolean value)
public void setExportTextures(boolean value)
씬에서 사용된 텍스처를 출력 디렉터리로 복사하려고 시도합니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 값 | boolean | 새 값 |
setFaceColor(Vector3 value)
public void setFaceColor(Vector3 value)
3D 콘텐츠를 렌더링할 때 사용되는 면 색상을 설정합니다. 이는 getRenderMode의 값이 Illustration인 경우에만 관련됩니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| value | Vector3 | 새 값 |
setFileName(String value)
public void setFileName(String value)
내보내기/가져오기 씬의 파일 이름입니다. 선택 사항이지만 OBJ의 재질과 같은 외부 자산을 직렬화할 때 유용합니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 값 | java.lang.String | 새 값 |
setFileSystem(FileSystem value)
public void setFileSystem(FileSystem value)
로드/저장 중 외부 종속성을 관리하는 방법을 사용자가 처리하도록 허용합니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| value | FileSystem |
- Memory-based file system
- Directory-based file system
- Dummy file system
- Zip file system
그리고 자체 구현을 사용할 수도 있습니다.
Scene scene = new Scene();
var material = new PhongMaterial();
var boxNode = scene.getRootNode().createChildNode(new Box());
boxNode.setMaterial(material);
var opt = new ObjSaveOptions();
var memFs = new HashMap<string, MemoryStream>();
opt.setFileSystem(FileSystem.createMemoryFileSystem(memFs));
opt.setFileName("output.obj");
try(var output = new ByteArrayOutputStream()) {
scene.save(output, opt);
//The material will be written to variable memFs named output.mtl
var materialInBytes = memFs["output.mtl"].toArray();
}
``` |
### setFileSystemFactory(FileSystemFactory value) {#setFileSystemFactory-com.aspose.threed.FileSystemFactory-}
public static void setFileSystemFactory(FileSystemFactory value)
FileSystem에 대한 팩토리 클래스를 설정합니다. 기본 팩토리는 com.aspose.threed.LocalFileSystem을 생성하는데, 이는 서버 환경에 적합하지 않습니다.
**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| | value | [FileSystemFactory](../../com.aspose.threed/filesystemfactory) | 새 값 **Example:** SaveOptions/LoadOptions의 기본 FileSystem은 디렉터리 기반 파일 시스템이며, IOConfig.FileSystemFactory를 통해 지정하여 기본 구현을 재정의할 수 있습니다. |
IOConfig.setFileSystemFactory(new FileSystemFactory() { @Override public FileSystem call() { return FileSystem.createDummyFileSystem(); } });
Scene scene = new Scene();
var material = new PhongMaterial();
var boxNode = scene.getRootNode().createChildNode(new Box());
boxNode.setMaterial(material);
//opt.FileSystem would be dummy file system now
var opt = new ObjSaveOptions();
scene.Save("output.obj", opt);
//the material file output.mtl will not be written to any places because we've configured a dummy file system as default implementation.
### setFlipCoordinateSystem(boolean value) {#setFlipCoordinateSystem-boolean-}
public void setFlipCoordinateSystem(boolean value)
내보내기 중에 장면의 좌표계를 뒤집도록 설정합니다.
**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| 값 | boolean | 새 값 |
### setLightingScheme(PdfLightingScheme value) {#setLightingScheme-com.aspose.threed.PdfLightingScheme-}
public void setLightingScheme(PdfLightingScheme value)
LightingScheme은 3D 아트워크에 적용할 조명을 지정합니다.
**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| value | [PdfLightingScheme](../../com.aspose.threed/pdflightingscheme) | 새 값 |
### setLookupPaths(ArrayList<String> value) {#setLookupPaths-java.util.ArrayList-java.lang.String--}
public void setLookupPaths(ArrayList
OBJ와 같은 일부 파일은 외부 파일에 의존하며, 검색 경로를 통해 Aspose.3D가 외부 파일을 찾아 로드할 수 있도록 허용합니다.
**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| | 값 | java.util.ArrayList<java.lang.String> | 새 값 **Example:** 다음 코드는 텍스처를 수동으로 지정하는 방법을 보여주며, 가져오기자가 찾을 수 있도록 합니다. |
var opt = new ObjLoadOptions(); //Specify the lookup paths, so the textures can be located. opt.getLookupPaths().add(“textures”); var scene = Scene.fromFile(“input.obj”, opt); scene.save(“output.glb”);
### setRenderMode(PdfRenderMode value) {#setRenderMode-com.aspose.threed.PdfRenderMode-}
public void setRenderMode(PdfRenderMode value)
렌더 모드는 3D 아트워크가 렌더링되는 스타일을 지정합니다.
**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| value | [PdfRenderMode](../../com.aspose.threed/pdfrendermode) | 새 값 |
### toString() {#toString--}
public String toString()
**Returns:**
java.lang.String
### wait() {#wait--}
public final void wait()
### wait(long arg0) {#wait-long-}
public final void wait(long arg0)
**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| arg0 | long | |
### wait(long arg0, int arg1) {#wait-long-int-}
public final void wait(long arg0, int arg1)
**Parameters:**
| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| arg0 | long | |
| arg1 | int | |