I'm trying to print out a Sage Worksheet that I created recently. However, when trying to print out the pdf Sage generates for me, the graphs I created take up either a whole page or are too big to fit on a whole page. Is there any way I can resize these graphs to fit no more than half a page?
I've tried the command G.show(figsize=2), which works, but only after compiling on the Sage worksheet.
Any help in this matter is greatly appreciated. Thanks!
I suggest putting (perhaps in a hidden cell)
sage.plot.graphics.Graphics.SHOW_OPTIONS['figsize']=2
at the top (or bottom) of your worksheet. This should globally change these, once you have evaluated your cells again.
However, you are right that the size you create is the size you get. I suppose that is a feature in some sense...
Related
I often spend hours bringing pictures into PowerPoint templates one by one and trying to customize the way a presentation whose behavior is very different.
If there were a way to randomly select an image from all of the images on a different slide or excel file or folder and have them appear based on the probable weight assigned to them, it would be a huge time saver.
I've seen various methods of having a random object appear, and some of them don't even require a macro, but importing the images is always very time consuming. If anyone knows of a better/faster way to link a folder with a group of images or something along these lines to an object that is randomized, please help.
Importantly, showing a random image from a batch group without customizing the way each image is brought in is the hard part. Adding weight helps, but it could be done by duplicating important images repeatedly.
i am working on a project where i have to scan a lot of pages (application form) where each form is attached (pasted with glue) with application picture. So, i need to get the picture (crop only the picture) from that scanned page/document.
I have attached a sample..
i can set the exact location on the document/image but few issues with that:
1. attached/pasted image is not on same size..
2. it may be not be pasted on same place on each form
3. it may be rotated slightly..
so, i am looking for some automated process that can take out the picture correctly regardless the above issues. i assume face detection may be the tool, but i am not sure about that..
so, it would be great if any one can help me with that?
thanks in advance
any help will be highly appreciated...
My goal is to print multiple pages/ slides of a pdf document (a handout of a power point presentation) on one sheet, so that one sheet contains two pages/slides.
Additionally there must be a space between the slides of one sheet.
The page should look like:
start of the sheet sheet,
page 1 (slide of the powerpoint),
space of about 5cm,
page 2 (slide of the powerpoint) ,
space of about 5cm,
end of the sheet sheet
A further option is that the space between the slides contains an scale paper layout.
Exist there any software which can do that?
Thank you for your help
The free and open source tool pdftools can achieve this.
You can put more slides in a single output pdf page using the --nup option, ad adjust the space between the slides using the --delta option.
There are several pretty print software utilities out there that have options on saving paper by combining multiple pages onto one sheet.
Your easiest solution however would be to use the operating systems print dialog, which generally has an option for printing multiple pages onto one. To create the space needed you can set scaling of the page to 90% or less if you feel you need a greater border. I just checked this on my MacBook and confirmed this.
What I am ultimately trying to do is to create a grid of images for print that are minor variations of the same thing (different text is all). Looking through online resources I was able to create a script that changes the text and exports all of the images necessary (several hundred). What I am trying to do now is to import all of these images into a new photoshop document and lay them all out in a grid and I can't seem to find any examples of this.
Can anyone point me in the right direction to place a file at a specific coordinate (I'm using CS5 and have the design suite so if there is a way in illustrator to do this quickly...)?
Also, I'm open to other ideas on how to do this (even other programs) easily. It's for labels so the positioning on the sheet has to be pretty precise...
The art layer object has a translate() method that takes delta x and y params. You'll need to open each image, copy it to the target document, get its current location (using artLayer.bounds) and do the math to find the deltas to position it where you want it. Your deltas can be in pixels so you'll get plenty of precision.
Check out your 'JavaScript Scripting Reference' pdf in your Adobe install directory for more details.
Ok I'm marking Anna's response as the answer because though I didn't fully test it, it seems like it should work and answers the original question with jsx. However I'm also leaving my final solution in case anyone else runs across this with the same issue and may prefer this method as well.
What I ended up doing instead is using InDesign. I figured out that it has a grid option that lets you import a number of files and place them all in an equal grid in a single command. This is almost exactly what I was looking for, except that it leaves a small border/margin in between the columns and grids and mine were designed to meet exactly.
I couldn't figure out how to make it not have the border (I have very little experience with InDesign, it may be possible). However I was able to select all my images and scale them uniformly to be the correct size, then I just selected each column and dragged it over to snap to the adjacent column and the same with rows...
I am currently using an excel macro (although I will switch to VB.NET if necessary) to loop through all of the text in a PDF and populate an array with certain portions of the text in the PDF (via the Adobe SDK and getPageNthWord). This part is working just fine, but now what I want goes a step further.
There are certain portions of the PDF where just grabbing the text isn't giving the full picture, and I'd like to see what more I can get. This is exactly the screenshot or snippet I am trying to get:
So, I know that I could use getPageNthWordQuads to find the coordinates for the words "Compliance Warning" and I could figure out a way to find the bottom right of the screen as well, but my problem starts there. After I get those coordinates what would I do with them? Can I zoom in the PDF to only see that portion and then take a screenshot? I already have the code for a screenshot of the activewindow, but I don't know how to scroll or zoom on a PDF.
Any help would be greatly appreciated. A fresh approach would be welcome as well. Thanks!
There are probably a number of approaches that would work - I don't know enough about your environment / constraints to know for sure which would work best. I'm assuming you are talking to Acrobat through OLE here.
1) You can open a window, get its AVPageView and ask it to zoom and move to where you want it to do your thing.
2) You can open a PDF document in one of your own windows using OpenInWindowEx and then grab the contents of that window (the advantage being that this window could be off screen).
3) You can use the DrawEx method (in AcroExch.PDPage) to render a specific portion of a page into your own window and then process that.