{"action":"created","issue":{"url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/29","labels_url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/29/comments","events_url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/29/events","html_url":"https://github.com/galkahana/PDF-Writer/issues/29","id":106185157,"number":29,"title":"Question :Resize PDF with many different sizes, is this possible?","user":{"login":"vegarringdal","id":2901416,"avatar_url":"https://avatars.githubusercontent.com/u/2901416?v=3","gravatar_id":"","url":"https://api.github.com/users/vegarringdal","html_url":"https://github.com/vegarringdal","followers_url":"https://api.github.com/users/vegarringdal/followers","following_url":"https://api.github.com/users/vegarringdal/following{/other_user}","gists_url":"https://api.github.com/users/vegarringdal/gists{/gist_id}","starred_url":"https://api.github.com/users/vegarringdal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vegarringdal/subscriptions","organizations_url":"https://api.github.com/users/vegarringdal/orgs","repos_url":"https://api.github.com/users/vegarringdal/repos","events_url":"https://api.github.com/users/vegarringdal/events{/privacy}","received_events_url":"https://api.github.com/users/vegarringdal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-12T21:10:44Z","updated_at":"2015-09-15T10:07:19Z","closed_at":null,"body":"Is it possible to read a PDF file containing pages of different sizes and set them all to A4 size without loosing markups etc?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/comments/140343861","html_url":"https://github.com/galkahana/PDF-Writer/issues/29#issuecomment-140343861","issue_url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/29","id":140343861,"user":{"login":"galkahana","id":271847,"avatar_url":"https://avatars.githubusercontent.com/u/271847?v=3","gravatar_id":"","url":"https://api.github.com/users/galkahana","html_url":"https://github.com/galkahana","followers_url":"https://api.github.com/users/galkahana/followers","following_url":"https://api.github.com/users/galkahana/following{/other_user}","gists_url":"https://api.github.com/users/galkahana/gists{/gist_id}","starred_url":"https://api.github.com/users/galkahana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galkahana/subscriptions","organizations_url":"https://api.github.com/users/galkahana/orgs","repos_url":"https://api.github.com/users/galkahana/repos","events_url":"https://api.github.com/users/galkahana/events{/privacy}","received_events_url":"https://api.github.com/users/galkahana/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T10:07:19Z","updated_at":"2015-09-15T10:07:19Z","body":"the markups that you added are annotations. the default method copies only the contents streams and media boxes. you can use a hook to copy also the annotations, i wrote about it here:\r\nhttp://pdfhummus.com/post/45501619928/copying-pages-with-comments\r\n\r\nin your case use MergePageContent instead of AppendPDFPageFromPDF, cause you want to set the page box, but the principal of hooking to the final page write is the same.\r\n\r\nstill...the method of modification should be significantly simpler and safer, taking care of all features of a page, as well as global PDF level features, as you are just modifying the existing PDF.\r\n\r\nGal."}}