Load PDF as read only

How do I load/use the PDF as read-only when converting to an image? I need to open the PDF in Acrobat simultaneously.

using GemBox.Pdf;

class Program
{
    static void Main()
    {
        // If using the Professional version, put your serial key below.
        ComponentInfo.SetLicense("FREE-LIMITED-KEY");

        // Load a PDF document.
        using (var document = PdfDocument.Load("Input.pdf"))
        {
            // Create image save options.
            var imageOptions = new ImageSaveOptions(ImageSaveFormat.Jpeg)
            {
                PageNumber = 0, // Select the first PDF page.
                Width = 1240 // Set the image width and keep the aspect ratio.
            };

            // Save a PDF document to a JPEG file.
            document.Save("Output.jpg", imageOptions);
        }
    }
}

Hi Jason,

Try this:

var loadOptions = new PdfLoadOptions() { ReadOnly = true };
using (var document = PdfDocument.Load("Input.pdf", loadOptions))
{
    // ...
}

Does this solve your issue?

Regards,
Mario