public class SoToPDFAction extends SoToU3DAction
SoToU3DAction. U3D files can be used to import 3D models inside PDF files by advanced PDF editors.
Limitations
SoToU3DAction. Please read these carefully.
Use case
// setup the root scene graph to export SoSeparator root = new SoSeparator(); ... SoToPDFAction pdfAction = new SoToPDFAction(); boolean result = pdfAction.openFile( "output.pdf" ); if ( !result ) { // error management } pdfAction.setTitle( "Scene Name" ); pdfAction.setText( "Some text describing the exported scene." ); pdfAction.apply( root ); result = pdfAction.closeFile(); if ( !result ) { // error management }
Warning
SoToU3DAction.
See also:
SoCallbackAction.Material, SoCallbackAction.Responses, SoCallbackAction.TextureImageSoAction.AppliedCodes, SoAction.DistribModes, SoAction.PathCodes, SoAction.PathIndicesInventor.ConstructorCommandABORT, CONTINUE, PRUNEALL, BELOW_PATH, CLUSTER_ONLY, IN_PATH, LOCAL_ONLY, NO_PATH, NODE, OFF_PATH, PATH, PATH_LISTVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoToPDFAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
closeFile()
finalize export to the U3D output file.
|
static void |
enableElement(java.lang.Class<? extends Inventor> t,
int stkIndex) |
boolean |
openFile(java.lang.String filename)
Set the PDF output file.
|
void |
setLandscape(boolean enable)
[Optional] Changes the page orientation from portrait to landscape.
|
void |
setPassword(java.lang.String writePass)
Calls setPassword(writePass, "").
|
void |
setPassword(java.lang.String writePass,
java.lang.String readPass)
[Optional] Set passwords to lock write & read access to the PDF file contents.
|
void |
setText(java.lang.String text)
[Optional] Add a text block into the output PDF file.
|
void |
setTitle(java.lang.String title)
[Optional] Set a title into the output PDF file.
|
areDraggersExported, forcePolygonalText3, isPolygonalText3Forced, setExportDraggersaddLineSegmentCallback, addPointCallback, addPostCallback, addPostTailCallback, addPreCallback, addPreTailCallback, addTriangleCallback, getComplexity, getComplexityType, getCoordinate3, getCoordinate4, getCreaseAngle, getCurrentResponse, getDecimationPercentage, getDecimationType, getDrawStyle, getFaceType, getFocalDistance, getFontName, getFontRenderStyle, getFontSize, getLightAttenuation, getLightModel, getLinePattern, getLinePatternScaleFactor, getLineWidth, getMaterial, getMaterial, getMaterialBinding, getModelMatrix, getNormal, getNormalBinding, getNumCoordinates, getNumNormals, getNumProfileCoordinates, getNumTextureCoordinates, getPickStyle, getPointSize, getProfile, getProfileCoordinate2, getProfileCoordinate3, getProjectionMatrix, getShapeType, getSwitch, getTextureBlendColor, getTextureCoordinate2, getTextureCoordinate4, getTextureCoordinateBinding, getTextureFileName, getTextureImage, getTextureMatrix, getTextureModel, getTextureTransformNode, getTextureWrapS, getTextureWrapT, getTransparencyType, getUnits, getVertexOrdering, getViewingMatrix, getViewVolume, invokeLineSegmentCallbacks, invokePointCallbacks, invokePostCallbacks, invokePreCallbacks, invokeTriangleCallbacks, isCallbackAll, setCallbackAll, shouldGeneratePrimitivesapply, apply, clearApplyResult, forwardTraversal, getContinueActionInBranchFlag, getCurPath, getNodeAppliedTo, getOriginalPathListAppliedTo, getPathAppliedTo, getPathCode, getPathListAppliedTo, getPipeId, getSceneManager, getState, getWhatAppliedTo, hasTerminated, invalidateState, isBeingApplied, isLastPathListAppliedTo, isUsingAlternateRep, nullAction, postDelayedTraversal, preDelayedTraversal, resetContinueActionInBranchFlag, setPipeId, setSceneManager, setUpState, stopActionInBranch, traverse, useAlternateRepdispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic void setPassword(java.lang.String writePass)
public void setTitle(java.lang.String title)
public boolean closeFile()
closeFile in class SoToU3DActionpublic void setPassword(java.lang.String writePass,
java.lang.String readPass)
public void setText(java.lang.String text)
public static void enableElement(java.lang.Class<? extends Inventor> t, int stkIndex)
public boolean openFile(java.lang.String filename)
openFile in class SoToU3DActionpublic void setLandscape(boolean enable)
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com