Exporting to PDF - Background color and multiple...

General discussions about Inkscape.
Christoffer
Posts: 5
Joined: Wed Feb 02, 2011 5:14 am

Exporting to PDF - Background color and multiple...

Postby Christoffer » Wed Feb 02, 2011 5:27 am

Exporting to PDF - Background color and multiple pages

Hi
I'm trying to use Inkscape to write down(with wacom tablet) my solutions to different mathematical problems and then saving them as PDF:s so I can later upload and share my solutions. The problem I have now is that when I try to save my PDF the background color I have set in document proporties(black) isn't saved in the PDF. How do I include the background color in PDF export?

My other question is, is it possible to save an image to multiple PDF pages? Let's say that I define my drawing area to the height of 5*A4 and the width to 1*A4. Is it possible to split this image into 5 A4 when exporting to PDF?
Last edited by Christoffer on Sun Feb 06, 2011 4:58 am, edited 2 times in total.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Exporting to PDF - Background color and multiple pages

Postby druban » Wed Feb 02, 2011 11:28 am

No, but you can save as 5 PDFs and use the free program PDF split and merge (PDFSAM) to join them.
Your mind is what you think it is.

Christoffer
Posts: 5
Joined: Wed Feb 02, 2011 5:14 am

Re: Exporting to PDF - Background color and multiple pages

Postby Christoffer » Thu Feb 03, 2011 4:14 am

Thank you. Yea, that is a good solution...just an extra minute or two.

I'm still curious about my first question. Whether or not it's possible to save PDFs with black background(set from Document properties)? I will make them available with both white and black background. White for printing and black for reading on screen. A fast solution to this is to create a layer with a black rectangel covering way more area than the drawing/page area.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Exporting to PDF - Background color and multiple pages

Postby druban » Thu Feb 03, 2011 7:56 am

I don't think there is any way to have anything in the PDF or eps export that is not an actual described object.
Your mind is what you think it is.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Exporting to PDF - Background color and multiple pages

Postby ~suv » Thu Feb 03, 2011 8:08 am

Christoffer wrote:Whether or not it's possible to save PDFs with black background(set from Document properties)?

No (not possible).

See also: Bug #166396 in Inkscape: “background color not exported to formats other than png

Christoffer
Posts: 5
Joined: Wed Feb 02, 2011 5:14 am

Re: Exporting to PDF - Background color and multiple pages

Postby Christoffer » Fri Feb 04, 2011 8:50 pm

~suv wrote:
Christoffer wrote:Whether or not it's possible to save PDFs with black background(set from Document properties)?

No (not possible).

See also: Bug #166396 in Inkscape: “background color not exported to formats other than png


Thank you. The bug comments explains that in detail.

Christoffer
Posts: 5
Joined: Wed Feb 02, 2011 5:14 am

Re: Exporting to PDF - Background color and multiple pages

Postby Christoffer » Sun Feb 06, 2011 4:57 am

druban wrote:No, but you can save as 5 PDFs and use the free program PDF split and merge (PDFSAM) to join them.


Hmm, this wasn't as easy as I expected how do I save a big image into several PDFs. Within PDF export I never get to choose what part of the image to export...that is only when I do "export bitmap" to png.

Christoffer
Posts: 5
Joined: Wed Feb 02, 2011 5:14 am

Re: Exporting to PDF - Background color and multiple pages

Postby Christoffer » Fri Feb 11, 2011 7:14 pm

Christoffer wrote:
druban wrote:No, but you can save as 5 PDFs and use the free program PDF split and merge (PDFSAM) to join them.


Hmm, this wasn't as easy as I expected how do I save a big image into several PDFs. Within PDF export I never get to choose what part of the image to export...that is only when I do "export bitmap" to png.


Bump, anyone?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Exporting to PDF - Background color and multiple pages

Postby ~suv » Fri Feb 11, 2011 8:01 pm

Christoffer wrote:Hmm, this wasn't as easy as I expected how do I save a big image into several PDFs. Within PDF export I never get to choose what part of the image to export...that is only when I do "export bitmap" to png.
There is no export option or automated process in Inkscape to export to PDF in tiles (likewise for Print tiling).

You can do it manually though, making use of 'Resize page to selection'. For example like this:
  1. create a new layer on top (for the geometry of the tiles or slices to be exported as separate PDFs)
  2. draw rectangles (no stroke!!, fill color semi-transparent) that divide your drawing into the appropriately sized tiles. Use snapping and guides to position them precisely.
  3. select such a slice, change page size to selection (in 'Document Properties > Page')
  4. hide the tiles-layer
  5. 'File > Save a Copy…' as PDF (export area is page)
  6. unhide the tiles-layer, select the next tile and repeat

Gennosuke
Posts: 1
Joined: Sat Mar 26, 2011 3:22 am

Re: Exporting to PDF - Background color and multiple...

Postby Gennosuke » Sat Mar 26, 2011 4:10 am

Ehm, u mean to save as pdf from a :tool_3dbox: bunch of images (or vectors), right?
well, i guess there is a way :tool_pencil: but u'know u have to code it :tool_connector: and make a script :D to do so, also i would add the option to import more than 1 pdf img at same time...
and yeah, sure it would be a great thing to add to newer versions :tool_pen: ...

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Exporting to PDF - Background color and multiple...

Postby druban » Sat Mar 26, 2011 3:21 pm

Sorry, didn't see the bump! ~suv's method is probably the best solution to your problem. My original suggestion was for a way to make, say, a five-page PDF from five Inkscape files. If you are originally planning a five page PDF document you could just draw five different illustrations separately; that's how I do these projects.
Your mind is what you think it is.

heartofnests
Posts: 1
Joined: Wed Jun 22, 2011 6:33 pm

Re: Exporting to PDF - Background color and multiple...

Postby heartofnests » Wed Jun 22, 2011 6:37 pm

The Tiling suggested above is simplified with creating a tile and then using clone to fill the exact size required. I then followed through on the steps you've written and it worked like a charm.


Return to “General Discussions”