Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multipage TIF to PDF #34

Open
tothpaul opened this issue Apr 13, 2020 · 2 comments
Open

Multipage TIF to PDF #34

tothpaul opened this issue Apr 13, 2020 · 2 comments

Comments

@tothpaul
Copy link

Hello,

Is it possible with SynPDF to convert a multpage TIF to PDF using the CCITTFaxDecode format ?

XnView can do that, the PDF has almost the same size than the TIF

9 0 obj
<<
/Type /XObject
/Subtype /Image
/Name /Im0
/Filter [ /CCITTFaxDecode ]
/DecodeParms [ << /K -1 /Columns 2448 /Rows 3498 >> ]
/Width 2448
/Height 3498
/ColorSpace 11 0 R
/BitsPerComponent 1
/Length 10 0 R
>>
stream
@DelphiWorlds
Copy link

I happened across this issue while looking for alternatives to this:

https://github.com/FSharpCSharp/reportman-delphi/blob/master/rpgraphiccompression.pas

Which I might end up using anyway

@d4lyric
Copy link

d4lyric commented Feb 10, 2023

Modify your code here:
constructor TPdfImage.Create(aDoc: TPdfDocument; aImage: TGraphic; DontAddToFXref: boolean);
Other types of images will be converted to TBitmap except JPEG in above constructor, and that's why you can't have the same size after the conversion from TIF files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants