Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #6616 Reply

    Pedro Almeida


    I’m experimenting with PlugPDF for a commercial product and I’m having a problem: when I open a PDF with it it changes the device brightness. Is there any way I can prevent that?

    Best regards,

    #6618 Reply

    Dr. Plug

    Hi Pedro,

    PlugPDF SDK save the last value for brightness. If you don’t want to use saved value, you set value after creating PlugPDFDocumentViewController such as below.

    PlugPDFDocumentViewController *viewController = nil;
    @try {
    NSString *name = [path lastPathComponent];
    viewController = [PlugPDFDocumentViewController initWithPath: path
    password: nil
    title: name];
    @catch (NSException *exception) {
    NSLog(@”%@ %@”,, exception.description);

    if (viewController) {
    [viewController setDisplayBrightness: [[UIScreen mainScreen ]brightness] * 100] ;


Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: iOS brightness changes when opening PDFView
Your information: