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 10:15:00 PM(UTC)
Quote
DavidSlade

Rank: Newbie

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

Thanks: 1 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 11:30:45 PM(UTC)
Quote
Paul Rayman

Rank: Administration

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

Thanks: 5 times
Was thanked: 121 time(s) in 118 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 11:35:17 PM(UTC)  | Reason: Not specified

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

Rank: Newbie

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

Thanks: 1 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
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.