

NuGet, or UWP itself, is apparently aware of the.

This is a breaking change for iTextSharp, and also for its security dependency, Bounc圜astle, because the assembly is used for digital signatures. For example, in UWP the hashing algorithm classes are located in the namespace, while up till. NET ecosystem, especially with regards to security and cryptography. The UWP framework is an apparently breaking update for the. Var stamper = new PdfStamper(reader, outStream) įorm.GenerateAppearances = true //Added this line, fixed my problemįoreach (KeyValuePair pair in mergeDataItems.MergeFieldValues)Īnd here private static byte flattenPdf(byte pdf)Īny help with getting iTextSharp to work with a windows 10 app or any suggestions on how to generate a PDF document from a template without iTextSharp would be greatly appreciated. Var reader = new PdfReader(buf.ToArray()) Var buf = await FileIO.ReadBufferAsync(file) StorageFile file = await StorageFile.GetFileFromPathAsync(templatePath)

For this we re using the PDFStamper class from the iTextSharp library to do this as shown in the following code: public async Task fillPDF(string templatePath, FormData mergeDataItems) The user also provides the template so the document is formatted the way they want it. We use iTextSharp in a Windows 8 Store app to take a PDF template and then populate the fields with data provided by the user. Where XXX is the platform like 圆4 or x86. Some packages are not compatible ith UAP,Version=v10.0(win10-XXX) Is there a way to get iTextSharp to work with a Windows 10 Universal app? When I try to add iTextSharp version 5.5.8 through the NuGet package manager I get the following errors: iTextSharp 5.5.8 is not compatible with UAP, Version=v10.0(win10-XXX)
