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 » Creating .PDF fom .png file

Post new topic  Reply to topic
 Creating .PDF fom .png file « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Thu Mar 09, 2017 12:48 pm    Post subject: Creating .PDF fom .png file Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi , I need some guidance. I need to create a pdf file from an image .png file received. Is there anyway that I can do this without using a Java Compute node?

Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Mar 09, 2017 1:30 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Sure.

You can write ESQL that knows the internal format and structure of a PDF file, and can then include the png file data in that.

It's probably a lot easier to use a JCN or .NET node to handle this for you....

Unless you already intimately know the structure and format of PDF documents.... Or have several months to learn that format and write code.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
matuwe
PostPosted: Thu Mar 09, 2017 2:15 pm    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi Thanks for the response.. Can I kindly ask which free pdf libraries could you recommend for this.. I only saw iText..
Back to top
View user's profile Send private message
timber
PostPosted: Thu Mar 09, 2017 2:29 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

You'll get better answers from a site like StackOverflow - but you would be well advised to do some thorough research first.
Back to top
View user's profile Send private message
adubya
PostPosted: Fri Mar 10, 2017 12:46 am    Post subject: Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

Create a Java class which uses a library such as https://pdfbox.apache.org/ to create a PDF and embed a PNG into it. Then wrap this class up such that it can be called by ESQL as a PROCEDURE.
_________________
Independent Middleware Consultant
andy@knownentity.com
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Creating .PDF fom .png file
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.