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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Compressing PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Compressing PDF
 Login/Join
 
Master
posted
I have a process that puts a large amount of images into a PDF. Because of this the files are getting quite large. Anywhere from a few hundred MB to multiple GBs. So I'm trying to use GhostScript to compress the file and then call EDAGET to display it back out. Unfortunately EDAGET is returning a blank file instead of the results of the PDF. If I pull the file off manually using WinSCP, I get the correct result. Am I doing something wrong? Or should I just scp the file over to the Web Server and pull it back using Francis' suggestions in this thread: http://forums.informationbuild...647047666#8647047666 ?

Here is my sample code:
FILEDEF TEST_PDF DISK baseapp/test_pdf.pdf 
-RUN

TABLE FILE CAR
SUM RETAIL_COST DEALER_COST
BY COUNTRY 
BY CAR
ON TABLE HOLD AS TEST_PDF FORMAT PDF
END
-RUN

-SET &MYRETURN=SYSTEM(1000,'gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -sOutputFile=&FOLDER_LOC.EVAL/test_pdf_new.pdf &FOLDER_LOC.EVAL/test_pdf.pdf','D3');

-RUN

-MRNOEDIT EX EDAGET PDF,baseapp/test_pdf_new.pdf,b
  

This message has been edited. Last edited by: FP Mod Chuck,


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
Virtuoso
posted Hide Post
Hi Eric

One option is to use ReportCaster which can e-mail or FTP and zip the output.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Master
posted Hide Post
Thanks Chuck,

I'll keep that in mind, but zipping and emailing the file would most likely annoy my end users and not work in this case. I need to find a way to present it back to the end user for download from the page. I know that FOCUS has the SET FILECOMPRESS = ON command, but from my understanding this doesn't compress the images (which seems accurate from the testing I've done). Do you know if there is anything in the pipeline for IBI to include images in the PDF file compression command?


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
Virtuoso
posted Hide Post
Hi Eric

I will see what I can find out.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Expert
posted Hide Post
Have you seen any differences in file sizes for your PDFs with and without the FILECOMPRESS command? I saw as much as a 60% difference. What images are embedded in the PDFs?
quote:
SET FILECOMPRESS = ON




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Master
posted Hide Post
I saw a very minimal difference with SET FILECOMPRESS=ON in my testing. This seems to only compress the text portion and not the images. The report is a student roster and it contains the image of every student in the class. So I have about 10 +/- images per page with anywhere from 15 - 30 students per course. They are running this report for multiple days for multiple classes at a time, so the PDF grows rather quickly since the images aren't compressed and even duplicate images are preserved each time they appear. When I used Ghost script I saw a 90% reduction in size. My test file went from 8.8M to 669K. That is a considerable saving.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
Virtuoso
posted Hide Post
Eric

The FILECOMPRESS is what it is today, if you want it enhanced please submit a new feature request. For now continue down the path you are taking.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Compressing PDF

Copyright © 1996-2020 Information Builders