Hi Tilman,
What do you mean by "clarify which line is where in your code"?
Thanks

On Tue, Feb 4, 2020 at 8:32 AM Robert Pepersack <
robert.pepers...@itgfirm.com> wrote:

> Hi,
> I got past the DataFormatException exception.  But, I ran into the
> truncated file problem after that.  I thought it might be related.
> I will try to figure out answers to the Boxable questions.
> Thanks!
>
> On Mon, Feb 3, 2020 at 11:44 PM Tilman Hausherr <thaush...@t-online.de>
> wrote:
>
>> Hi,
>>
>> You answered only 1 of the 3 questions I asked.
>>
>> I can answer none of these additional questions as these all apply to
>> Boxable, which is a separate project.
>>
>> I wanted to investigate the Flate error. That one does not happen when I
>> open the file with PDFDebugger.
>>
>> Tilman
>>
>> Am 03.02.2020 um 22:06 schrieb Robert Pepersack:
>> > Thanks for your reply!
>> >
>> > Here is the PDF file that I'm trying to add a table to:
>> >
>> > http://www.filedropper.com/tabletemplate
>> >
>> > Here is the output from my Java code:
>> >
>> > http://www.filedropper.com/table_1
>> >
>> > In the output file, table.pdf, there are two problems:
>> > 1.  The footer from tabletemplate.pdf only shows up on the first page of
>> > table.pdf.
>> > 2.  The header row on the first page of table.pdf is truncated.
>> >
>> > I have two other questions:
>> > 1.  In the upper right-hand corner, on the pages after the first page,
>> > there is a box with content "1".  Is there a way to put page numbers in
>> > this box, in the format "Page 1 of 3", "Page 2 of 3", etc?
>> > 2.  Can I put a static header at the top of tabletemplate.pdf, and fill
>> the
>> > table in between the static header and static footer?
>> >
>> > Thanks, Tilman!
>> >
>> > On Mon, Feb 3, 2020 at 2:33 PM Tilman Hausherr <thaush...@t-online.de>
>> > wrote:
>> >
>> >> Please share the file and the stack trace and clarify which line is
>> >> where in your code.
>> >>
>> >> Tilman
>> >>
>> >> Am 03.02.2020 um 16:09 schrieb Robert Pepersack:
>> >>> Hi all,
>> >>>
>> >>> I'm trying to put a table in an existing PDF file that has content (so
>> >> far,
>> >>> just a footer at the bottom of the page).  When I load the page, I get
>> >> this
>> >>> exception:
>> >>> ERROR o.a.p.f.FlateFilter [main]: FlateFilter: stop reading corrupt
>> >> stream
>> >>> due to a DataFormatException
>> >>>
>> >>> Here is the code that loads and uses the PDF file:
>> >>>
>> >>>           File pdfFile = pdfUtil.getPdfFile("pdf/table.pdf");
>> >>>           PDDocument document = PDDocument.load(pdfFile);
>> >>>           PDPage page = document.getPage(0);
>> >>>           PDPageContentStream contentStream =
>> >>>                   new PDPageContentStream(document, page,
>> >>> PDPageContentStream.AppendMode.PREPEND, false, true);
>> >>> BaseTable table =
>> >>>                       new BaseTable(yPosition, yStartNewPage,
>> >> bottomMargin,
>> >>> tableWidth, margin, document, page, true, drawContent);
>> >>>
>> >>> Thanks!
>> >>> Bob
>> >>>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
>> >> For additional commands, e-mail: users-h...@pdfbox.apache.org
>> >>
>> >>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
>> For additional commands, e-mail: users-h...@pdfbox.apache.org
>>
>>

Reply via email to