You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FormattedResults result = pdfUploader.uploadPDF(pdfFile.getAbsolutePath());
332
+
333
+
System.out.println("Upload result: "+ result);
334
+
}
335
+
}
336
+
```
337
+
338
+
</TabItem>
339
+
340
+
</Tabs>
341
+
342
+
### Step 4: Configuration Options
343
+
344
+
| Method | Description |
345
+
|-------|-------------|
346
+
|`.withProjectToken(token)`| Required. Your SmartUI project token. |
347
+
|`.withFetchResult(true)`| Optional. Returns structured test results. |
348
+
|`.withBuildName("v2.1")`| Optional. Assign a custom build name. |
349
+
350
+
### Step 5: Run your tests
351
+
352
+
```bash
353
+
mvn test
354
+
```
355
+
356
+
The SDK method provides programmatic control over PDF uploads and is ideal for integration into existing Java-based test automation frameworks.
357
+
203
358
## Use Cases of Smart PDF Comparison
204
359
205
360
1.**Software Documentation**: In software development, PDF comparison can be utilized to ensure the accuracy and consistency of user manuals, system documentation, and more. It can help in tracking changes made in the document across different software versions or updates.
@@ -213,5 +368,3 @@ This CLI method streamlines PDF uploads and result retrieval, making it ideal fo
213
368
5.**Quality Assurance**: In industries where accuracy is paramount, such as manufacturing or engineering, PDF comparison can be used for quality assurance. Comparing design specs, product blueprints, or operational guidelines can ensure consistency and adherence to quality standards.
214
369
215
370
6.**Archiving and Record Keeping**: For businesses or organizations that need to maintain records over a long period, PDF comparison can help verify the accuracy and integrity of these archives. It can highlight any alterations or modifications made to a document over time.
216
-
217
-
In summary, PDF comparison is a versatile tool that can streamline workflows, improve accuracy, and enhance productivity in many different sectors and use cases.
0 commit comments