Thread Subject: how to convert Excel tables/charts into EPS or PDF without losing

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: Luna Moon

Date: 26 Aug, 2008 12:09:26

Message: 1 of 16

how to convert Excel tables/charts into EPS or PDF?

Hi all,

I am creating tables and charts in Excel and then I want to convert
them into EPS or PDF (one chart/table per pdf file) so I could use
them in Latex. It is also a means of maintaining tables/charts without
losing quality. Any fast convenient way of doing so?

Any thoughts?

Thank you!



Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: David Klassen

Date: 26 Aug, 2008 12:17:50

Message: 2 of 16

On Aug 26, 8:09 am, Luna Moon <lunamoonm...@gmail.com> wrote:
> how to convert Excel tables/charts into EPS or PDF?
>
> Hi all,
>
> I am creating tables and charts in Excel and then I want to convert
> them into EPS or PDF (one chart/table per pdf file) so I could use
> them in Latex. It is also a means of maintaining tables/charts without
> losing quality. Any fast convenient way of doing so?
>
> Any thoughts?

"Print" them to a file using a postscript or PDF driver. On a Mac
this is as simple as choosing "Print" and then clicking on the
"Save to PDF" button. On a PC you'll need to... well, this page
has all the details---
http://www.freeopenbook.com/pdf-hacks/pdfhks-CHP-4-SECT-9.html

I did this for my WinXP setup and it works wonderfully.

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: Joseph Wright

Date: 26 Aug, 2008 12:53:18

Message: 3 of 16

On Aug 26, 1:17=A0pm, David Klassen <klas...@rowan.edu> wrote:
> On Aug 26, 8:09 am, Luna Moon <lunamoonm...@gmail.com> wrote:
>
> > how to convert Excel tables/charts into EPS or PDF?
>
> > Hi all,
>
> > I am creating tables and charts in Excel and then I want to convert
> > them into EPS or PDF (one chart/table per pdf file) so I could use
> > them in Latex. It is also a means of maintaining tables/charts without
> > losing quality. Any fast convenient way of doing so?
>
> > Any thoughts?
>
> "Print" them to a file using a postscript or PDF driver. =A0On a Mac
> this is as simple as choosing "Print" and then clicking on the
> "Save to PDF" button. =A0On a PC you'll need to... well, this page
> has all the details---http://www.freeopenbook.com/pdf-hacks/pdfhks-CHP-4-=
SECT-9.html
>
> I did this for my WinXP setup and it works wonderfully.

I'd also "print", but I use BullZip:

http://www.bullzip.com/

which is easier to install and use.
--
Joseph Wright

Subject: how to convert Excel tables/charts into EPS or PDF without losing quality?

From: Christian Stapfer

Date: 26 Aug, 2008 14:01:47

Message: 4 of 16

"Luna Moon" <lunamoonmoon@gmail.com> schrieb im Newsbeitrag
news:6c992901-589d-4ff9-adf8-bcb55e97766a@v13g2000pro.googlegroups.com...
> how to convert Excel tables/charts into EPS or PDF?
>
> Hi all,
>
> I am creating tables and charts in Excel and then I want to convert
> them into EPS or PDF (one chart/table per pdf file) so I could use
> them in Latex. It is also a means of maintaining tables/charts without
> losing quality. Any fast convenient way of doing so?

Have Excel itself save them as PDF (this functionality is certainly
available for Excel 2007 in the "Save As..." menu, but, as far as
I remember, it must be installed / enabled separately).

Regards,
Christian
 

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: Luna Moon

Date: 26 Aug, 2008 21:19:48

Message: 5 of 16

On Aug 26, 8:17=A0am, David Klassen <klas...@rowan.edu> wrote:
> On Aug 26, 8:09 am, Luna Moon <lunamoonm...@gmail.com> wrote:
>
> > how to convert Excel tables/charts into EPS or PDF?
>
> > Hi all,
>
> > I am creating tables and charts in Excel and then I want to convert
> > them into EPS or PDF (one chart/table per pdf file) so I could use
> > them in Latex. It is also a means of maintaining tables/charts without
> > losing quality. Any fast convenient way of doing so?
>
> > Any thoughts?
>
> "Print" them to a file using a postscript or PDF driver. =A0On a Mac
> this is as simple as choosing "Print" and then clicking on the
> "Save to PDF" button. =A0On a PC you'll need to... well, this page
> has all the details---http://www.freeopenbook.com/pdf-hacks/pdfhks-CHP-4-=
SECT-9.html
>
> I did this for my WinXP setup and it works wonderfully.

this is bad because when you print to pdf the one table is splitted to
several pages and cropped.

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: Ken Starks

Date: 27 Aug, 2008 08:54:22

Message: 6 of 16

Luna Moon wrote:
> On Aug 26, 8:17 am, David Klassen <klas...@rowan.edu> wrote:
>> On Aug 26, 8:09 am, Luna Moon <lunamoonm...@gmail.com> wrote:
>>
>>> how to convert Excel tables/charts into EPS or PDF?
>>> Hi all,
>>> I am creating tables and charts in Excel and then I want to convert
>>> them into EPS or PDF (one chart/table per pdf file) so I could use
>>> them in Latex. It is also a means of maintaining tables/charts without
>>> losing quality. Any fast convenient way of doing so?
>>> Any thoughts?
>> "Print" them to a file using a postscript or PDF driver. On a Mac
>> this is as simple as choosing "Print" and then clicking on the
>> "Save to PDF" button. On a PC you'll need to... well, this page
>> has all the details---http://www.freeopenbook.com/pdf-hacks/pdfhks-CHP-4-SECT-9.html
>>
>> I did this for my WinXP setup and it works wonderfully.
>
> this is bad because when you print to pdf the one table is splitted to
> several pages and cropped.

I suddenly feel a need to clarify your question, Luna.

1. Are your Excel tables pretty much simple data in cells, one cell to
    each row and columns?
    Or do some cells span more than one row and column.

2. Do you have formatting you wish to preserve - bold, italics,
    and so on.

3. Do you have row or Cell border-lines you wish to preserve ?


The answers to these questions may not only alter the difficulty
of the task, but also affect whether LaTeX is an appropriate
solution at all.


Cheers,
Ken.

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: LunaMoon

Date: 27 Aug, 2008 11:58:28

Message: 7 of 16

On Aug 27, 4:54=A0am, Ken Starks <stra...@lampsacos.demon.co.uk> wrote:
> Luna Moon wrote:
> > On Aug 26, 8:17 am, David Klassen <klas...@rowan.edu> wrote:
> >> On Aug 26, 8:09 am, Luna Moon <lunamoonm...@gmail.com> wrote:
>
> >>> how to convert Excel tables/charts into EPS or PDF?
> >>> Hi all,
> >>> I am creating tables and charts in Excel and then I want to convert
> >>> them into EPS or PDF (one chart/table per pdf file) so I could use
> >>> them in Latex. It is also a means of maintaining tables/charts withou=
t
> >>> losing quality. Any fast convenient way of doing so?
> >>> Any thoughts?
> >> "Print" them to a file using a postscript or PDF driver. =A0On a Mac
> >> this is as simple as choosing "Print" and then clicking on the
> >> "Save to PDF" button. =A0On a PC you'll need to... well, this page
> >> has all the details---http://www.freeopenbook.com/pdf-hacks/pdfhks-CHP=
-4-SECT-9.html
>
> >> I did this for my WinXP setup and it works wonderfully.
>
> > this is bad because when you print to pdf the one table is splitted to
> > several pages and cropped.
>
> I suddenly feel a need to clarify your question, Luna.
>
> 1. Are your Excel tables pretty much simple data in cells, one cell to
> =A0 =A0 each row and columns?
> =A0 =A0 Or do some cells span more than one row and column.
>
> 2. Do you have formatting you wish to preserve - bold, italics,
> =A0 =A0 and so on.
>
> 3. Do you have row or Cell border-lines you wish to preserve ?
>
> The answers to these questions may not only alter the difficulty
> of the task, but also affect whether LaTeX is an appropriate
> solution at all.
>
> Cheers,
> Ken.

Sure, my tables and charts in Excel have lots of decorations and
patterns and colors that we don't want to lose.

Probably the easiest is to Save As pdf, but I hope it has a tight
bounding box. I just need to convert a selection of table/chart into
PDF, not the whole document or the whole sheet. Without a tight
bounding box, how can I use it in Latex?

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: LunaMoon

Date: 27 Aug, 2008 12:05:40

Message: 8 of 16

On Aug 26, 8:17=A0am, David Klassen <klas...@rowan.edu> wrote:
> On Aug 26, 8:09 am, Luna Moon <lunamoonm...@gmail.com> wrote:
>
> > how to convert Excel tables/charts into EPS or PDF?
>
> > Hi all,
>
> > I am creating tables and charts in Excel and then I want to convert
> > them into EPS or PDF (one chart/table per pdf file) so I could use
> > them in Latex. It is also a means of maintaining tables/charts without
> > losing quality. Any fast convenient way of doing so?
>
> > Any thoughts?
>
> "Print" them to a file using a postscript or PDF driver. =A0On a Mac
> this is as simple as choosing "Print" and then clicking on the
> "Save to PDF" button. =A0On a PC you'll need to... well, this page
> has all the details---http://www.freeopenbook.com/pdf-hacks/pdfhks-CHP-4-=
SECT-9.html
>
> I did this for my WinXP setup and it works wonderfully.

No, I tried both Print (in 2003) and SaveAs (in 2007) to PDF. But they
don't have a tight bounding box for using in Latex. And the SAVEAS in
2007 does not save selections, only save the whole active sheet.

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: LunaMoon

Date: 27 Aug, 2008 12:06:40

Message: 9 of 16

On Aug 26, 10:01=A0am, "Christian Stapfer" <nob...@nowhere.nil> wrote:
> "Luna Moon" <lunamoonm...@gmail.com> schrieb im Newsbeitragnews:6c992901-=
589d-4ff9-adf8-bcb55e97766a@v13g2000pro.googlegroups.com...
>
> > how to convert Excel tables/charts into EPS or PDF?
>
> > Hi all,
>
> > I am creating tables and charts in Excel and then I want to convert
> > them into EPS or PDF (one chart/table per pdf file) so I could use
> > them in Latex. It is also a means of maintaining tables/charts without
> > losing quality. Any fast convenient way of doing so?
>
> Have Excel itself save them as PDF (this functionality is certainly
> available for Excel 2007 in the "Save As..." menu, but, as far as
> I remember, it must be installed / enabled separately).
>
> Regards,
> Christian

It's automatically there in my 2007. But it doesn't have a tight
bounding box.

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: Martin Chicoine

Date: 27 Aug, 2008 15:27:50

Message: 10 of 16

On 26 ao=FBt, 08:09, Luna Moon <lunamoonm...@gmail.com> wrote:
> how to convert Excel tables/charts into EPS or PDF?
>
> Hi all,
>
> I am creating tables and charts in Excel and then I want to convert
> them into EPS or PDF (one chart/table per pdf file) so I could use
> them in Latex. It is also a means of maintaining tables/charts without
> losing quality. Any fast convenient way of doing so?
>
> Any thoughts?
>
> Thank you!

As others suggested, print it to a postscript file, using
extension .ps. Then, open it in GSview and use "PS to EPS" to tighten
the bounding box and save it as .eps.

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: Ken Starks

Date: 27 Aug, 2008 15:59:28

Message: 11 of 16

LunaMoon wrote:
> On Aug 27, 4:54 am, Ken Starks <stra...@lampsacos.demon.co.uk> wrote:
>> Luna Moon wrote:
>>> On Aug 26, 8:17 am, David Klassen <klas...@rowan.edu> wrote:
>>>> On Aug 26, 8:09 am, Luna Moon <lunamoonm...@gmail.com> wrote:
>>>>> how to convert Excel tables/charts into EPS or PDF?
>>>>> Hi all,
>>>>> I am creating tables and charts in Excel and then I want to convert
>>>>> them into EPS or PDF (one chart/table per pdf file) so I could use
>>>>> them in Latex. It is also a means of maintaining tables/charts without
>>>>> losing quality. Any fast convenient way of doing so?
>>>>> Any thoughts?
>>>> "Print" them to a file using a postscript or PDF driver. On a Mac
>>>> this is as simple as choosing "Print" and then clicking on the
>>>> "Save to PDF" button. On a PC you'll need to... well, this page
>>>> has all the details---http://www.freeopenbook.com/pdf-hacks/pdfhks-CHP-4-SECT-9.html
>>>> I did this for my WinXP setup and it works wonderfully.
>>> this is bad because when you print to pdf the one table is splitted to
>>> several pages and cropped.
>> I suddenly feel a need to clarify your question, Luna.
>>
>> 1. Are your Excel tables pretty much simple data in cells, one cell to
>> each row and columns?
>> Or do some cells span more than one row and column.
>>
>> 2. Do you have formatting you wish to preserve - bold, italics,
>> and so on.
>>
>> 3. Do you have row or Cell border-lines you wish to preserve ?
>>
>> The answers to these questions may not only alter the difficulty
>> of the task, but also affect whether LaTeX is an appropriate
>> solution at all.
>>
>> Cheers,
>> Ken.
>
> Sure, my tables and charts in Excel have lots of decorations and
> patterns and colors that we don't want to lose.
>
> Probably the easiest is to Save As pdf, but I hope it has a tight
> bounding box. I just need to convert a selection of table/chart into
> PDF, not the whole document or the whole sheet. Without a tight
> bounding box, how can I use it in Latex?
>

Yes, I would agree. There is a slight difference between 'save as PDF'
and 'Print to PDF' which you might need to investigate.

It all comes down to the quality of the driver. I have the
luxury of acrobat professional on my machine, and the results
of 'Print to PDF' are excellent. You would first select your table and use:
menubar -->file --> set Print Area -->

This gives a PDF the correct size, and restricted to the selected area.
(You can use print preview before preesing the print button if
you like)

As for your other problem, of a table being split over two pages, a
good driver allows you to set an arbitrary pages size for the
final PDF, so a bit of experimentation is all you need.

What you won't have, with this method, is matching font style and size
with the fonts in the remainder of your document.


Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: Ken Starks

Date: 27 Aug, 2008 16:22:07

Message: 12 of 16

Ken Starks wrote:
> LunaMoon wrote:
>> On Aug 27, 4:54 am, Ken Starks <stra...@lampsacos.demon.co.uk> wrote:
>>> Luna Moon wrote:
>>>> On Aug 26, 8:17 am, David Klassen <klas...@rowan.edu> wrote:
>>>>> On Aug 26, 8:09 am, Luna Moon <lunamoonm...@gmail.com> wrote:
>>>>>> how to convert Excel tables/charts into EPS or PDF?
>>>>>> Hi all,
>>>>>> I am creating tables and charts in Excel and then I want to convert
>>>>>> them into EPS or PDF (one chart/table per pdf file) so I could use
>>>>>> them in Latex. It is also a means of maintaining tables/charts
>>>>>> without
>>>>>> losing quality. Any fast convenient way of doing so?
>>>>>> Any thoughts?
>>>>> "Print" them to a file using a postscript or PDF driver. On a Mac
>>>>> this is as simple as choosing "Print" and then clicking on the
>>>>> "Save to PDF" button. On a PC you'll need to... well, this page
>>>>> has all the
>>>>> details---http://www.freeopenbook.com/pdf-hacks/pdfhks-CHP-4-SECT-9.html
>>>>>
>>>>> I did this for my WinXP setup and it works wonderfully.
>>>> this is bad because when you print to pdf the one table is splitted to
>>>> several pages and cropped.
>>> I suddenly feel a need to clarify your question, Luna.
>>>
>>> 1. Are your Excel tables pretty much simple data in cells, one cell to
>>> each row and columns?
>>> Or do some cells span more than one row and column.
>>>
>>> 2. Do you have formatting you wish to preserve - bold, italics,
>>> and so on.
>>>
>>> 3. Do you have row or Cell border-lines you wish to preserve ?
>>>
>>> The answers to these questions may not only alter the difficulty
>>> of the task, but also affect whether LaTeX is an appropriate
>>> solution at all.
>>>
>>> Cheers,
>>> Ken.
>>
>> Sure, my tables and charts in Excel have lots of decorations and
>> patterns and colors that we don't want to lose.
>>
>> Probably the easiest is to Save As pdf, but I hope it has a tight
>> bounding box. I just need to convert a selection of table/chart into
>> PDF, not the whole document or the whole sheet. Without a tight
>> bounding box, how can I use it in Latex?
>>
>
> Yes, I would agree. There is a slight difference between 'save as PDF'
> and 'Print to PDF' which you might need to investigate.
>
> It all comes down to the quality of the driver. I have the
> luxury of acrobat professional on my machine, and the results
> of 'Print to PDF' are excellent. You would first select your table and use:
> menubar -->file --> set Print Area -->
>
> This gives a PDF the correct size, and restricted to the selected area.
> (You can use print preview before preesing the print button if
> you like)
>
> As for your other problem, of a table being split over two pages, a
> good driver allows you to set an arbitrary pages size for the
> final PDF, so a bit of experimentation is all you need.
>
> What you won't have, with this method, is matching font style and size
> with the fonts in the remainder of your document.
>
>

I forgot to mention that you may wish to press the document
Properties button in your PDF Printer box, where you can set up
a custom pages size, or a few.

If you tables are a large variety of sizes, you would
possibly be better off cropping them one at
a time after converstion to PDF.



Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: David Klassen

Date: 27 Aug, 2008 17:50:19

Message: 13 of 16

On Aug 26, 8:53=A0am, Joseph Wright <joseph.wri...@morningstar2.co.uk>
wrote:
> On Aug 26, 1:17=A0pm, David Klassen <klas...@rowan.edu> wrote:
>
>
>
> > On Aug 26, 8:09 am, Luna Moon <lunamoonm...@gmail.com> wrote:
>
> > > how to convert Excel tables/charts into EPS or PDF?
>
> > > Hi all,
>
> > > I am creating tables and charts in Excel and then I want to convert
> > > them into EPS or PDF (one chart/table per pdf file) so I could use
> > > them in Latex. It is also a means of maintaining tables/charts withou=
t
> > > losing quality. Any fast convenient way of doing so?
>
> > > Any thoughts?
>
> > "Print" them to a file using a postscript or PDF driver. =A0On a Mac
> > this is as simple as choosing "Print" and then clicking on the
> > "Save to PDF" button. =A0On a PC you'll need to... well, this page
> > has all the details---http://www.freeopenbook.com/pdf-hacks/pdfhks-CHP-=
4-SECT-9.html
>
> > I did this for my WinXP setup and it works wonderfully.
>
> I'd also "print", but I use BullZip:
>
> http://www.bullzip.com/
>
> which is easier to install and use.

I'll give you easier to install ("run the install program" vs. "follow
this list
of steps involving several packages") but how is it easier to use? I
just hit "print" and type in a file name. I assume you do, too.

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: David Klassen

Date: 27 Aug, 2008 17:53:30

Message: 14 of 16

On Aug 26, 5:19=A0pm, Luna Moon <lunamoonm...@gmail.com> wrote:
>
> > "Print" them to a file using a postscript or PDF driver. =A0On a Mac
> > this is as simple as choosing "Print" and then clicking on the
> > "Save to PDF" button. =A0On a PC you'll need to... well, this page
> > has all the details---http://www.freeopenbook.com/pdf-hacks/pdfhks-CHP-=
4-SECT-9.html
>
> > I did this for my WinXP setup and it works wonderfully.
>
> this is bad because when you print to pdf the one table is splitted to
> several pages and cropped.

Huh?! This is only true if the table would have been split across
several pages and cropped in hardcopy, too. That can be fixed
by adjusting the print preferences in Excel.

Of course, I haven't tested whether or not the output from a PDF
print under windows gives you a "page" or a "graphic" like an
encapsulated-PDF.

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: Luna Moon

Date: 27 Aug, 2008 18:26:26

Message: 15 of 16

On Aug 27, 11:59=A0am, Ken Starks <stra...@lampsacos.demon.co.uk> wrote:
> LunaMoon wrote:
> > On Aug 27, 4:54 am, Ken Starks <stra...@lampsacos.demon.co.uk> wrote:
> >> Luna Moon wrote:
> >>> On Aug 26, 8:17 am, David Klassen <klas...@rowan.edu> wrote:
> >>>> On Aug 26, 8:09 am, Luna Moon <lunamoonm...@gmail.com> wrote:
> >>>>> how to convert Excel tables/charts into EPS or PDF?
> >>>>> Hi all,
> >>>>> I am creating tables and charts in Excel and then I want to convert
> >>>>> them into EPS or PDF (one chart/table per pdf file) so I could use
> >>>>> them in Latex. It is also a means of maintaining tables/charts with=
out
> >>>>> losing quality. Any fast convenient way of doing so?
> >>>>> Any thoughts?
> >>>> "Print" them to a file using a postscript or PDF driver. =A0On a Mac
> >>>> this is as simple as choosing "Print" and then clicking on the
> >>>> "Save to PDF" button. =A0On a PC you'll need to... well, this page
> >>>> has all the details---http://www.freeopenbook.com/pdf-hacks/pdfhks-C=
HP-4-SECT-9.html
> >>>> I did this for my WinXP setup and it works wonderfully.
> >>> this is bad because when you print to pdf the one table is splitted t=
o
> >>> several pages and cropped.
> >> I suddenly feel a need to clarify your question, Luna.
>
> >> 1. Are your Excel tables pretty much simple data in cells, one cell to
> >> =A0 =A0 each row and columns?
> >> =A0 =A0 Or do some cells span more than one row and column.
>
> >> 2. Do you have formatting you wish to preserve - bold, italics,
> >> =A0 =A0 and so on.
>
> >> 3. Do you have row or Cell border-lines you wish to preserve ?
>
> >> The answers to these questions may not only alter the difficulty
> >> of the task, but also affect whether LaTeX is an appropriate
> >> solution at all.
>
> >> Cheers,
> >> Ken.
>
> > Sure, my tables and charts in Excel have lots of decorations and
> > patterns and colors that we don't want to lose.
>
> > Probably the easiest is to Save As pdf, but I hope it has a tight
> > bounding box. I just need to convert a selection of table/chart into
> > PDF, not the whole document or the whole sheet. Without a tight
> > bounding box, how can I use it in Latex?
>
> Yes, I would agree. There is a slight difference between 'save as PDF'
> and 'Print to PDF' which you might need to investigate.
>
> It all comes down to the quality of the driver. I have the
> luxury of acrobat professional on my machine, and the results
> of 'Print to PDF' are excellent. You would first select your table and us=
e:
> menubar -->file --> set Print Area -->
>
> This gives a PDF the correct size, and restricted to the selected area.
> (You can use print preview before preesing the print button if
> you like)
>
> As for your other problem, of a table being split over two pages, a
> good driver allows you to set an arbitrary pages size for the
> final PDF, so a bit of experimentation is all you need.
>
> What you won't have, with this method, is matching font style and size
> with the fonts in the remainder of your document.

Could you please clearly list the steps to make PDF with tight
bounding box and no splitting across pages and fit every table each
into one page, (I mean, my Excel tables/charts were designed to be
inserted into a typical report which is readable on Letter size paper.
The width and height are very reasonable. )

How to do that?

Subject: how to convert Excel tables/charts into EPS or PDF without losing

From: Ken Starks

Date: 27 Aug, 2008 22:40:04

Message: 16 of 16

Luna Moon wrote:
> On Aug 27, 11:59 am, Ken Starks <stra...@lampsacos.demon.co.uk> wrote:
>> LunaMoon wrote:
>>> On Aug 27, 4:54 am, Ken Starks <stra...@lampsacos.demon.co.uk> wrote:
>>>> Luna Moon wrote:
>>>>> On Aug 26, 8:17 am, David Klassen <klas...@rowan.edu> wrote:
>>>>>> On Aug 26, 8:09 am, Luna Moon <lunamoonm...@gmail.com> wrote:
>>>>>>> how to convert Excel tables/charts into EPS or PDF?
>>>>>>> Hi all,
>>>>>>> I am creating tables and charts in Excel and then I want to convert
>>>>>>> them into EPS or PDF (one chart/table per pdf file) so I could use
>>>>>>> them in Latex. It is also a means of maintaining tables/charts without
>>>>>>> losing quality. Any fast convenient way of doing so?
>>>>>>> Any thoughts?
>>>>>> "Print" them to a file using a postscript or PDF driver. On a Mac
>>>>>> this is as simple as choosing "Print" and then clicking on the
>>>>>> "Save to PDF" button. On a PC you'll need to... well, this page
>>>>>> has all the details---http://www.freeopenbook.com/pdf-hacks/pdfhks-CHP-4-SECT-9.html
>>>>>> I did this for my WinXP setup and it works wonderfully.
>>>>> this is bad because when you print to pdf the one table is splitted to
>>>>> several pages and cropped.
>>>> I suddenly feel a need to clarify your question, Luna.
>>>> 1. Are your Excel tables pretty much simple data in cells, one cell to
>>>> each row and columns?
>>>> Or do some cells span more than one row and column.
>>>> 2. Do you have formatting you wish to preserve - bold, italics,
>>>> and so on.
>>>> 3. Do you have row or Cell border-lines you wish to preserve ?
>>>> The answers to these questions may not only alter the difficulty
>>>> of the task, but also affect whether LaTeX is an appropriate
>>>> solution at all.
>>>> Cheers,
>>>> Ken.
>>> Sure, my tables and charts in Excel have lots of decorations and
>>> patterns and colors that we don't want to lose.
>>> Probably the easiest is to Save As pdf, but I hope it has a tight
>>> bounding box. I just need to convert a selection of table/chart into
>>> PDF, not the whole document or the whole sheet. Without a tight
>>> bounding box, how can I use it in Latex?
>> Yes, I would agree. There is a slight difference between 'save as PDF'
>> and 'Print to PDF' which you might need to investigate.
>>
>> It all comes down to the quality of the driver. I have the
>> luxury of acrobat professional on my machine, and the results
>> of 'Print to PDF' are excellent. You would first select your table and use:
>> menubar -->file --> set Print Area -->
>>
>> This gives a PDF the correct size, and restricted to the selected area.
>> (You can use print preview before preesing the print button if
>> you like)
>>
>> As for your other problem, of a table being split over two pages, a
>> good driver allows you to set an arbitrary pages size for the
>> final PDF, so a bit of experimentation is all you need.
>>
>> What you won't have, with this method, is matching font style and size
>> with the fonts in the remainder of your document.
>
> Could you please clearly list the steps to make PDF with tight
> bounding box and no splitting across pages and fit every table each
> into one page, (I mean, my Excel tables/charts were designed to be
> inserted into a typical report which is readable on Letter size paper.
> The width and height are very reasonable. )
>
> How to do that?

I can't speak for every 'PDF printer', but I can tell you
how to use the one I have, the one that came with Acrobat
Professional. I can't say whether Open-source
PDF printers have a similar interface or not.


Firstly you need to establish the maximum size of graphic
that will actually be acceptable to your final document,
if imported.

for the purposes of the following, I found that
Letter paper with a one-tenth of an inch margin would
accept a pdf of 8 x 10.5 inches.

I therefore decided that I would crop the Table printout
to this size at maximum, possibly not completely
as a 'tight' bounding box in method one.

##############################################

This method was tested, after saving an excel table as
'Workinghours.pdf' with the following minimal LateX
document:


\documentclass{article}
\usepackage{geometry}
\geometry{letterpaper, portrait, top=0.1in, bottom=0.1in, left=0.1in,
right=0.1in}
\usepackage[pdftex]{graphicx}
\begin{document}
\includegraphics{HoursofWork} % pdf image of 8 x 10.5 inches
\end{document}


###############################################



Method one: I set up three custom page sizes in my PDF
printer, as follows:

Sub_Letter: 8 x 10.5 inches
Halfsub_Letter 8 x 5.0 inches
QuarterSub_Letter 8 x 2,5 inches

(You can make as many as you wish)


How? get to the printer dialogue box e.g.

1. Control panel --> Printers and faxes -->

2. Right Click on 'Adobe PDF', choose 'Printing preferences ...'

3. Use the TAB 'Adobe pDF settings'

4. Go to the 'Adobe PDF Page Size' drop-down list, and click the
    'Add...' button next to it.

5a. Fill in the form for your custom pages size:

    Paper Names : Sub_Letter
    Units : Inch
    Width: 8.0
    Height: 10.5

Press the Add/modify button when you are finished.

5b, 5c, etc: repeat for other custom sizes you want.

#######################################


Back in Excel.

1. Select the table you want.
    Menubar --> Print area --> Set Print Area

2. Menubar --> File --> Page setup ... Page TAB

Orientation. Portrait
Adjust to: 100 %normal size
Paper size: Sub_Letter

3. (Optional) Menubar --> File --> Print Preview (Esc)

4. Menubar --> File --> Print



###############################################################

Method Two. Print to whatever size PDF, and crop afterwards.

Someone else has already mentioned the open-source Ghostscript method.
I don't know how similar the functionality might be, but the user
interface is likely to be very different.

This is what you would do in acrobat professional.

Menubar --> Tools --> Advanced editing --> crop tool ...

interactive crop by click and drag...
when done, double-click to get a dialogue box for
precision final choices.

You also get a 'remove white margins' option as an alternative
to the click and drag method.




Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com