{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/monotouch-samples/issues/79","repository_url":"https://api.github.com/repos/xamarin/monotouch-samples","labels_url":"https://api.github.com/repos/xamarin/monotouch-samples/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/monotouch-samples/issues/79/comments","events_url":"https://api.github.com/repos/xamarin/monotouch-samples/issues/79/events","html_url":"https://github.com/xamarin/monotouch-samples/issues/79","id":148369834,"number":79,"title":"Certain types of pdfs are not visible .","user":{"login":"zerocold96","id":7060950,"avatar_url":"https://avatars.githubusercontent.com/u/7060950?v=3","gravatar_id":"","url":"https://api.github.com/users/zerocold96","html_url":"https://github.com/zerocold96","followers_url":"https://api.github.com/users/zerocold96/followers","following_url":"https://api.github.com/users/zerocold96/following{/other_user}","gists_url":"https://api.github.com/users/zerocold96/gists{/gist_id}","starred_url":"https://api.github.com/users/zerocold96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerocold96/subscriptions","organizations_url":"https://api.github.com/users/zerocold96/orgs","repos_url":"https://api.github.com/users/zerocold96/repos","events_url":"https://api.github.com/users/zerocold96/events{/privacy}","received_events_url":"https://api.github.com/users/zerocold96/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"olegoid","id":1524073,"avatar_url":"https://avatars.githubusercontent.com/u/1524073?v=3","gravatar_id":"","url":"https://api.github.com/users/olegoid","html_url":"https://github.com/olegoid","followers_url":"https://api.github.com/users/olegoid/followers","following_url":"https://api.github.com/users/olegoid/following{/other_user}","gists_url":"https://api.github.com/users/olegoid/gists{/gist_id}","starred_url":"https://api.github.com/users/olegoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegoid/subscriptions","organizations_url":"https://api.github.com/users/olegoid/orgs","repos_url":"https://api.github.com/users/olegoid/repos","events_url":"https://api.github.com/users/olegoid/events{/privacy}","received_events_url":"https://api.github.com/users/olegoid/received_events","type":"User","site_admin":false},"assignees":[{"login":"olegoid","id":1524073,"avatar_url":"https://avatars.githubusercontent.com/u/1524073?v=3","gravatar_id":"","url":"https://api.github.com/users/olegoid","html_url":"https://github.com/olegoid","followers_url":"https://api.github.com/users/olegoid/followers","following_url":"https://api.github.com/users/olegoid/following{/other_user}","gists_url":"https://api.github.com/users/olegoid/gists{/gist_id}","starred_url":"https://api.github.com/users/olegoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegoid/subscriptions","organizations_url":"https://api.github.com/users/olegoid/orgs","repos_url":"https://api.github.com/users/olegoid/repos","events_url":"https://api.github.com/users/olegoid/events{/privacy}","received_events_url":"https://api.github.com/users/olegoid/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-04-14T13:57:59Z","updated_at":"2016-06-29T07:30:28Z","closed_at":null,"body":"Using the Zoomable pdf viewer worked great at first, but then I noticed a small subsect of pdf that can't be display. I Looked around the code and the one thing I noticed is that CGPDFDocument is reading the file just fine, but when it is time to create the subsampling image the view shows a white page.\r\n\r\nI exported the pdfs to pdf on my mac and now the file is bigger and they can be view on the device. Is it a compression issues? or is the formatting for the original pdf different?\r\n\r\n```\r\n// make the initial view 'fit to width'\r\n\t\t\tCGRect pageRect = page.GetBoxRect (CGPDFBox.Media);\r\n\t\t\t//scale = Frame.Width / pageRect.Width;\r\n\t\t\tscale = Frame.Width / pageRect.Width;\r\n\t\t\tpageRect.Size = new CGSize (pageRect.Width * scale , pageRect.Height * scale);\r\n\r\n\t\t\t// create bitmap version of the PDF page, to be used (scaled)\r\n\t\t\t// when no other (tiled) view are visible\r\n\t\t\tUIGraphics.BeginImageContext (pageRect.Size);\r\n\t\t\tCGContext context = UIGraphics.GetCurrentContext ();\r\n\t\t\t//CGColorSpace colorSpace = CGColorSpace.CreateDeviceRGB();\r\n\t\t\t//CGBitmapContext context = new CGBitmapContext(null, (int)pageRect.Size.Width, (int)pageRect.Size.Height, 8, (int)pageRect.Size.Width * 4, colorSpace , CGImageAlphaInfo.PremultipliedLast);\r\n\r\n\t\t\t// fill with white background\r\n\t\t\tcontext.SetFillColor (1.0f, 1.0f, 1.0f, 1.0f);\r\n\t\t\tcontext.FillRect (pageRect);\r\n\t\t\tcontext.SaveState ();\r\n```"},"comment":{"url":"https://api.github.com/repos/xamarin/monotouch-samples/issues/comments/229278436","html_url":"https://github.com/xamarin/monotouch-samples/issues/79#issuecomment-229278436","issue_url":"https://api.github.com/repos/xamarin/monotouch-samples/issues/79","id":229278436,"user":{"login":"Arpit360","id":9973158,"avatar_url":"https://avatars.githubusercontent.com/u/9973158?v=3","gravatar_id":"","url":"https://api.github.com/users/Arpit360","html_url":"https://github.com/Arpit360","followers_url":"https://api.github.com/users/Arpit360/followers","following_url":"https://api.github.com/users/Arpit360/following{/other_user}","gists_url":"https://api.github.com/users/Arpit360/gists{/gist_id}","starred_url":"https://api.github.com/users/Arpit360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arpit360/subscriptions","organizations_url":"https://api.github.com/users/Arpit360/orgs","repos_url":"https://api.github.com/users/Arpit360/repos","events_url":"https://api.github.com/users/Arpit360/events{/privacy}","received_events_url":"https://api.github.com/users/Arpit360/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T07:30:28Z","updated_at":"2016-06-29T07:30:28Z","body":"I have reported bug in bugzilla for this issue\r\nhttps://bugzilla.xamarin.com/show_bug.cgi?id=42229"}}
{"actor":{"display_login":"Arpit360"}}