Re: PDF 2.0, PDF/A-4 support

2023-11-10 Thread Maruan Sahyoun
Let‘s create tickets for each point and we include them in our release planning. WDYT Maruan > Am 11.11.2023 um 05:32 schrieb Tilman Hausherr : > > It turns out that the Colorburn / Colordodge change was done 5 years ago: > > https://svn.apache.org/viewvc?view=revision&revision=1823593 > > T

Re: "Too Many Open Files" IOException in ScratchFile

2023-03-14 Thread Maruan Sahyoun
You can set the ulimit on Linux - Standard is 1024 open files. BR Maruan > Am 14.03.2023 um 16:05 schrieb Gilad Denneboom : > > Hi all, > > I created an application that opens many files (I'm talking thousands), > searching them for specific pages and then merges those pages into new PDF > fi

Re: Overlay contents of multiple PDFs onto a single page

2021-06-17 Thread Maruan Sahyoun
could it be that you are overlaying with a white background? BR Maruan > Am 17.06.2021 um 18:21 schrieb Gilad Denneboom : > > Hi All, > > I'm trying to overlay the contents of multiple PDF pages onto a single > page, not as images though. So I've found the Overlay class and while it > works w

Re: Form Flatten

2021-05-11 Thread Maruan Sahyoun
Hi could you describe what doesn‘t work in more detail? What is the expected outcome and what do you get? Is it for all files or only some? Do you have a sample file to replicate which you could upload to a shared location? BR Maruan > Am 12.05.2021 um 08:04 schrieb Ranjeet Kuruvilla > : >

Re: Line breaks in form textfields

2020-11-09 Thread Maruan Sahyoun
ments are not allowed in the mailing list). > > Thanks, > VINH BR Maruan Sahyoun - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org

Re: Trying to edit the Rich Contents of a PDAnnotationMarkup

2020-10-20 Thread Maruan Sahyoun
Dear Gilad, at this point in time PDFBox doesn't support the appearance generation for rich text (neither for annotations nor for form fields). Sorry to be of no better help. With kind regards Maruan > Hi all, > > I'm working on a project where I need to edit the contents of a "FreeText" >

Re: Glyphs and images with an offset only with some pdf books

2020-05-05 Thread Maruan Sahyoun
Hi, take a look at the DrawPrintTextLocations example in the examples package. Thsi will give you some hints of hot to get the glyph positions. BR Maruan > Hello, > I am trying to get glyph and image positions of pdfs using pdfbox. > The thing is that with some books, that position is not the

Re: Load PDF from FileIn byte[]

2020-04-24 Thread Maruan Sahyoun
Hi, are you sure that the byteArray contains the complete PDF? Is there a stack trace? BR Maruan > Hey > > I am trying to create a PDDocument and fill it with data from a pdf that I > get over an API as a byte array. > > When I try to execute the following command: “PDDocument pdfDocument

Re: Problem reading a PDF file

2020-04-24 Thread Maruan Sahyoun
ream}, after which, it looks like all garbage until it > blows up. What do I do now? > > Is there an example somewhere of how I should be doing this that you could > just point me to? My sample file opens well in the Ubuntu 18.04 PDF viewer. > -- Maruan Sahyoun FileAffairs Gmb

Re: Consumed memory after closing PDDocument

2020-03-24 Thread Maruan Sahyoun
Memory is only freed after a GC run. You Need to invoke that explicitly. > Am 24.03.2020 um 14:40 schrieb Hesham Gneady : > > Hello, > > > > I am trying to make a test to see the amount of memory consumed before and > after loading a PDF file using PDFBox, and also the consumed memory after >

Re: Is it possible to use multiple fonts in a PDTextField?

2020-02-27 Thread Maruan Sahyoun
Hi, if you'd like to set a font for the form field which the end user is able to fill at a later time you can't use multiple fonts for a single text field. BR Maruan > Hello, > > I'm wondering if it's possible to use multiple fonts in the same text > field. I see that Tilman posted an example

Re: Creating a Barcode field using PDFBox

2020-02-25 Thread Maruan Sahyoun
CODE2" I end up with a field called "BARCODE2.BARCODE", and I can't > seem to change its calculation script, either. > >> On Tue, Feb 25, 2020 at 11:42 PM Maruan Sahyoun >> wrote: >> >> from the Adobe extensions to the PDF spec. >> >&g

Re: Creating a Barcode field using PDFBox

2020-02-25 Thread Maruan Sahyoun
7;m not seeing "DataMatrix" anywhere > in the COSDictionary of the Barcode field, for example. > >> On Tue, Feb 25, 2020 at 9:32 PM Maruan Sahyoun >> wrote: >> >> I'm not sure I understand the issue you are facing. >> >> you could

Re: Creating a Barcode field using PDFBox

2020-02-25 Thread Maruan Sahyoun
my intention, but I couldn't find how to set the COSDictionary > > value directly... In PDFBox 1.x this was possible, I believe, but I'm not > > seeing it in the 2.x version. > > > > On Tue, Feb 25, 2020 at 7:02 PM Maruan Sahyoun > > wrote: > > >

Re: Creating a Barcode field using PDFBox

2020-02-25 Thread Maruan Sahyoun
s will not work in > Reader without some special rights applied to the file, but that is not > currently a concern. > > On Tue, Feb 25, 2020 at 5:39 PM Maruan Sahyoun > wrote: > > > Hi Gilad, > > > > so if I understand you correctly you are creating a PDF form

Re: Creating a Barcode field using PDFBox

2020-02-25 Thread Maruan Sahyoun
> an image, not as a field. > > > > On Sun, Feb 23, 2020 at 11:20 PM Gilad Denneboom < > > gilad.denneb...@gmail.com> > > wrote: > > > > > DataMatrix > > > > > > On Sun, Feb 23, 2020 at 3:41 PM Maruan Sahyoun > > > wrote: >

Re: Creating a Barcode field using PDFBox

2020-02-23 Thread Maruan Sahyoun
Hi Gilad, what type of barcode would you like to generate? BR Maruan > Hi all, > > Does anyone have any pointers on how to create a Barcode field using PDFBox? > As far as I can see it's a text field, but with some special properties, > such as the PaperMetaData (PMD) object, and a calculatio

Re: Improving Image Extraction Speed

2020-02-10 Thread Maruan Sahyoun
sorry - attachments don't work on the mailing list. Could you upload the file to a shared location? BR Maruan > I have attached my pdf here, please take a look. > > Thanks > Aravinth > > On Mon, Feb 10, 2020 at 10:18 PM Maruan Sahyoun > wrote: > > would you

Re: Improving Image Extraction Speed

2020-02-10 Thread Maruan Sahyoun
Is there anything I'm missing here?, Anything can be improved in converting > the image? > > Thanks > Aravinth. > > > > On Mon, Feb 10, 2020 at 3:19 PM Maruan Sahyoun > wrote: > > > Hi, > > > > take a look at the ExtractImages.java source code in &g

Re: Improving Image Extraction Speed

2020-02-10 Thread Maruan Sahyoun
currentTimeMillis() - time)); > > > > The PDF Image extraction using pdfimages, > > long start = System.currentTimeMillis(); > > ProcessBuilder processBuilder = new ProcessBuilder("pdfimages" , "-j" , > > "test.pdf" , "out"); > > proce

Re: Incorrect text extraction of the PDF

2020-01-22 Thread Maruan Sahyoun
Hi, please take a look at the FAQ at https://pdfbox.apache.org/2.0/faq.html#how-come-i-am-getting-gibberishg38g43g36g51g5-when-extracting-text BR Maruan > Hi, > I have PDF, which is looks fine in readers but when I trying to extract text > I get garbage. > What am I doing wrong ? > PDF is att

Re: Changing Partial Name of PDNonTerminalField Changes Parent's Name

2020-01-17 Thread Maruan Sahyoun
When merging documents the merged AcroForm fields get a prefix "dummyFieldName" and a number (starting from 1) assigned as their root field names. This exists as -currently -when multiple AcroForms are merged each AcroForm set of fields is treated independently of each other. BR Maruan > Hi a

Re: Group Form Fields Into Rows

2020-01-07 Thread Maruan Sahyoun
le and the attachment here: http://www.filedropper.com/acrobatdc_2 > and here: http://www.filedropper.com/attachment > > On Tue, Jan 7, 2020 at 12:10 PM Maruan Sahyoun > wrote: > > > thx - but I was hoping to get a sample with the table like structure you > > were t

Re: Group Form Fields Into Rows

2020-01-07 Thread Maruan Sahyoun
ue BR Maruan > Here is the URL to get to my test PDF document: > http://www.filedropper.com/acrobatdc > > On Tue, Jan 7, 2020 at 10:32 AM Maruan Sahyoun > wrote: > > > if they have the same fully qualified name they will share the same value. > > You need to give

Re: Group Form Fields Into Rows

2020-01-07 Thread Maruan Sahyoun
the issue is. I think I got it from your descriptiopn but I might be wrong. BR Maruan > Exactly. That's the tricky part. How can I name them individually when > the names on the template are static? > > On Tue, Jan 7, 2020 at 9:43 AM Maruan Sahyoun > wrote: > > &g

Re: Group Form Fields Into Rows

2020-01-07 Thread Maruan Sahyoun
; name. When I type a value into either text field, that value is > automatically set in the other text field. > > On Tue, Jan 7, 2020 at 9:16 AM Maruan Sahyoun > wrote: > > > Ahen you enter the field names with a period "." as a separator in Acrobat > > the

Re: Group Form Fields Into Rows

2020-01-07 Thread Maruan Sahyoun
ot;row1! and the use getChildren() to get the direct child field. BR Maruan In addition naming and position > I have created a form template using Adobe Acrobat Pro DC. It's just rows > of form fields arranged in a grid. > > On Tue, Jan 7, 2020 at 8:55 AM Maruan Sahyoun >

Re: Group Form Fields Into Rows

2020-01-07 Thread Maruan Sahyoun
g list, and couldn't find it. > > Thanks, > Rob -- Maruan Sahyoun FileAffairs GmbH Josef-Schappe-Straße 21 40882 Ratingen Tel: +49 (2102) 89497 88 Fax: +49 (2102) 89497 91 sahy...@fileaffairs.de www.fileaffairs.de Geschäftsführer: Maruan Sahyoun Handels

Re: Date Field Contents Not Visible

2019-12-24 Thread Maruan Sahyoun
gt; content is the same: > > AFDate_FormatEx("mm/dd/"); > > I agree that we should create the appearance stream. But I still wonder why > the decision was made a long time ago not to. > > Tilman > >> Am 24.12.2019 um 18:07 schrieb Maruan Sahyoun

Re: Date Field Contents Not Visible

2019-12-24 Thread Maruan Sahyoun
> > > > > File outputFile = new File("test.pdf"); > > > > doc.save(outputFile); > > > > } > > > > } catch (IOException e) { > > > > throw new AssistBusinessException(e); > > > > } > > > > }

Re: Date Field Contents Not Visible

2019-12-24 Thread Maruan Sahyoun
> > throw new AssistBusinessException(e); > > > } > > > } > > > > > > } > > > > > > On Tue, Dec 24, 2019 at 10:43 AM Tilman Hausherr > > > wrote: > > > > > > > Am 23.12.2019 um 22:09 schrieb Robert Pepersack: > > > >

Re: Date Field Contents Not Visible

2019-12-24 Thread Maruan Sahyoun
FBox > > > version did you use (the current version is 2.0.18)? I'm asking because > > > the date field does not have an appearance stream. > > > > > > Tilman > > > > > > > > >

Re: Alignment Issue

2019-12-19 Thread Maruan Sahyoun
Hi, unfotunately mail attachments are being filtered out. You need to place the PDF at a public location so we can take a look at it. BR Maruan > > I don't know what do you mean by shared host. I upload PDF with this mail > attachment. This pdfform you can find alignment (PRINT PLAYER's NAME

Re: Parsing order issue

2019-12-17 Thread Maruan Sahyoun
Hi Tim, unfortunately the image didn't make it to the mailing list. What is the issue here? Is the extracted text not in the right order? Order of PDF parsing and visual order of text are not related. BR Maruan > PDFBox Colleagues, > Any recommendations? > > On Mon, Dec 16, 2019 at 7:05 A

Re: Is it possible to set the line height in a PDTextField?

2019-12-16 Thread Maruan Sahyoun
--------- > > > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > > > For additional commands, e-mail: users-h...@pdfbox.apache.org > > > > > > > >

Re: Parsing huge PDF (400Mb, 2700 pages)

2019-11-14 Thread Maruan Sahyoun
none of them brought the > desired amelioration. > > I have the impression that memory plays a role. I have no more than 3GB (and > I think this should be enough as we are streaming the document and using > event based XML parser). > > Are they things I should be a

Re: Parsing huge PDF (400Mb, 2700 pages)

2019-11-14 Thread Maruan Sahyoun
ages (although quite > fast at the beginning). I've tried several ideas but none of them brought the > desired amelioration. > > I have the impression that memory plays a role. I have no more than 3GB (and > I think this should be enough as we are streaming the document and usi

Re: default resources and appearance

2019-11-12 Thread Maruan Sahyoun
hown. I'll put this on my TODO list. > > Tilman > > Am 12.11.2019 um 08:21 schrieb Maruan Sahyoun: > > re labels - there is nothing like a label as a property for an AcroForm > > field. Labels are regular and have to be placed similar > > to other

Re: default resources and appearance

2019-11-11 Thread Maruan Sahyoun
; textSSN.setDefaultAppearance(defaultAppearance); > > > > > > > > In some cases we need Helvetica in italics for select fields of text > > > > would like to be able to take the four lines and condense theminto a > > > > class and be able to chan

Re: default resources and appearance

2019-11-11 Thread Maruan Sahyoun
Not sure I understand what you are trying to achieve. AcroForm itself is not page oriented but the widgets i.e. the visual representation of the form fields are. It's sufficient to add the default resources to the AcroForm itself and reference these in the form fields default appearance string.

Re: low level parsing example?

2019-10-17 Thread Maruan Sahyoun
t; go back to 1.8.x? > > I'm interested in finding: > > * Objects that aren't in the tree > * Objects with generation > 1 > * Some per object stats... > * Examples of multiple XMP files > > Thank you! > >Cheers, > >Tim -- Mar

Re: Re: AW: Re: Forms elements not being recognised.

2019-06-19 Thread Maruan Sahyoun
> PDDocumentCatalog docCatalog = document.getDocumentCatalog > <http://document.getDocumentCatalog> > > <http://document.getDocumentCatalog> <http://document.getDocumentCatalog>> > ; (); > > PDAcroForm acroFom = docCatalog.getAcroForm > <http://docCatalo

Re: Preventing duplicate fonts in merged PDFs

2019-06-05 Thread Maruan Sahyoun
Hi, PDFMerger has some handling of resources to prevent duplicates but your milage may vary. E.g. font subsets are not merged into a combined font. Same images from different PDFs might not be merged into a single one. Depends on the characteristics of the resource which needs to be added. BR M

Re: flattening text in PDPageContentStream

2019-05-31 Thread Maruan Sahyoun
i got. > > On Fri, May 31, 2019 at 2:10 PM Maruan Sahyoun wrote: > > shall the regular text of the PDF still be selectable? > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@

Re: flattening text in PDPageContentStream

2019-05-30 Thread Maruan Sahyoun
shall the regular text of the PDF still be selectable? > no. sorry. watermark as part of the page. instead of using images, i want > to use text as watermarks. > > On Fri, May 31, 2019 at 1:53 PM Maruan Sahyoun > wrote: > > > as part of an annotation? > > > &

Re: flattening text in PDPageContentStream

2019-05-30 Thread Maruan Sahyoun
as part of an annotation? > Am 31.05.2019 um 07:47 schrieb chitgoks : > > im creating watermark text. should i be using something different? > > On Fri, May 31, 2019 at 1:41 PM Maruan Sahyoun > wrote: > >> text at a page level is normally selectable - why do

Re: flattening text in PDPageContentStream

2019-05-30 Thread Maruan Sahyoun
text at a page level is normally selectable - why do you want to prevent that? Or is that content stream part of a AcroForm field? BR Maruan > Am 31.05.2019 um 07:31 schrieb chitgoks : > > so i show some text in PDPageContentStream using showText() but these are > selectable. > is there a way

Re: Form flattening with or without refresh

2019-05-13 Thread Maruan Sahyoun
orm, > correct? > Andrea > > Il giorno lun 13 mag 2019 alle ore 16:26 Maruan Sahyoun < > sahy...@fileaffairs.de> ha scritto: > > > Hi, > > > > in theory you should get the same result but the rendering is dependent on > > the forms content stream. Le

Re: Form flattening with or without refresh

2019-05-13 Thread Maruan Sahyoun
Il giorno lun 13 mag 2019 alle ore 16:26 Maruan Sahyoun < > sahy...@fileaffairs.de> ha scritto: > > > Hi, > > > > in theory you should get the same result but the rendering is dependent on > > the forms content stream. Letting PDFBox reconstruct > > the c

Re: Form flattening with or without refresh

2019-05-13 Thread Maruan Sahyoun
ppearance=true we get a lot of Form XObjects (I guess > one for each field, even empty ones) and a slightly wrong positioning of > the text field. > Could you please help me understand what's the issue here? > Thanks > > Here the files: > https://www.dropbox.com/sh/rmywlrmf

Re: Conveting PDFont to java.awt.font

2019-02-27 Thread Maruan Sahyoun
Could you be a little more specific what the issues are you are facing? Please note that PDFont is the main interface to what are different types of font formats such as TrueType but also PDF vector based ones. BR Maruan > Hello, > We are creating a PDF viewer which is an open source project

Re: How to check the last character in processed stream

2019-02-26 Thread Maruan Sahyoun
er { > > > > @Override > > > > public void processTextPosition( TextPosition t ) { > > > >// Some processing code. > > > >// I need to check if this is the last > > letter to

Re: How to check the last character in processed stream

2019-02-26 Thread Maruan Sahyoun
TextPosition( TextPosition t ) { > >// Some processing code. > >// I need to check if this is the last letter to > process in this stream!!! > >} > > } > > > > Best regards, > > Hesham > >

Re: Read and or Flatten xfa form

2019-02-23 Thread Maruan Sahyoun
As Tilman pointed out XFA is XML so as soon as you have the XML you can extract the content you are interested in. If you have a static XFA based form (i.e. there is an XFA entry and the /Fields entry is not empty) you can safely ignore the fact that it's XFA and do the text extraction as you'd

Re: extracting checkboxes in non acroform pdf

2018-11-29 Thread Maruan Sahyoun
> Am 29.11.2018 um 20:56 schrieb Tilman Hausherr : > > Am 29.11.2018 um 09:49 schrieb Nicolas Paris: >> Hi >> >>> It could be an XFA forms pdf... then you'd have to analyze the XML content. >> I opened the pdf in a text editor, and I can say the boxes are in a >> stream xml entity, in binary fo

Re: extracting checkboxes in non acroform pdf

2018-11-29 Thread Maruan Sahyoun
Hi, > Am 29.11.2018 um 21:27 schrieb Nicolas Paris : > > On Thu, Nov 29, 2018 at 08:56:59PM +0100, Tilman Hausherr wrote: >> Am 29.11.2018 um 09:49 schrieb Nicolas Paris: >>> Hi >>> It could be an XFA forms pdf... then you'd have to analyze the XML content. >>> I opened the pdf in a text ed

Re: Text extracting error

2018-11-28 Thread Maruan Sahyoun
Hi, > We've tried to extract text from PDF > When we tried to extract Korean from text in PDF file, the order of those > have been broken while English was done well. > This does not mean that Korean is not extracted from PDF, it is well done, > but sequence has some problem. > This Problem occurr

Re: Error in conforming to PDF/A-2b

2018-11-23 Thread Maruan Sahyoun
Hi > Hi, > I am using PDFBox to create legally valid PDF/A-2b documents, on a Linux Mint > machine. > For this, I have .odt files with embedded fonts created by LibreOffice > Writer, that I export as PDFs. Then, I manipulate the metadata of the > documents by aligning the XMP metadata with the

Re: while trying to get font PDType1Font.HELVETICA , the code seems to get stuck on AIX machine

2018-10-31 Thread Maruan Sahyoun
ere was a font realted issue on AIX which also provides some details about the internals (e.g. how to get more log details) Mayve worth checking https://issues.apache.org/jira/browse/PDFBOX-3377 BR Maruan > > Thanks, > Sushant > > > On 31-10-2018 20:47, Maruan Sahyoun wrote: >

Re: while trying to get font PDType1Font.HELVETICA , the code seems to get stuck on AIX machine

2018-10-31 Thread Maruan Sahyoun
Hi, when you write ".. stuck .." what do you mean by that. Are there any messages in the jboss server log? Any reason you are not using the newer version of PDFBox 2.0? The final release of PDFBox 2.00 was in May 2016. Current version is 2.0.12. Most likely your issue is related to fonts not b

Re: PDComboBox.setValue("selection text") displays nothing?

2018-09-19 Thread Maruan Sahyoun
he "I: (1)" and subrow "0:0". (or "0:1", etc., > > depending on which index I selected). > > So.. maybe Reader knows the value from "V" but doesn't know what to display > > without the index being set? > > > > > &g

Re: PDComboBox.setValue("selection text") displays nothing?

2018-09-18 Thread Maruan Sahyoun
it, the most obvious difference is that the > PDFBox file is missing the "I: (1)" and subrow "0:0". (or "0:1", etc., > depending on which index I selected). > So.. maybe Reader knows the value from "V" but doesn't know what to display > wi

Re: PDComboBox.setValue("selection text") displays nothing?

2018-09-18 Thread Maruan Sahyoun
t; > https://imgur.com/nwjrgzS > > > ALSO wrt: > "Current version is 2.0.11, please retry with that one. > > Tilman" > > Thanks, cannot but will promote the idea localy: the version is out of my > control. Why, were fixed introduced for ComboBoxes? > > >

Re: PDComboBox.setValue("selection text") displays nothing?

2018-09-17 Thread Maruan Sahyoun
ile. > > > -Original Message- > From: Maruan Sahyoun > Sent: Monday, September 17, 2018 10:31 AM > To: users@pdfbox.apache.org > Subject: Re: PDComboBox.setValue("selection text") displays nothing? > > WARNING: This is an external email that originated

Re: PDComboBox.setValue("selection text") displays nothing?

2018-09-17 Thread Maruan Sahyoun
Hi, > Am 17.09.2018 um 17:05 schrieb Dagnon, William : > > Hello again all, > > I'm trying to fill out someone else's PDF programmatically, and while the > text values work fine as before, the controls with Opts never display their > values after I've set them. In the saved PDF, there is no te

Re: Text not wrapping on a fillable PDF field

2018-09-10 Thread Maruan Sahyoun
Hi, > Am 10.09.2018 um 21:41 schrieb Shawn Oplinger - NOAA Affiliate > : > > Hi, > > I have a fillable PDF form, that I am using PDFBox to successfully populate > with text values from my database. > > I have one field however, that can contain up to 2,000 characters. > Using Adobe Acrobat P

Re: API Docs for 2.0.11 aren't online

2018-08-14 Thread Maruan Sahyoun
Hi, the javadoc for 2.0.11 is online now. Thanks for letting us know. BR Maruan > Am 14.08.2018 um 07:55 schrieb Maruan Sahyoun : > > Hi, > > I‘ll take care of that.and legt you know as Sion as the docs are updated. > > BR Maruan > >> Am 13.08.2018 um 23:40 s

Re: API Docs for 2.0.11 aren't online

2018-08-13 Thread Maruan Sahyoun
Hi, I‘ll take care of that.and legt you know as Sion as the docs are updated. BR Maruan > Am 13.08.2018 um 23:40 schrieb Alex Yankov : > > Hi, > > I was looking for the latest docs for pdfbox online and couldn't find them > at https://pdfbox.apache.org/docs/2.0.11/javadocs/ . The last docs wer

Re: About the WinAnsiEncoding error

2018-04-27 Thread Maruan Sahyoun
font in the field. Have a look at https://stackoverflow.com/a/43002076/4690214 for a possible workaround. BR Maruan > > Thanks, > Mickael > > On Fri, Apr 27, 2018 at 2:59 PM, Maruan Sahyoun > wrote: > >> >>> Am 27.04.2018 um 13:44 schrieb Mickael Marrache < >

Re: About the WinAnsiEncoding error

2018-04-27 Thread Maruan Sahyoun
> Am 27.04.2018 um 13:44 schrieb Mickael Marrache : > > This is what I meant by Document Properties, but it only shows you the > fonts used by the document and tells if embedded or subset embedded, but > nothing more. > > I really don't understand why a PDF can be filled with Acrobat DC or Reade

Re: Performance issue with PDFBox 2.0.8

2018-04-16 Thread Maruan Sahyoun
Hi, > Am 16.04.2018 um 09:21 schrieb Arthur Wang : > > Hi, everyone, > > > > I am using PDFBox 2.0.8 and java 8 running in tomcat 8 for production to > convert pdf into image for display. it works very well for pdf file size less > than 5 M, it takes about 3800 milliseconds. however, it slow

Re: flatten specific fields in a pdf

2018-04-14 Thread Maruan Sahyoun
#x27;t contain any value. You'd have to calculate and set the fields value yourself and not depend on the fields calculate action. BR Maruan > Am 14.04.2018 um 09:55 schrieb Maruan Sahyoun : > > Hi Ricky, > > I've tested with the jar file pdfbox-3.0.0-20180411.

Re: flatten specific fields in a pdf

2018-04-14 Thread Maruan Sahyoun
s in pdfbox-3.0.0-20180411.183355-618.jar > > > > -Original Message- > From: Maruan Sahyoun > Sent: Thursday, April 12, 2018 10:45 AM > To: users@pdfbox.apache.org > Subject: Re: flatten specific fields in a pdf > > Mhmm, > >> Am 12.04.2018 um 1

Re: flatten specific fields in a pdf

2018-04-12 Thread Maruan Sahyoun
ry to verify that later. Would it be possible for you to build from source? BR and sorry for the inconvenience Maruan > > > > -Original Message- > From: Maruan Sahyoun > Sent: Thursday, April 12, 2018 10:45 AM > To: users@pdfbox.apache.org > Subject: Re: f

Re: flatten specific fields in a pdf

2018-04-12 Thread Maruan Sahyoun
est.testFlattenSpecificFieldsOnly() ? http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroFormTest.java?view=log BR Maruan > > > > > -Original Message- > From: Maruan Sahyoun > Sent: Thursday, April 12

Re: flatten specific fields in a pdf

2018-04-12 Thread Maruan Sahyoun
18:33:57 UTC 2018 > > 2584679 > > > > > > > Ricky > > > > > > -Original Message- > From: Maruan Sahyoun > Sent: Thursday, April 12, 2018 8:32 AM > To: users@pdfbox.apache.org > Subject: Re: flatten specific fields in a

Re: flatten specific fields in a pdf

2018-04-12 Thread Maruan Sahyoun
cally https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox/3.0.0-SNAPSHOT/ Sroll down to get the latest build from yesterday. Please let me know if there are issues with that. BR Maruan > > Thanks > Ricky > > > -Original Message- > From: M

Re: flatten specific fields in a pdf

2018-04-11 Thread Maruan Sahyoun
s in a pdf > > Maruan, I added the pdf and a word doc showing a screen shot of some of the > fields to PDFBOX-3809 > > thanks > Ricky > > > > -Original Message- > From: Maruan Sahyoun > Sent: Sunday, April 1, 2018 12:24 PM > To: users@pdfbox.apa

Re: Fill XFA pdf using PDFBox

2018-04-10 Thread Maruan Sahyoun
Hi Kush, > Hello apache, > > > I'm new to PDFBox library. I want to fill an XFA pdf by extracting the fields > and setting their corresponding value. I did a basic research and came across > this > (https://mail-archives.apache.org/mod_mbox/pdfbox-users/201409.mbox/%3c420ecc47-637a-4abf-9544

Re: Fetching options for PDChoice causes ClassCastException

2018-04-07 Thread Maruan Sahyoun
Hi, > Am 07.04.2018 um 15:01 schrieb Matthias Gall : > > Dear all, > > I am trying to fetch the options available for a PDChoice field in a form but > get a ClassCastException from the PDFBox internals. > > The problematic PDF is an Inheritance Tax form from the UK's Revenue and > Customs, sp

Re: flatten specific fields in a pdf

2018-04-01 Thread Maruan Sahyoun
Could you add a sample PDF and the list of fields you'd like to get flattened to • PDFBOX-3809 I'll look to get something done but that's based on the requirements that all fields and their annotations need to be properly defined i.e. have the pages they relate to set etc. BR Maruan

Re: International characters only show correctly when form field is selected

2018-03-08 Thread Maruan Sahyoun
Hi Scott, > Am 08.03.2018 um 20:42 schrieb Scott Tomer : > > All, > > I’m new to the list, but tried to search pdfbox-users.markmail.org > before asking with no luck. > > We are using pdfbox to fill in some form fields in an Adobe generated > template but g

Re: Stream parsing issue in multi-stream page

2018-02-05 Thread Maruan Sahyoun
Hi, > Am 05.02.2018 um 15:43 schrieb Esteban R : > > Hello. I need to rewrite a PDPage with many streams, one by one (making some > transformations, and there is a special need to do it one stream at a time). > Parsing (and pdfdebug) returns "wrong" tokens if one command begins at the > end

Re: Reading fractions in text

2018-01-30 Thread Maruan Sahyoun
> Am 31.01.2018 um 02:51 schrieb jason mazzotta : > > Hello, > I know next to nothing about the PDF document format. I am using > pdfbox to read the text out of PDF files that contain recipes. The > PDFs are created on a Fujitsu ScanSnap S1300i document scanner. The > software that creates

Re: "Could not find font: /TimesNewRoman" when flattening form with refreshAppearances set to true.

2018-01-30 Thread Maruan Sahyoun
COSName{BaseFont}:COSName{Times-Roman};COSName{Encoding}:316217735;COSName{Name}:COSName{TiRo};COSName{Subtype}:81291287;COSName{Type}:2195567;}};COSName{ZaDb}:COSDictionary{COSName{Type}:2195567;COSName{Subtype}:81291287;COSName{BaseFont}:COSName{ZapfDingbats};};};} > -Original Message--

Re: Does anyone has experience in using pdfbox in oracle database jvm?

2018-01-25 Thread Maruan Sahyoun
> Am 25.01.2018 um 18:44 schrieb Ramos, Luis (DOC) : > > The pdf documents are stored in a BLOB column. The reason we are trying to do > it inside the DB is to avoid to download to filesystem to process pdftoimage > method and upload the image back to the DB from filesystem. > couldn't you r

Re: "Could not find font: /TimesNewRoman" when flattening form with refreshAppearances set to true.

2018-01-25 Thread Maruan Sahyoun
Could you upload a sample form to a public location to look at the internals? Very likely the font reference used in one of the form fields doesn't match the available font resources. BR Maruan > Am 25.01.2018 um 16:22 schrieb David Fertig : > > I've been working with the latest release, 2.0.

Re: media box with rotation

2018-01-10 Thread Maruan Sahyoun
Hi, > Am 10.01.2018 um 12:41 schrieb chitgoks : > > Hi maruan > > i tried it like this > > PDRectangle rectToUse = pdPage.getMediaBox(); > > if (pdPage.getRotation() != 0 && pdPage.getRotation() != 180) > rectToUse = new PDRectangle(0, 0, > p

Re: media box with rotation

2018-01-09 Thread Maruan Sahyoun
Hi, > tilman mentioned this before that there is no convenience method available > > just wondering if anyone else made this work? > > i need a rectangle returned based on page orientation you need to get the media box and the rotation. If the rotation has a value different to 0 you need to sw

Re: freetext annotation appearance stream in landscape

2018-01-07 Thread Maruan Sahyoun
Hi, > so i am currently working on making my free text annotation appearance > stream work in landsdcape mode > > thing so, the content stream does not rotate even if i rotate it via > transform() using Matrix.getRotateInstance() > > is there some other issue i need to take into account? would

Re: PDAnnotationLink visibility issues

2017-11-17 Thread Maruan Sahyoun
> Am 17.11.2017 um 00:20 schrieb Gilad Denneboom : > > Does that get automatically published in the web-version as well when the > next release is made? > https://pdfbox.apache.org/docs/2.0.8/javadocs/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLink.html When the next release i

Re: print test on non windows system (PDFBOX-4011)

2017-11-14 Thread Maruan Sahyoun
Hi Tilman, on OSX I get the output.png with a barcode like image but the printed page is blank. In additon the following error message is generated (Java 1.8) I could do another test on linux if you like. BR Maruan 2017-11-14 22:00:16.289 java[3293:185106] Cocoa AWT: Not running on AppKit thr

Re: Command line utilities issue a document display warning

2017-10-05 Thread Maruan Sahyoun
t; - > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > > > --------

Re: PDFBox Access Adobe Lifecycle Rights Management protected PDF

2017-09-14 Thread Maruan Sahyoun
Hi, > Am 15.09.2017 um 05:15 schrieb Patrick Star : > > Good Day! > > I am currently trying to develop a PDF reader/viewer desktop application > with JavaFX. Everything was going well until I found out that the PDF's > intended to be read by the software require a username and password > combin

Re: how to remove a field from a PDF

2017-09-13 Thread Maruan Sahyoun
gt; > > > -Original Message- > From: Maruan Sahyoun [mailto:sahy...@fileaffairs.de] > Sent: Tuesday, September 12, 2017 3:23 PM > To: users@pdfbox.apache.org > Subject: Re: how to remove a field from a PDF > > Hi Rick, > > is it possible to share the f

Re: how to remove a field from a PDF

2017-09-12 Thread Maruan Sahyoun
ow Maruan > > > Ricky > > > > > -Original Message- > From: Maruan Sahyoun [mailto:sahy...@fileaffairs.de] > Sent: Tuesday, September 12, 2017 3:23 PM > To: users@pdfbox.apache.org > Subject: Re: how to remove a field from a PDF > > Hi Rick, > > i

Re: how to remove a field from a PDF

2017-09-12 Thread Maruan Sahyoun
Hi Rick, is it possible to share the form at a public location? What happens to the filled out form? Do. you view it in Adobe Reader? For a LiveCycle form you need to update the dataset:data node in the XFA as this is what Reader looks at. BR Maruan > Am 12.09.2017 um 22:14 schrieb Baker, R

Re: QUADDING constants

2017-09-05 Thread Maruan Sahyoun
Hi, > Am 06.09.2017 um 07:56 schrieb Andreas Lehmkuehler : > > Am 06.09.2017 um 02:42 schrieb Gary Grosso: >> PDVariableText.setQ (and various other methods) suggest seeing the "QUADDING >> constants". >> Can someone please post a link? Or tell me what class to look at? I've >> searched, google

Re: Problem with appearance construction when newline character included in field value

2017-08-24 Thread Maruan Sahyoun
ne text in Adobe Reader is the field is set to single line only? BR Maruan > > Thanks, > Scott > >> On Aug 24, 2017, at 2:19 PM, Maruan Sahyoun wrote: >> >> Hi Scott, >> >>> Am 24.08.2017 um 17:53 schrieb Scott Coldwell : >>> >>&

Re: Problem with appearance construction when newline character included in field value

2017-08-24 Thread Maruan Sahyoun
e a change to the document so even if the user is not changing anything he will be asked to save the form when closing. BR Maruan > >> On Aug 24, 2017, at 3:19 AM, Maruan Sahyoun wrote: >> >> >> >>> Am 24.08.2017 um 09:10 schrieb Scott Coldwell >>

  1   2   3   4   5   6   7   8   9   >