Click here to Skip to main content
15,920,687 members
Home / Discussions / Java
   

Java

 
AnswerRe: web service client Pin
427748030-Nov-10 16:26
427748030-Nov-10 16:26 
GeneralRe: web service client [modified] Pin
asha_s1-Dec-10 1:50
asha_s1-Dec-10 1:50 
GeneralRe: web service client Pin
asha_s3-Dec-10 7:42
asha_s3-Dec-10 7:42 
GeneralRe: web service client Pin
asha_s5-Dec-10 0:05
asha_s5-Dec-10 0:05 
QuestionjFuzzy logic or Matlab Pin
mesho27-Nov-10 7:37
mesho27-Nov-10 7:37 
AnswerRe: jFuzzy logic or Matlab Pin
Dr.Walt Fair, PE27-Nov-10 8:41
professionalDr.Walt Fair, PE27-Nov-10 8:41 
AnswerRe: jFuzzy logic or Matlab Pin
427748029-Nov-10 20:14
427748029-Nov-10 20:14 
QuestionFlatten or Merge PDF with PDFBox Pin
GlobX25-Nov-10 19:08
GlobX25-Nov-10 19:08 
Hi all,

I'm having an issue with PDFBox (1.3.1) - I'm using a PDF with AcroForms to basically pull off a 'mail merge'. I am successfully populating the fields with data, but what I want to do now is 'render it down' or 'flatten' it. I don't want these fields to be editable in the final result. (not entirely sure I'm communicating my intention clearly here, let me know if clarification is needed)

I've found this post that says to "remove all fields from [the] acroform". I've tried this in a number of ways:

pdfAcroForm.getFields().clear();

and...

pdfAcroForm.setFields(new ArrayList());

and...

Iterator<PDField> fields = pdfAcroForm.getFields().iterator();

while (fields.hasNext())
{
    PDField field = (PDField)fields.next();
    field.setAcroForm(null);
}

and variations thereof...

while typing this I thought to try:

pdfAcroForm.setFields(new COSArrayList());

maybe that will fix it?


Anyway, does anyone know how to do this? I have this niggling feeling that it's a language barrier (I'm a native C# speaker). I also have a niggling feeling that the aforementioned article is a big red herring that's taken me down the road to the dark side...

Any help would be MUCH appreciated Smile | :)
AnswerRe: Flatten or Merge PDF with PDFBox Pin
Nagy Vilmos25-Nov-10 22:44
professionalNagy Vilmos25-Nov-10 22:44 
QuestionSorted Linked List [modified] Pin
Babylon Lion25-Nov-10 8:10
Babylon Lion25-Nov-10 8:10 
AnswerRe: Sorted Linked List Pin
TorstenH.25-Nov-10 19:54
TorstenH.25-Nov-10 19:54 
AnswerRe: Sorted Linked List Pin
Richard MacCutchan25-Nov-10 22:06
mveRichard MacCutchan25-Nov-10 22:06 
GeneralRe: Sorted Linked List Pin
TorstenH.25-Nov-10 23:25
TorstenH.25-Nov-10 23:25 
GeneralRe: Sorted Linked List Pin
Richard MacCutchan26-Nov-10 0:50
mveRichard MacCutchan26-Nov-10 0:50 
GeneralRe: Sorted Linked List Pin
Babylon Lion26-Nov-10 16:59
Babylon Lion26-Nov-10 16:59 
AnswerRe: Sorted Linked List Pin
Luc Pattyn26-Nov-10 4:50
sitebuilderLuc Pattyn26-Nov-10 4:50 
GeneralRe: Sorted Linked List Pin
Babylon Lion26-Nov-10 16:54
Babylon Lion26-Nov-10 16:54 
GeneralRe: Sorted Linked List Pin
Luc Pattyn26-Nov-10 17:18
sitebuilderLuc Pattyn26-Nov-10 17:18 
QuestionCould not create system bitmap Pin
evan earnest25-Nov-10 2:09
evan earnest25-Nov-10 2:09 
AnswerRe: Could not create system bitmap Pin
TorstenH.25-Nov-10 2:58
TorstenH.25-Nov-10 2:58 
GeneralRe: Could not create system bitmap Pin
evan earnest25-Nov-10 18:53
evan earnest25-Nov-10 18:53 
QuestionHow do you build your GUIs? Pin
TorstenH.23-Nov-10 21:36
TorstenH.23-Nov-10 21:36 
AnswerRe: How do you build your GUIs? Pin
David Skelly23-Nov-10 22:13
David Skelly23-Nov-10 22:13 
AnswerRe: How do you build your GUIs? Pin
Cedric Moonen23-Nov-10 23:00
Cedric Moonen23-Nov-10 23:00 
GeneralRe: How do you build your GUIs? Pin
TorstenH.23-Nov-10 23:12
TorstenH.23-Nov-10 23:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.