Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
JPEG to PDF
 Login/Join
 
Member
posted
Hello Focal Point,

we have problems with JPEG Files from a DB in a PDF Report. The Files in the DB are compressed in a BLOB Field. They are shown correctly in the PDF Report but the size of the PDF File shows the size of the uncompressed JPEG File.
We would actually expect from WebFOCUS that it includes the original, compressed JPEG format into the PDF but as mentioned, it seems to uncompress it before including.
How can we achieve a still compressed JPEG image included into a PDF file by WebFOCUS

Example:
File compressed: about 1 MB
Resulting PDF: about 6 MB (the raw bitmap size: 1700 * 1200 px * 24Bits -> 6 MB)


Thank you and best Regards,
Klaus Molt


WebFOCUS 7.7.03
 
Posts: 4 | Registered: August 27, 2013Report This Post
Expert
posted Hide Post
Have you tried the FILECOMPRESS command?

quote:

FILECOMPRESS : The SET FILECOMPRESS=ON command compresses PDF output files.

The syntax is:

SET FILECOMPRESS = {ON|OFF}
where:

ON - Compresses PDF output files.

OFF - Does not compress PDF output files. OFF is the default value.


Meanwhile, I don't know anything about blobs, but I'm pretty sure that a blob has to be decompressed for any program to open it. I'm certain that even Adobe PhotoShop cannot open a compressed blob file.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Thank you for your Answer.
Unfortunately the FILECOMPRESS does not affect the JPEG files in a PDF as WF sais:
"Note also that using SET
FILECOMPRESS=ON will not reduce the size of images in a PDF file, since images are already
saved in compressed form."
also the PDF doesn't even show any content.
But as already mentioned, for us it looks like the files get enlarged to raw bitmap size instead of being compressed.

I don't think the JPEG file has to be uncompressed, if i directly download the JPEG file from the BLOB field in the DB even the windows photo viewer can show it.

Thanks and Regards


WebFOCUS 7.7.03
 
Posts: 4 | Registered: August 27, 2013Report This Post
Expert
posted Hide Post
quote:
directly download the JPEG file from the BLOB field in the DB
What is the size of the image file?

Is the image shown more than once in the PDF? Could that be a factor in the size of the PDF file?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Data to my Testimage:
(Compressed Image)
1600 x 1132 px
215 KB

The uncompressed Image is about 2 MB of size.
The Image is only shown once in the PDF.

Best Regards.


WebFOCUS 7.7.03
 
Posts: 4 | Registered: August 27, 2013Report This Post
Member
posted Hide Post
I have some new Informations:

There are different Filter Attributes for Pictures in PDF Files:
- Filter Attribute /DCTDecode for JPEG Files
- Filter Attribute /FlateDecode for PNG Files

In WebFocus the FlateDecode seems to be used as standard.
"<<
/Type /XObject
/Subtype /Image
/Name /Im1
/Width 1600
/Height 1132
/BitsPerComponent 8
/ColorSpace /DeviceRGB
/Filter Ý/ASCII85Decode /FlateDecode¨
/Length 2306227
>>
stream"

A JPEG File included into PDF has usualy a string like:
"<>stream"

I hope this may help.
Thank you in advance.

Best Regards.


WebFOCUS 7.7.03
 
Posts: 4 | Registered: August 27, 2013Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders