This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Headers and Footers are not appearing in saved PDF

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

I'm having a problem getting the headers and footers to show up in a PDF that's generated and saved to disk. When the PDF is generated in the viewer, the headers/footers show up fine. The PDF (TempPDF.pdf) saves to the disk successfully. But, when TempPDF.pdf is opened back up, the content is there, and the headers/footers are gone. I don't know what I'm doing wrong. The code that's giving me problems is below. I'm using iText version 2 and JAVA 6.

Any help is greatly appreciated.


Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags. I'm not familiar with iText, so I cannot help you. By using code tags, you give yourself a way to show the community your code. It formats it for you, it's easier to read, you'll get more responses, you'll get faster responses, and it's generally accepted here.

John Price
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!