Author Topic: Printing PDF file into several page?  (Read 8027 times)

anta40

  • Member
  • ***
  • Posts: 315
Printing PDF file into several page?
« on: November 22, 2014, 07:06:44 PM »
I have 2 tables (1 in XLSX, and 1 in PDF) that are a bit "wide" so they won't fit in 1 page (A4).

Handling XLSX is quite easy. Go to Page Layout, set width = 4 pages and height = 1 page, for example.
Excel will split the table nicely into 4 pages.
And if the font is a bit small, you can increase it.

But what about the PDF? Splitting probably can be done. Not sure about increasing the font size, though.
AFAIK, PDF is read only.  :redface:

FORTRANS

  • Member
  • *****
  • Posts: 1238
Re: Printing PDF file into several page?
« Reply #1 on: November 23, 2014, 12:26:00 AM »
Hi,

   You can use GhostScript and GSView to convert PDF to PostScript.
you can modify the PostScript to print one page as multiple pages
(enlarge).  They might print multiple pages directly, I am using a
very old version, that I don't recall having that feature.

HTH,

Steve N.

Gunther

  • Member
  • *****
  • Posts: 4197
  • Forgive your enemies, but never forget their names
Re: Printing PDF file into several page?
« Reply #2 on: November 23, 2014, 12:38:31 AM »
Hi anta40,

   You can use GhostScript and GSView to convert PDF to PostScript.

that's the way to go. You can find the tools here and here.

Gunther
You have to know the facts before you can distort them.

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: Printing PDF file into several page?
« Reply #3 on: November 23, 2014, 02:01:54 AM »
before you go to too much trouble....

see if eliminating the margins will help (set them to 0)   :biggrin:

K_F

  • Member
  • *****
  • Posts: 1771
  • Anybody out there?
Re: Printing PDF file into several page?
« Reply #4 on: November 24, 2014, 01:34:52 AM »
I've used this for yonks..
http://www.cutepdf.com/

Installs as a printer driver.. and prints to a pdf file
 ;)
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

Gunther

  • Member
  • *****
  • Posts: 4197
  • Forgive your enemies, but never forget their names
Re: Printing PDF file into several page?
« Reply #5 on: November 24, 2014, 02:07:48 AM »
Hi Tony,

I've used this for yonks..
http://www.cutepdf.com/

Installs as a printer driver.. and prints to a pdf file
 ;)

does it work as expected?

Gunther
You have to know the facts before you can distort them.

Stan

  • Regular Member
  • *
  • Posts: 20
Re: Printing PDF file into several page?
« Reply #6 on: November 24, 2014, 08:09:48 AM »
Hi Tony,

I've used this for yonks..
http://www.cutepdf.com/

Installs as a printer driver.. and prints to a pdf file
 ;)

does it work as expected?

Gunther

YES.

My main use archiving web pages.  Almost all printed pages look like the web page as viewed.
A real plus is the I can cut text from the pdf file and past it into an editor.
Generally, the images on the web page are in the pdf file.

Excellent program.

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: Printing PDF file into several page?
« Reply #7 on: November 24, 2014, 02:32:20 PM »
Once I bought a PDF component, but I forget what is the name. You can use JavaScript or VBS to use it. It can extract the words, the picture, and then reassembled it as an excell sheet. I only used it when I was still doing a contract project. After it done, I did not preserved my component along with the credential. The component was a COM type dll.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Gunther

  • Member
  • *****
  • Posts: 4197
  • Forgive your enemies, but never forget their names
Re: Printing PDF file into several page?
« Reply #8 on: November 25, 2014, 04:41:45 AM »
Hi Stan,

YES.

My main use archiving web pages.  Almost all printed pages look like the web page as viewed.
A real plus is the I can cut text from the pdf file and past it into an editor.
Generally, the images on the web page are in the pdf file.

Excellent program.

thank you for the hint.  :t

Gunther
You have to know the facts before you can distort them.

K_F

  • Member
  • *****
  • Posts: 1771
  • Anybody out there?
Re: Printing PDF file into several page?
« Reply #9 on: November 25, 2014, 07:04:07 AM »
Hi Tony,

I've used this for yonks..
http://www.cutepdf.com/

Installs as a printer driver.. and prints to a pdf file
 ;)

does it work as expected?

Gunther
Hi Gunther.. sorry for not coming back sooner - been running around  ;)
As Stan says... I don't have the whole package but use the free PDF printer driver... works like a charm.
Actually the best PDF printer thingy I had.
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

jj2007

  • Member
  • *****
  • Posts: 13951
  • Assembly is fun ;-)
    • MasmBasic
Re: Printing PDF file into several page?
« Reply #10 on: November 25, 2014, 01:14:55 PM »
There are several, fairly similar pdf "printers" around. Google for tinypdf cutepdf to see a few reviews.

Under the hood, they are remarkably simple, because most of them use GhostScript to do the job. Attached a demo (hacked together in the last 5 hours, it took longer than expected :() showing how it can be done with Masm. Just launch the exe and follow the instructions below. When installed, print something from Word etc using the new printer.

txHelp LABEL BYTE
  db "- Control Panel, printers etc, add printer", 13, 10
  db "- add local printer", 13, 10
  db "- use existing port C:\Output.ps", 13, 10, "  (if it's not in the list, create new local port C:\Output.ps)", 13, 10
  db "- choose HP on the left, HP xxx PS on the right", 13, 10
  db "- give it a name, e.g. Ps2Pdf", 13, 10
  db "- don't share", 13, 10, 10, "Click OK if you are ready to print", 0


EDIT: attachment removed, see version #2 in next post below.
« Last Edit: November 25, 2014, 10:02:55 PM by jj2007 »

Gunther

  • Member
  • *****
  • Posts: 4197
  • Forgive your enemies, but never forget their names
Re: Printing PDF file into several page?
« Reply #11 on: November 25, 2014, 06:46:41 PM »
Jochen,

Under the hood, they are remarkably simple, because most of them use GhostScript to do the job.

so one can use GhostScript and GhostView together to reach the same goal.

Attached a demo (hacked together in the last 5 hours, it took longer than expected :() showing how it can be done with Masm. Just launch the exe and follow the instructions below. When installed, print something from Word etc using the new printer.

Good idea.  :t

Gunther
You have to know the facts before you can distort them.

jj2007

  • Member
  • *****
  • Posts: 13951
  • Assembly is fun ;-)
    • MasmBasic
Re: Printing PDF file into several page?
« Reply #12 on: November 25, 2014, 10:02:00 PM »
so one can use GhostScript and GhostView together to reach the same goal

Not sure if GhostView can be integrated with the printing to convert directly to PDF.

Anyway, attached version 24 - use at your own risk: When printing from MS Word, you can
- choose "Print to file", and if you select a filename in the default user\Documents folder, soon after you'll find the filename.pdf there.
- If you don't choose "Print to file", the pdf gets created in user\Documents\PdfTmp with a name such as 1tmp2511_112541.pdf, i.e. 1tmpddMM_hhmmss.pdf

In both cases, the printout will be launched in your default pdf reader (Foxit, Sumatra, Acrobat, ...).

EDIT: Replaced with version 4 - the previous one overused the CPU a little bit, now it's OK. New exit key combi is right Ctrl F10.
« Last Edit: November 27, 2014, 05:56:55 AM by jj2007 »