From users-return-11859-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Fri Jul 12 17:26:30 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4DCAD1802C7 for ; Fri, 12 Jul 2019 19:26:30 +0200 (CEST) Received: (qmail 82996 invoked by uid 500); 12 Jul 2019 17:26:28 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 82985 invoked by uid 99); 12 Jul 2019 17:26:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jul 2019 17:26:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E1F1AC0A4C for ; Fri, 12 Jul 2019 17:26:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.003 X-Spam-Level: *** X-Spam-Status: No, score=3.003 tagged_above=-999 required=6.31 tests=[HTML_IMAGE_RATIO_04=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=disabled Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id m3700ACD8uX1 for ; Fri, 12 Jul 2019 17:26:25 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=194.25.134.84; helo=mailout09.t-online.de; envelope-from=thausherr@t-online.de; receiver= Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 25606BC761 for ; Fri, 12 Jul 2019 17:26:24 +0000 (UTC) Received: from fwd04.aul.t-online.de (fwd04.aul.t-online.de [172.20.26.149]) by mailout09.t-online.de (Postfix) with SMTP id 972A9422374F for ; Fri, 12 Jul 2019 19:26:18 +0200 (CEST) Received: from [192.168.2.111] (GEkTLgZXohxhRgsAubtFGl-BbyJ+LqDQstxwPyI3r38nDmXUM-XUZMacmPXBRCYwtr@[84.151.177.203]) by fwd04.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1hlzJJ-44yAWu0; Fri, 12 Jul 2019 19:26:17 +0200 Subject: Re: PDFBOX -merge utility -Method not found error To: users@pdfbox.apache.org References: From: Tilman Hausherr Message-ID: <8609e592-4bf5-2c67-23ef-5f68f22cf945@t-online.de> Date: Fri, 12 Jul 2019 19:26:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------1734F080AF6522BE50005BBB" Content-Language: en-US X-ID: GEkTLgZXohxhRgsAubtFGl-BbyJ+LqDQstxwPyI3r38nDmXUM-XUZMacmPXBRCYwtr X-TOI-MSGID: e8f1b3f5-16f3-4fc3-b927-4fc21174a232 --------------1734F080AF6522BE50005BBB Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Hi, I know nothing about "Iseries". You will usually need pdfbox and fontbox, see also the dependencies section on the website. Make sure all are from the same version. Can you use other classes? E.g. PDDocument and PDPage? Try PDDocument doc = new PDDocument(); PDPage page = new PDPage(); System.out.println(page.getMediaBox()); doc.addPage(page); doc.close(); Tilman Am 12.07.2019 um 17:29 schrieb Smitha Thomas (Contractor): > > Hi, > > I am an Iseries developer , trying to merge two PDFs using the > org.apache.pdfbox.multipdf.PDFMergerUtility > > I am getting error which says �as below > > */� Java exception "java.lang.NoSuchMethodError: /* > > */��org/apache/pdfbox/multipdf/PDFMergerUtility.setDestinationFileName(Ljav" > /* > > */��when calling method "setDestinationFileName" with signature /* > > */��"(Ljava.lang.String;)V" in class /* > > */��"org.apache.pdfbox.multipdf.PDFMergerUtility". /* > > Please let me know is this in any particular .jar.I have downloaded > the JAR files from https://pdfbox.apache.org/download.cgi > > cid:image001.png@01D5389C.930946D0 > > When I am listing methods under the class path ��below command is for > iseries to list the methods in the classpath > > Command used� :�� javap -s org/apache/pdfbox/multipdf/PDFMergerUtility > > *_Result _* > > *_Method� : setDestinationFileName_* > > public void setDestinationFileName(java.lang.String); > > ��Signature: (Ljava/lang/String;)V > > *_Method :�� addsource_* > > public void addSource(java.io.File) throws java.io.FileNotFoundException; > > ���Signature: (Ljava/io/File;)V > > *_Method : mergeDocuments _* > > public void mergeDocuments() throws java.io.IOException; > > ��Signature: ()V > > I am converting the below source to Iseries methods ,I am able to do > the Instantiating PDFMergerUtility class.� All the > methods(addsource,mergeDocuments,setDestinationFileName) �under the > class gives same error saying method not found. > > cid:image002.png@01D5389C.930946D0 > > Thanks > > Smitha Thomas > > ------------------------------------------------------------------------ > This e-mail message, including any attachments, is for the sole use of > the intended recipient, and may contain material that is privileged or > confidential and legally protected from disclosure. If you are not the > intended recipient or have received this message in error, you are not > authorized to copy, distribute, or otherwise use this message or its > attachments. Please notify the sender immediately by return e-mail and > permanently delete this message and any attachments. --------------1734F080AF6522BE50005BBB--