This sounds like a much more complicated solution just to accomplish what you mentioned in the title of the post, because it involves dealing with Google’s API. Sorry but I don’t think we could do that.
Could you tell me a bit more about your use case? I understand you want to add page margins for aesthetic reasons, and I think that could be achieved with some PDF editors. What about page breaks? How are you using them? Do you want to print onto paper or just into PDF?