<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Assignables",
  "identifier" : "/documentation/Assignables/AssignableDocument/init(pdfURL:id:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Assignables"
    ],
    "preciseIdentifier" : "s:11Assignables18AssignableDocumentV6pdfURL2idAC10Foundation0E0V_SSSgtKcfc"
  },
  "title" : "init(pdfURL:id:)"
}
-->

# init(pdfURL:id:)

Initializes a new assessment document that is based on the
PDF located at the provided URL.
If the file located at the URL provided cannot be accessed, this initializer throws.

```
init(pdfURL: URL, id: String? = nil) throws
```

## Parameters

`pdfURL`

A URL to the PDF document that
is the basis of this assessment document.

`id`

An optional ID to use for this document.
if one is not provided, a random UUID string will be used.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)