implement AddCcittG4 image to pdf to use with BitMiracle.LibTiff #1226
username77
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
{
{ NameToken.Create("K"), new NumericToken(-1) },
{ NameToken.Create("Columns"), new NumericToken(width) },
{ NameToken.Create("Rows"), new NumericToken(height) },
{ NameToken.Create("BlackIs1"), blackIs1 ? BooleanToken.True : BooleanToken.False }
// You can add these if needed for odd inputs:
// { NameToken.Create("EndOfLine"), BooleanToken.False },
// { NameToken.Create("EncodedByteAlign"), BooleanToken.False },
// { NameToken.Create("EndOfBlock"), BooleanToken.True }
};
{
{ NameToken.Type, NameToken.Xobject },
{ NameToken.Subtype, NameToken.Image },
{ NameToken.Width, new NumericToken(width) },
{ NameToken.Height, new NumericToken(height) },
{ NameToken.ColorSpace, NameToken.Devicegray },
{ NameToken.BitsPerComponent, new NumericToken(1) },
{ NameToken.Filter, NameToken.Create("CCITTFaxDecode") },
{ NameToken.DecodeParms, new DictionaryToken(decodeParms) },
{ NameToken.Length, new NumericToken(ccittG4Data.Length) }
};
}));
currentStream.Add(new InvokeNamedXObject(key));
currentStream.Add(Pop.Value);
Beta Was this translation helpful? Give feedback.
All reactions