ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Reading and writing to PDF

Post new topic  Reply to topic
 Reading and writing to PDF « View previous topic :: View next topic » 
Author Message
santy
PostPosted: Thu Dec 14, 2006 11:19 pm    Post subject: Reading and writing to PDF Reply with quote

Centurion

Joined: 03 Nov 2006
Posts: 141

Hi
My requirement is bit strange.

I Have to read PDF file(PDF1) through JAVA put it in a DB and then read another PDF file(PDF2). then fetch PDF file -PDF1 from DB and concatinate it with PDF2 in WMB and send entire output to output queue.

on output queue when i run java program to create PDF file which is (PDF1 + PDF2) .. I am able to create output PDF with content of either PDF1 or PDF2 only.

My ESQL is as follows:
SET OutputRoot.BLOB.BLOB = TABLE_CONTENTS|| QUEUE_CONTENTS;

here TABLE_CONTENTS contains PDF1 read from database table using select statement and QUEUE_CONTENTS is PDF2 read from queue.

above ESQL generates output PDF with QUEUE_CONTENTS only and If i change it to SET OutputRoot.BLOB.BLOB = QUEUE_CONTENTS || TABLE_CONTENTS .. it generated output PDF with PDF1(TABLE_CONTENTS) only.

Please suggest some tricks so that My output PDF is combination of of PDF1 and PDf2.

PS: WMB6.0 , WIN XP. and Input node paerser as BLOB


regards,
santy
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 15, 2006 3:25 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Seems that you need some kind of PDF proxy that allows you to add pdf1 to pdf2 or vice versa.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri Dec 15, 2006 4:49 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You don't even want to think about playing around with the content of PDF documents in ESQL.

Yes, technically, they are text files. BUT they are highly structured text files that contain the source code for a probably Turing complete graphics description programming language. You wouldn't think you could combine two Java programs together by stringing the source code end to end, now would you?

There should be freely available and easy to find Java classes for doing all kinds of manipulations on PDF files. You should go look for those, and then figure out how to write a JavaCompute node that will combine your PDF files.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Reading and writing to PDF
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.