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
set LT_ACCESS_KEY="${ YOUR_LAMBDATEST_ACCESS_KEY()}"
256
+
set PROJECT_TOKEN="123456#1234abcd-****-****-****-************"`}
257
+
</CodeBlock>
258
+
</div>
204
259
205
-
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.
2.**Legal and Compliance Checks**: In legal practices and compliance-heavy industries, comparing different versions of contracts, agreements, or regulatory documents is common. With PDF comparison, one can easily spot differences, alterations, or anomalies, ensuring every detail aligns with legal and compliance requirements.
284
+
Upload pre-existing PDFs from your local machine:
208
285
209
-
3.**Design Validation**: For graphic designers, artists, or anyone involved in the creation of visual content, PDF comparison can be used to validate design changes and ensure consistency across different versions of a design.
4.**Proofreading and Editing**: In the publishing industry or any other industry where documents are created and edited, the PDF comparison feature can be invaluable. It can help detect any changes made between different versions of a document, allowing editors and proofreaders to quickly find and correct mistakes.
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.
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.
301
+
SmartUIPdf pdfUploader =newSmartUIPdf(config);
302
+
303
+
// Upload PDF file
304
+
String pdfPath ="path/to/your/document.pdf";
305
+
FormattedResults result = pdfUploader.uploadPDF(pdfPath);
306
+
307
+
System.out.println("Upload result: "+ result);
308
+
}
309
+
}
310
+
```
311
+
312
+
</TabItem>
313
+
314
+
<TabItemvalue="cloud"label="Cloud Mode">
315
+
316
+
Upload PDFs downloaded during LambdaTest cloud test execution:
FormattedResults result = pdfUploader.uploadPDF(pdfFile.getAbsolutePath());
350
+
351
+
System.out.println("Upload result: "+ result);
352
+
}
353
+
}
354
+
```
355
+
356
+
</TabItem>
357
+
358
+
</Tabs>
359
+
360
+
### Step 5: Configuration Options
361
+
362
+
| Method | Description |
363
+
|-------|-------------|
364
+
|`.withProjectToken(token)`| Required. Your SmartUI project token. |
365
+
|`.withFetchResult(true)`| Optional. Returns structured test results. |
366
+
|`.withBuildName("v2.1")`| Optional. Assign a custom build name. |
367
+
368
+
### Step 6: Run your tests
369
+
370
+
```bash
371
+
mvn test
372
+
```
373
+
374
+
The SDK method provides programmatic control over PDF uploads and is ideal for integration into existing Java-based test automation frameworks.
375
+
376
+
## Use Cases of Smart PDF Comparison
216
377
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.
378
+
-**Software Documentation**: Track changes and ensure consistency across document versions.
379
+
-**Legal & Compliance**: Spot differences in contracts or regulatory documents.
380
+
-**Design Validation**: Verify design updates and maintain visual consistency.
381
+
-**Proofreading**: Detect edits between document versions for quick review.
382
+
-**Quality Assurance**: Compare specs or blueprints to uphold standards.
383
+
-**Archiving**: Confirm integrity of records over time by highlighting modifications.
0 commit comments