[solved] Bitmap in Inkscape file prints as black area

Post questions on how to use or achieve an effect in Inkscape.
2wicked
Posts: 21
Joined: Wed Jun 18, 2014 6:59 pm

[solved] Bitmap in Inkscape file prints as black area

Postby 2wicked » Fri Mar 20, 2015 12:05 am

Hi all,

I extracted a page from a larger PDF file into Inkscape. My intention is to save/print to PDF and add form fields in Acrobat so it can be filled in and printed.

This page contains some text and a (b&w) bitmap image. When I print/save to pdf/print to pdf, it the image is displayed as a fully black rectangle.

Does anybody know how to prevent this? I recently switched to Inkscape 0.91 r13725 (x64) and never had this problem before. Do I have to switch back?

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Bitmap in Inkscape file prints as black area

Postby hulf2012 » Fri Mar 20, 2015 12:35 am

Hello,
- Are you using Linux, Windows, MAC OS?...(because, In a scale of affinity between Inkscape with O.S I'll put (at this moment): 1. Linux 2. Windows 3. MAC OS)

- When you import a pdf page into Inkscape, it generates lots of unneccessary cliping and grouping. In order to stay clean, It's better to remove all that grouping and cliping. Maybe that's affecting your design

- There is problem with opacity (probably). Insert a white rectangle as background.

- There is a problem when exporting from svg to pdf (probably). Verify the options. I think it's better to export the "page" and not the "drawing". You are not rasterizing the filter effects.

- Nothing of the above.

It will be good if you could provide a sample page. It doesn't have to be your original work.
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

2wicked
Posts: 21
Joined: Wed Jun 18, 2014 6:59 pm

Re: Bitmap in Inkscape file prints as black area

Postby 2wicked » Fri Mar 20, 2015 1:07 am

Hi
I am using Windows 7 Professional.

Here are all the files:

The original is page 88 from this document:
http://eur-lex.europa.eu/legal-content/ ... 13&from=EN

SVG file (with just the texts above modified):
https://www.dropbox.com/s/cnyk3udhj4e3z ... ?dl=0&s=sl

Print to PDF (Bullzip PDF printer)
https://www.dropbox.com/s/3ccyff1abyrzx ... ?dl=0&s=sl

Save to PDF (from Inkscape)
https://www.dropbox.com/s/vl0kxfohlkeo7 ... ?dl=0&s=sl

The same thing happens when I print the SVG file to a normal printer.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Bitmap in Inkscape file prints as black area

Postby Lazur » Fri Mar 20, 2015 3:28 am

Hi.

I'd say it's the pdf format/implementation causing the issue.
Probably the embedded image had an alpha channel,
which then got saved as an embedded raster image used as a masking object over a black rectangle, however most of the times you cannot save pdf-s with smooth masking.

This should work:
Annex VII Regulation (EC) No 1013 2006II.svg
(209.69 KiB) Downloaded 191 times


Clipping and masking was removed, and negate extension applied on the raster part.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Bitmap in Inkscape file prints as black area

Postby hulf2012 » Fri Mar 20, 2015 6:30 am

Lazur URH wrote:Hi.

I'd say it's the pdf format/implementation causing the issue.
Probably the embedded image had an alpha channel,
which then got saved as an embedded raster image used as a masking object over a black rectangle, however most of the times you cannot save pdf-s with smooth masking.

This should work:
Annex VII Regulation (EC) No 1013 2006II.svg


Clipping and masking was removed, and negate extension applied on the raster part.


It seems that Inkscape has changed the way it imports pdf. Or maybe it's just for this kind of document. How that original PDF was elaborated?. The copy of the copy of the copy of the copy....

The extension:
http://tavmjong.free.fr/INKSCAPE/MANUAL ... aster.html

... or use Photoshop, or Gimp
.
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

2wicked
Posts: 21
Joined: Wed Jun 18, 2014 6:59 pm

Re: Bitmap in Inkscape file prints as black area

Postby 2wicked » Fri Mar 20, 2015 8:55 pm

Thank you Lazur URH,

Can I ask how you fixed this?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Bitmap in Inkscape file prints as black area

Postby Lazur » Fri Mar 20, 2015 9:53 pm

2wicked wrote:Thank you Lazur URH,

Can I ask how you fixed this?



Generally it was how:
Lazur URH wrote:
Annex VII Regulation (EC) No 1013 2006II.svg


Clipping and masking was removed, and negate extension applied on the raster part.

2wicked
Posts: 21
Joined: Wed Jun 18, 2014 6:59 pm

Re: Bitmap in Inkscape file prints as black area

Postby 2wicked » Fri Mar 20, 2015 10:48 pm

O.k. thanks.


Return to “Help with using Inkscape”