PDF JPG PDF XML STL
  Product Family
PDF

Java経由でSTLをPDFに変換する

アドビを必要とせずにSTLをPDFに読み取り、書き込み、エクスポートするためのネイティブJavaライブラリ。

Javaを使用してSTLをPDFに変換する方法

STLをPDFにレンダリングするために、機能が豊富で強力で簡単な Aspose.CAD for JavaAPIを使用します。 Javaプラットフォーム用の変換APIを使用します。最新バージョンは、Mavenから直接ダウンロードできます。次の構成をpom.xmlに追加して、Mavenベースのプロジェクトにインストールします。

リポジトリ


<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://repository.aspose.com/repo/</url>
</repository>

依存

<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-cad</artifactId>
<version>version of aspose-cad API</version>
<classifier>jdk17</classifier>
</dependency>

Javaを介してSTLをPDFに変換する手順

  1. Image.loadメソッドを使用してSTLファイルをロードします
  2. ページの高さと幅でCadRasterizationOptionsのオブジェクトを設定します
  3. PdfOptionsクラスのインスタンスを作成し、そのVectorRasterizationOptionsプロパティを設定します
  4. PdfOptionsの結果のファイルパスとオブジェクトを渡しながら、Image.saveメソッドを呼び出します

変換要件

-MicrosoftWindowsまたはJSP/JSFアプリケーションおよびデスクトップアプリケーション用のJavaランタイム環境と互換性のあるOS。 -Mavenから直接最新バージョンのAspose.CADforJavaを入手します。
 

STLからPDFへのJava変換ソースコード

 

STLをPDFに変換する無料アプリ

Convert STL to PDF right now by visiting our Live Demos website.The live demo has the following benefits

  No need to download Aspose API.
  No need to write any code.
  Just upload your STL file, it will be converted instantly to PDF.
  You will get the download link.