logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
DavidSlade  
#1 Posted : Sunday, August 1, 2021 7:15:00 PM(UTC)
Quote
DavidSlade

Rank: Newbie

Groups: Registered
Joined: 9/10/2020(UTC)
Posts: 6
Australia

Thanks: 2 times
There seems to be no built-in way to embed color spaces using pdfium.
I found a way to do this, adding an /ICCBased array. However the icc profile stream descriptor requires a page number: /N 3 for three component RGB color space
e.g.
<</Filter/FlateDecode/Length 1657900/N 3>>stream ...

Is there any way to add a page number?
Paul Rayman  
#2 Posted : Sunday, August 1, 2021 8:30:45 PM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
N is the number of color components in the color space
Stream.Dictionary["N"] = PdfTypeNumber.Create(3);

Edited by user Sunday, August 1, 2021 8:35:17 PM(UTC)  | Reason: Not specified

thanks 1 user thanked Paul Rayman for this useful post.
DavidSlade on 8/1/2021(UTC)
DavidSlade  
#3 Posted : Sunday, August 1, 2021 9:17:45 PM(UTC)
Quote
DavidSlade

Rank: Newbie

Groups: Registered
Joined: 9/10/2020(UTC)
Posts: 6
Australia

Thanks: 2 times
Originally Posted by: Paul Rayman Go to Quoted Post
N is the number of color components in the color space
Stream.Dictionary["N"] = PdfTypeNumber.Create(3);


Thanks, I discovered this, just after I posted the question.
Quick Reply Show Quick Reply
Users browsing this topic
Guest (2)
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.