Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 52A18200B27 for ; Wed, 22 Jun 2016 21:32:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 51A09160A36; Wed, 22 Jun 2016 19:32:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 96E71160A24 for ; Wed, 22 Jun 2016 21:32:48 +0200 (CEST) Received: (qmail 14310 invoked by uid 500); 22 Jun 2016 19:32:47 -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 14299 invoked by uid 99); 22 Jun 2016 19:32:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2016 19:32:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0C472C0DF4 for ; Wed, 22 Jun 2016 19:32:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.3 X-Spam-Level: X-Spam-Status: No, score=0.3 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Ob4y9Tt9RfSL for ; Wed, 22 Jun 2016 19:32:45 +0000 (UTC) Received: from www168.your-server.de (www168.your-server.de [213.133.104.168]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A83B35FCF7 for ; Wed, 22 Jun 2016 19:32:44 +0000 (UTC) Received: from [88.198.220.130] (helo=sslproxy01.your-server.de) by www168.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1bFntD-00078k-9C for users@pdfbox.apache.org; Wed, 22 Jun 2016 21:32:43 +0200 Received: from [79.242.108.17] (helo=[192.168.188.33]) by sslproxy01.your-server.de with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.84_2) (envelope-from ) id 1bFntC-000704-VE for users@pdfbox.apache.org; Wed, 22 Jun 2016 21:32:43 +0200 Subject: Re: PDActionSound Issues References: <1f1e26e2-d801-0021-0ff1-ed742b2986e5@t-online.de> From: Maruan Sahyoun Content-Type: text/plain; charset=utf-8 X-Mailer: iPhone Mail (13F69) In-Reply-To: <1f1e26e2-d801-0021-0ff1-ed742b2986e5@t-online.de> Message-Id: Date: Wed, 22 Jun 2016 21:32:41 +0200 To: users@pdfbox.apache.org Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) X-Authenticated-Sender: sahyoun@fileaffairs.de X-Virus-Scanned: Clear (ClamAV 0.99.2/21772/Wed Jun 22 19:54:15 2016) archived-at: Wed, 22 Jun 2016 19:32:49 -0000 Hi > Am 22.06.2016 um 21:20 schrieb Tilman Hausherr : >=20 >> Am 22.06.2016 um 21:16 schrieb Gilad Denneboom: >> The thing is the renditions work less universally than the built-in "Play= a >> Sound" action, so if it's at all possible I would like to do it like >> that... It works, as you can see, but something goes wrong in the process= >> of reading the WAV file, causing a corruption. I tried playing around wit= h >> the various parameters, but couldn't solve it. Any ideas you might have >> will be greatly appreciated. >=20 > My other idea was the first one in that stackoverflow answer, which didn't= work. What I'd need is some file created with Adobe Professional. I could d= o this myself, but I don't want to install a trial version that is probably o= ver several GB large. I can do that - Acrobat already has a home on my disk :-) BR Maruan >=20 > Tilman >=20 >=20 >=20 >>=20 >> On Wed, Jun 22, 2016 at 8:28 PM, Tilman Hausherr >> wrote: >>=20 >>> If it doesn't work, then "Plan B" would be to use "renditions". I got th= at >>> to work with MP3 (by using another software that shall not be named), bu= t >>> the stackoverflow question specifically asked for ActionSound so I didn'= t >>> try that. I could try to implement this with PDFBox if nobody comes up w= ith >>> a solution. >>>=20 >>> Tilman >>>=20 >>>> Am 22.06.2016 um 14:44 schrieb Gilad Denneboom: >>>>=20 >>>> The files in question... >>>>=20 >>>> Test.pdf : The original PDF file with the links >>>> Test_edited.pdf : After running the code on it >>>> Con leche.wav : The original 8-bit wav file used >>>> Code.java : The relevant code snippet >>>>=20 >>>> PS. I'm using PDFBox version 2.0.2 >>>> =E2=80=8B >>>> Code.java >>>> < >>>> https://drive.google.com/file/d/0B_eBFHMNjkhsbUk3R3pSaGkzTFU/view?usp=3D= drive_web >>>> =E2=80=8B=E2=80=8B >>>> Test.pdf >>>> < >>>> https://drive.google.com/file/d/0B_eBFHMNjkhsUVhhR2NaV3JaOXc/view?usp=3D= drive_web >>>> =E2=80=8B=E2=80=8B >>>> Test_edited.pdf >>>> < >>>> https://drive.google.com/file/d/0B_eBFHMNjkhsZDViSWdPRS1RVDQ/view?usp=3D= drive_web >>>> =E2=80=8B=E2=80=8B >>>> Con leche.wav >>>> < >>>> https://drive.google.com/file/d/0B_eBFHMNjkhsUHBSZ3RuY3hhTVk/view?usp=3D= drive_web >>>> =E2=80=8B >>>>=20 >>>> On Mon, Jun 20, 2016 at 6:26 PM, Gilad Denneboom< >>>> gilad.denneboom@gmail.com> >>>> wrote: >>>>=20 >>>> Hi all, >>>>> I'm trying to associate a "Play Sound" action with a button field usin= g >>>>> the new PDActionSound object and the code provided by Tilman (Here: >>>>>=20 >>>>> https://stackoverflow.com/questions/36749927/pdfbox-creating-sound-obj= ect-with-link-reference-to-external-mp3-or-wav-file/36753430 >>>>> ), >>>>> and I'm getting mixed results. First of all, I'm unable to use a 16-bi= t >>>>> WAV >>>>> file, but it does work with 8-bit files. However, the files get corrup= t >>>>> in >>>>> the process and a nasty click is added to them. >>>>> Anyone experienced something like this in the past, or happens to know= >>>>> what could be causing it? I'm happy to share the source files, if >>>>> necessary. >>>>>=20 >>>>> Thanks! >>>>>=20 >>>>> Gilad. >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org