Author Topic: Pagination  (Read 5710 times)

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
Pagination
« on: July 24, 2013, 11:14:25 AM »
Hi

We have a big AFP file that is loaded into CMOD.
Each account has 2000 plus pages.

During retrieval this AFP is tranformed into a PDF using the afp2pdf transform.
Understandably, it takes long (40 seconds) to render this PDF due to it's size.

I wanted to know if there is a way to solve this problem.
Can CMOD stream only first few pages of the PDF as and when the user scrolls further?

Thanks
Pankaj.

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
Re: Pagination
« Reply #1 on: July 26, 2013, 08:23:36 AM »
Hello Pankaj,

stupid question :-) but why do you need to transform such big lists in PDF? Would it be no better to have them looked in AFP?
Otherwise, it would be to store the documents directly in PDF... it would be better for the retrieve time.

Using ODWEK to do that, I suppose you need to know the AFP format in order to know where begin a new page and finish a page.
Then you could simply cut the pages, and deliver part after part of PDFs... or something like that.
That's only an idea.

Sincerely yours,
Alessandro
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
Re: Pagination
« Reply #2 on: July 26, 2013, 01:07:30 PM »

Alessandro

The end users will possibly not have AFP viewers and the current code doesnot use the applets.
So these are converted to PDF using AFP2PDF transform.

Going by your idea, do you know how can I convert the AFP into PDF before starting the ingestion process?
Can I somehow use the afp2pdf transform on my AIX server before I start ingesting the file using PDF indexer or generic indexer?

kbsiva

  • Guest
Re: Pagination
« Reply #3 on: August 01, 2013, 10:28:36 AM »
Hello Pankaj,
 If you have infoprint manager you can convert AFP to PDF and vice versa on your aix server.

Thanks,
Siva

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • Tenacious Consulting
Re: Pagination
« Reply #4 on: August 02, 2013, 07:20:51 AM »
Standard procedure when retrievals are going to take a long time (conversion or retrieval delays) is to tell the user to check back later for their converted / retrieved file.

The alternative is to convert everything, and cache it.  That may take a considerable amount of time and disk space, and might even represent a security problem.

The only sneaky/creative method I can think of is...  If the user only searches for a small subset of documents (ie, one login == one customer number) you could retrieve and convert the last X months of data in advance, and cache it for 24h or so.

Let us know how you solve this one...

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
Re: Pagination
« Reply #5 on: August 02, 2013, 09:08:00 AM »
These are actually daily trade confirmations. We have some accounts whose trades for a given day exceed 2000 pages.

So I think we will have to convert the big files into PDF and load them.
I need to figure out how this could be done. But it seems like this is the only solution.

However, when you say "you could retrieve and convert the last X months of data in advance, and cache it for 24h or so"; I am not sure how to do this.
Any pointers?

ewirtz

  • Full Member
  • ***
  • Posts: 134
Re: Pagination
« Reply #6 on: August 05, 2013, 01:01:18 AM »
Hi Pankaj,
just an idea. If you have something like 'page nnnn' on every page, you could configure another break for instance 'page nn'. By this you will get an additional break every 100 pages. Maybe this helps.

regards Egon

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
Re: Pagination
« Reply #7 on: August 09, 2013, 09:24:57 AM »
Thanks Egon.
These are AFPs with TLEs, soI really don't have that option.

ewirtz

  • Full Member
  • ***
  • Posts: 134
Re: Pagination
« Reply #8 on: August 12, 2013, 03:41:26 AM »
Hi Pankaj,

another option is to use an index exit. You define an additional field p.e. portion and you fill it with a default. The index exit is used to change the default to generate document breaks.

regards

Egon

jeffs42885

  • Guest
Re: Pagination
« Reply #9 on: October 29, 2013, 06:45:16 PM »
Not sure if this would apply in this situation, but what about enabling fast web search in your afp2pdf settings. (a2pxopts.cfg)