This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script to enable direct writes for USB drives in Linux Mint | |
| # This uses udisks2 configuration instead of udev rules | |
| echo "==========================================" | |
| echo "USB Direct Write Setup Script (v2)" | |
| echo "==========================================" | |
| echo "" | |
| echo "This script will configure udisks2 to write directly to USB drives" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private List<byte[]> SplitPDFIntoByteArrays(byte[] pdfByteArray) | |
| { | |
| var pageByteArrays = new List<byte[]>(); | |
| using (var pdfStream = new System.IO.MemoryStream(pdfByteArray)) | |
| { | |
| var pdfDocument = PdfReader.Open(pdfStream, PdfDocumentOpenMode.Import); | |
| for (var pageNum = 0; pageNum < pdfDocument.PageCount; pageNum++) | |
| { |