I have G-code that produces PDF images of labeled charts one chart per day. I want to combine seven daily charts into a weekly sheet that will be printed from Acrobat Reader.
As near as I can tell there is no straightforward code in the Google scripting world to combine multiple pdfs into a single one. I thought things would be easier if I switched to VFP to do the combining but have not found suitable code there either.
Another approach would be to manage printing the PDFs by specifying where on the page each file should print. I suspect this would be possible using HTML but have no experience with that.
Thanks in advance for any suggestions! Joe
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
Hi Joe,
I have G-code that produces PDF images of labeled charts one chart per day. I want to combine seven daily charts into a weekly sheet that will be printed from Acrobat Reader.
We used different solutions for different projects...
One project uses pdfTK (https://www.pdflabs.com/tools/pdftk-server/ https://www.pdflabs.com/tools/pdftk-server/) which is a free tool to merge multiple PDF documents into one. If you merge seven single page PDF files you would end up with a single PDF file that has seven pages. It does not merge content of multiple documents into a single page, if that is what you need.
In another project our source files were images. We converted them to a single HTML file by embedding the images as Data Urls (https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs). This approach does allow arranging images on a page, but you have to do this in HTML. As this is an HTML document, you would either use the browser to print them, or open the file in Word.
A third approach, again based on images, was creating Word documents with an image on each side and then saving it as a PDF document. We used GemBox.Document for this (https://www.gemboxsoftware.com/document https://www.gemboxsoftware.com/document) but it would work with a not too old version of WinWord or many of the other libraries. Because this is a .NET library, I used wwDotNetBridge to call it.