Closed dtrehas closed 8 years ago
Thanks, @dtrehas. My preferred way of supporting TIFFs would be as a separate package in the contrib directory. This is because Go's standard library doesn't support the format and I am reluctant to make gofpdf dependent on non-standard packages. Most likely you could use the Go supplementary package tiff to generate a gofpdf.ImageInfoType structure. I am not familiar with the TIFF format so I am not sure whether this would be straightforward or not. In fpdf.go we could then add a method to register an ImageInfoType structure directly, bypassing the usual png/gif/jpg methods.
Do you have any experience with the tiff package?
Not really.. but I tried a bit a few years ago.
I found that there is https://github.com/pascaldekloe/got.6 library that can not be compiled. It was from the original tiff package that used to be released with GO long time go.
I could try to modify it a bit.
Dear Members of gofpdf,
Thank you for this wonderful project.
I would like to make a simplistic TIFF2PDF. I used to have it in java and I miss it. I can not though execute a command line util in the working environment.
I would like to know that if i would be able to read the TIFF structure in someway (dimensions, meta, CCIT-6 compressed ) what I should do from fpdf side to copy it in the FPDF structure?
Thank you in advance!