PDF appears empty/blank on MacOS and iOS devices

Posted by: pwattrey on 14 September 2017, 7:16 pm EST

    • Post Options:
    • Link

    Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]Using AR9, and after a recent update to their Apple products, many users and customers are reporting that any PDF we generate appears “blank” and is unable to view or print.

    Same files are viewable on non-Apple products.[/activereports_archive]

  • Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]Hello,

    It looks like there could be a bug in recent Apple’s updates.

    We would like to reproduce this issue at our side. Could you please provide the following information?

    • Several pdf files on which issue is observable
    • How these PDFs are generated? (Code snipped or export settings used with PDF export)
    • What software is used to open & view these PDFs (Adobe Reader, Safari, Chrome, native mail agent)?

    Thanks,

    Sergey

    GrapeCity support team[/activereports_archive]

  • Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]I’ve attached some of the PDFs below. They have the issue when opened in any browser or mail agent in Mac OS or the Safari or mail viewer or iBooks on iOS. Opening in Acrobat seems to work fine.

    These are generated a basic variation of the following code:

            GenerateReport rpt = new GenerateReport(variableID);
            rpt.Run();
            PdfExport pdfExport = new PdfExport();
    
            System.IO.MemoryStream m_stream = new System.IO.MemoryStream();
            pdfExport.Export(rpt.Document, m_stream);
            m_stream.Position = 0;
            HttpContext.Current.Response.ContentType = "application/pdf";
            HttpContext.Current.Response.AddHeader("content-disposition", "attachment; filename=filename.pdf");
            HttpContext.Current.Response.BinaryWrite(m_stream.ToArray());
            HttpContext.Current.Response.End();[/activereports_archive]
    

    2017/01/tis-the-season.pdf

    2017/01/100-year-tree-1.pdf

    2017/01/1-of-3-3.pdf

  • Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]Other PDFs generated through other methods (saved from Word/Illustrator/etc) are opening fine when downloaded from the same application. It just appears to affect PDFs generated through AR.

    It is also of note that this is resolved with MacOS 10.12.2 update, but a the latest version of iOS 10.2 is still affected.

    In any case, if anyone knows why this happened and how it could be avoided, please let me know.[/activereports_archive]

  • Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]I could also see that the pdf files you’ve attached appear blank after an upgrade to iOS 10.2. There seems to be something that broke the Pdf Viewer in this upgrade. Found the following post on the Apple site where others users have also complained about the same issue - https://discussions.apple.com/thread/7788417?start=0&tstart=0.

    Since you’re using AR version 9, I tried this with AR version 11, the latest version, and could see the Pdf displayed fine on iOS 10.2. I’ve attached the pdf for your reference as well. Could you try viewing it on iOS at your end and let me know if it appears fine. [/activereports_archive]

    2017/01/ActiveReports.pdf

  • Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]Yes, the attached PDF opens fine on my iPhone. I guess I better upgrade…unless you guys can roll out a patch ;)[/activereports_archive]

  • Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]AR9 is not in active development so it’ll be beneficial if you upgrade to the latest version (v11) as it contains a lot of new features and enhancements since AR9. You could download v11 from http://activereports.grapecity.com/Download/ActiveReports/[/activereports_archive]

  • Posted 7 September 2018, 5:58 am EST

    I really like the discussion on this topic. Recently I bought a MacBook and I tried to open PDF appears empty/blank. I stucked and I was also facing the problem to Activate iPhone without apple id then I took help through https://www.iphonesupportnumber.com/blog/how-to-activate-iphone-without-apple-id/ they helped me a lot.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels