How Tos
The samples and documentation should get you quickly up and running with PDF Accessibility Auto-Tag capabilities in the PDFServices SDK including:
- Improving the accessibility of PDFs
For code examples illustrating other PDF actions including those below, see the PDFServices SDK :
- Creating a PDF from multiple formats, including HTML, Microsoft Office documents, and text files
- Exporting a PDF to other formats or an image
- Combining entire PDFs or specified page ranges
- Using OCR to make a PDF file searchable with a custom locale
- Compress PDFs with compression level and Linearize PDFs
- Protect PDFs with password(s) and Remove password protection from PDFs
- Common page operations, including inserting, replacing, deleting, reordering, and rotating
- Splitting PDFs into multiple files
Custom timeout configuration
The APIs use inferred timeout properties and provide defaults. However, the SDK supports custom timeouts for the API calls. You can tailor the timeout settings for your environment and network speed. In addition to the details below, you can refer to working code samples:
Java timeout configuration
Available properties:
- connectTimeout: Default: 2000. The maximum allowed time in milliseconds for creating an initial HTTPS connection.
- socketTimeout: Default: 10000. The maximum allowed time in milliseconds between two successive HTTP response packets.
Override the timeout properties via a custom ClientConfig
class:
Copied to your clipboardClientConfig clientConfig = ClientConfig.builder().withConnectTimeout(3000).withSocketTimeout(20000).build();
.NET timeout configuration
Available properties:
- timeout: Default: 400000. The maximum allowed time in milliseconds for establishing a connection, sending a request, and getting a response.
Override the timeout properties via a custom ClientConfig
class:
Copied to your clipboardClientConfig clientConfig = ClientConfig.ConfigBuilder().WithTimeout(500000).Build();
Node.js timeout configuration
Available properties:
- timeout: Default: 10000. The maximum allowed time in milliseconds before the request times out. If the request
takes longer than
timeout
, the request will be aborted.
Override the timeout properties via a custom ClientConfig
class:
Copied to your clipboardconst clientConfig = new ClientConfig({timeout: 15000})
Python timeout configuration
Available properties:
- connectTimeout: Default: 4000. The number of milliseconds Requests will wait for the client to establish a connection to Server.
- readTimeout: Default: 10000. The number of milliseconds the client will wait for the server to send a response.
Override the timeout properties via a custom ClientConfig
class:
Copied to your clipboardclient_config = ClientConfig(connect_timeout=4000,read_timeout=10000)