Posted: Wed Nov 15, 2006 12:48 pm Post subject: <moved> Exporting to cropped PDFs
Simple equation editing is one of the things that OO does that few other free programs out there do. Thanks!
However, I would like to export selected equations from OO documents to individual PDFs. I can then use them in other applications that render embedded PDFs (specifically Notebook, from Circus Ponies).
Unfortunately, the PDFs that appear when I export selected regions are full page pdfs, not cropped to the size of the selection. I don't know if this is intentional, unconsidered, unavoidable given underlying Mac libraries, or a bug. (I'm using NeoOffice 2.0 Aqua Beta 3 Patch 7).
I would like to loose the excess white space. I can generate such pdfs by cropping the full page OO pdf in image processing programs like Graphic Converter, but they convert everything to an image-based pdf. I assume they work by converting the pdf to an image, and then back to a pdf. Although the pdf they produce is appropriately bounded and not a full size page, I want to preserve the pdf as fully scalable with embedded font information and not convert them to images or image-based pdfs.
In summary, printing a "less than one page selection" to pdf should result in a cropped pdf. This seems a more general product than a full-page one. I can't think of any way that a cropped pdf would fail to work as well as full page one, and as above, there are certainly ways that a full page one is worse than a cropped one. _________________ Stuart
Treat your application like Mr. Potato-Head and things go bad fast.
I am afraid I can't think of a quick solution. PDF was originally meant as a printing format anyway. Perhaps you could define a very small page size without a margin and print it to that?
Alternatively, you could see if the selection tool in Adobe Acrobat results in clipboard copies in PDF or in image format (hopefully the former, but I am pessimistic). The last option I have is to look in your Notebook application for a crop function. NeoOffice and M$ Word have an option to crop an image in a document without altering the original.
Best wishes,
Oscar _________________ "What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
If you're using a PPC mac, you could install something like QuickImageCM - then once you've saved your pdf you can convert it to e.g. a tiff file, crop it, and save the cropped formula as a jpg if space is important.
Joined: Jun 20, 2006 Posts: 2051 Location: Midwest, USA
Posted: Thu Nov 16, 2006 6:47 am Post subject:
Or, you could use the Grab program that is part of Mac OS to take a "picture" of the equation. You end up with a tiff file. You can import it into iPhoto and export it as a jpeg (it might even be possible to set up an automator action for this); or you could get a program like GraphicConverter (http://www.lemkesoft.com/en/graphcon.htm) This should work with both PPC and Intel.
That said, if you have a PPC, Yoxi's suggestion might be the simplest.
Joined: Apr 25, 2006 Posts: 2315 Location: Montpellier, France
Posted: Thu Nov 16, 2006 11:25 am Post subject:
Except Stuart doesn't want JPEG, TIFF, or even image-based PDF, since he wants to keep all the original information not contained in JPEG or TIFF images.
You can't use it directly from Neo, but OOo 2.0.4 has a new function "Export to LaTeX". You can export a formula in a file in format .tex, then copy/paste the text included into $ $ in Equation Service. You obtain a little pdf file, "real" pdf, not an image. With one formula, I obtained a page
File size 7.7KB
Page size 1.4 x 0.9 cm.
I don't like very much OOOX11, but Patrick needs time to give us all the features of the 2.0.4 version.
Posted: Thu Nov 16, 2006 3:02 pm Post subject: Oh No. Not LaTeX again.
Every time I have a complicated question involving a document, the answer comes back LaTeX. Maybe I should take the time to learn it. But it seems that it is downstream of most products. They can export LaTeX, but not import it. Once I go there, I can't get get back.
However, that sounds like it would work. If I can script every component, I can build a library of equations using any chain of free-ware. Is the X11 version of open office scriptable on the mac?
Posted: Thu Nov 16, 2006 3:21 pm Post subject: Re: Oh No. Not LaTeX again.
Stuart wrote:
Every time I have a complicated question involving a document, the answer comes back LaTeX. Maybe I should take the time to learn it. But it seems that it is downstream of most products. They can export LaTeX, but not import it. Once I go there, I can't get get back.
That is because PDF and PostScript are printing formate. Neither format is designed to be editable like other formats.
The other thing you might try within Neo is to create a custom page size (I think you'll have to do it both in Neo's Format:Page and in File:Printer Settings (aka Mac OS X Page Setup) because of the paper size matching code) that's just big enough for your equation....
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
"PDF Enhancer can embed & subset fonts in a PDF file. Enhancer can also convert fonts to “outlines†while retaining full text search capabilities. This unique and exclusive feature, called Searchable Outlines, reduces file size and avoids compatibility issues with certain font formats including CID."
Along with cropping and resizing features, this sounds as though it might meet your needs. Probably worth the free trial anyway...
(The present writer has no connection with PDF Enhancer!) _________________ Ray Saunders
World Scout Bureau
Posted: Fri Nov 17, 2006 1:58 pm Post subject: Re: Oh No. Not LaTeX again.
Stuart wrote:
Every time I have a complicated question involving a document, the answer comes back LaTeX. Maybe I should take the time to learn it.
I's not that difficult, and you'll get beautiful docs. It takes a bit time to learn it, of course.
Quote:
But it seems that it is downstream of most products. They can export LaTeX, but not import it. Once I go there, I can't get get back.
I'm not sure that I understand well your question. Are you looking for a software which translates a LaTeX file (format .tex) in a Neo file (format .odt) ? If it's what you want, I can give you a link to a French software which is able to do that. But it's only in French, unfortunately
Posted: Fri Nov 17, 2006 2:36 pm Post subject: Re: Re: Oh No. Not LaTeX again.
I wasn't specifically asking a question here, just making the (open to argument) statement that most programs treat LaTeX like postscript or PDF, as a final product. Maybe an analogy of a "compiled output", and not a source document applies. That is unfortunate, because as I understand it, LaTeX is more like HTML and could theoretically be imported fairly directly.
The program you mentioned is, in my experience, a rarity. The author deserves praise for their effort, although I speak no French. _________________ Stuart
Treat your application like Mr. Potato-Head and things go bad fast.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum