> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/uwp/portfolios/create.md).

# Create a PDF portfolio (package) in UWP

Learn how to create a PDF portfolio with multiple file types using our full code sample. Explore how to create, extract, and manipulate PDF Packages efficiently. The Apryse uwp SDK streamlines secure

To create a PDF portfolio containing multiple file types.

{% tabs %}
{% tab title="C#" %}
{% code lineNumbers="true" %}

```csharp
void AddPackage(PDFDoc doc, string file, string desc)
{
	NameTree files = NameTree.Create(doc, "EmbeddedFiles");
	FileSpec fs = FileSpec.Create(doc, file, true);
	byte[] file1_name = System.Text.Encoding.UTF8.GetBytes(file);
	files.Put(file1_name, fs.GetSDFObj());
	fs.GetSDFObj().PutText("Desc", desc);

	Obj collection = doc.GetRoot().FindObj("Collection");
	if (collection == null) collection = doc.GetRoot().PutDict("Collection");

	// Manipulate any entry in the Collection dictionary.
	// For example, the following line sets the tile mode for initial view mode
	// Please refer to section '2.3.5 Collections' in PDF Reference for details.
	collection.PutName("View", "T");
}
PDFDoc doc = new PDFDoc();
AddPackage(doc, filename, "PDF");
AddPackage(doc, imagename, "Image");
```

{% endcode %}
{% endtab %}
{% endtabs %}

[PDF packages (portfolios)](/uwp/get-started/samples.md#pdfpackage) Full code sample which illustrates how to create, extract, and manipulate PDF Packages (also known as PDF Portfolios).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.apryse.com/uwp/portfolios/create.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
