Changing background color doesn't always succeed.

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
avada
User
Posts: 191
Joined: Mon Jul 08, 2013 10:22 pm

Changing background color doesn't always succeed.

Post by avada »

Some stuff remains white for some reason.
Here's sample book:
childrens-literature.7z
(157.18 KiB) Downloaded 12 times
From here*: https://github.com/IDPF/epub3-samples/releases

I particularly notice it with pdf conversions of newer versions of calibre.
Converted with old calibre, renders fine: With newer Calibre, some parts remain white: Pictures:
Good:
kép.png
Bad:
kép(1).png
(The formatting is borked on the new conversion, but that's beside the point. It's the colors that matter.)

*The URL tag is completely broken on this forum. It's inserted as plaintext.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17906
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Changing background color doesn't always succeed.

Post by Tracker Supp-Stefan »

Hello avada,

There is a "Path" object on that page - which remains white even when the colour overrides are turned on:
image.png
If you remove that path - the whole content is coloured correctly:
image(1).png
Kind regards,
Stefan
avada
User
Posts: 191
Joined: Mon Jul 08, 2013 10:22 pm

Re: Changing background color doesn't always succeed.

Post by avada »

Tracker Supp-Stefan wrote: Mon May 01, 2023 12:23 pm Hello avada,

There is a "Path" object on that page - which remains white even when the colour overrides are turned on:
image.png

If you remove that path - the whole content is coloured correctly:
image(1).png

Kind regards,
Stefan
No idea what a path object is. What is it used for?
Why does the recoloring feature break because of it?
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8581
Joined: Wed Jan 03, 2018 6:52 pm

Re: Changing background color doesn't always succeed.

Post by TrackerSupp-Daniel »

Hello, avada

A "path" object is essentially any graphical base content element in a PDF that is not defined as "text" or an "image". This is usually the lines that make up tables, or the fancy symbols you may see in an engineering graphic, but in some cases, they can also act as a "background" object, simply being a large base content rectangle.

In short, the reason that adding the background color you want is not working here, is because this object is non-transparent, and is in the way of whatever background you try to set. You can select and remove this object with the "edit" tool, by clicking that area on the page, or by opening the "content" pane, shown in Stefan's screenshot, which can be opened with the "options" menu in the bottom left corner of the application.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
avada
User
Posts: 191
Joined: Mon Jul 08, 2013 10:22 pm

Re: Changing background color doesn't always succeed.

Post by avada »

Tracker Supp-Stefan wrote: Mon May 01, 2023 12:23 pm Hello avada,

There is a "Path" object on that page - which remains white even when the colour overrides are turned on:
kép.png
kép.png (72.03 KiB) Viewed 311 times
If you remove that path - the whole content is coloured correctly:
image(1).png

Kind regards,
Stefan
How do you bring this content view up? (EDIT: found it) (I never used editing features) Since then I ran into multiple files that wasn't recolored properly.
avada
User
Posts: 191
Joined: Mon Jul 08, 2013 10:22 pm

Re: Changing background color doesn't always succeed.

Post by avada »

TrackerSupp-Daniel wrote: Mon May 01, 2023 8:53 pm Hello, avada

A "path" object is essentially any graphical base content element in a PDF that is not defined as "text" or an "image". This is usually the lines that make up tables, or the fancy symbols you may see in an engineering graphic, but in some cases, they can also act as a "background" object, simply being a large base content rectangle.

In short, the reason that adding the background color you want is not working here, is because this object is non-transparent, and is in the way of whatever background you try to set. You can select and remove this object with the "edit" tool, by clicking that area on the page, or by opening the "content" pane, shown in Stefan's screenshot, which can be opened with the "options" menu in the bottom left corner of the application.

Kind regards,
It seems like this working is erroneous. It looks like if a path or whatever is a background its should be recolored as well.

I tried with two other PDF viewers I know of that can change background text. Foxit and SumatraPDF. And both recolored these documents fine.
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8581
Joined: Wed Jan 03, 2018 6:52 pm

Re: Changing background color doesn't always succeed.

Post by TrackerSupp-Daniel »

Hello, avada

Our background color feature explicitly follows the PDF specification, which is stated only to add a background object of the defined color, behind all other base content. We do not make any assumptions about other potentially "less useful" base content, nor do we remove or obscure these items, unlike some of our competitors. That is their decision to make, but that is not how our feature is intended to work at this time.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply