Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 95337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:38:33+00:00 2026-05-10T23:38:33+00:00

We use iText to generate PDFs from Java (based partly on recommendations on this

  • 0

We use iText to generate PDFs from Java (based partly on recommendations on this site). However, embedding a copy of our logo in an image format like GIF results in it looking a bit strange as people zoom in and out.

Ideally we’d like to embed the image in a vector format, such as EPS, SVG or just a PDF template. The website claims that EPS support has been dropped, that embedding a PDF or PS within a PDF can result in errors, and it doesn’t even mention SVG.

Our code uses the Graphics2D API rather than iText directly, but we’d be willing to break out of AWT mode and use iText itself if it achieved the result. How can this be done?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:38:33+00:00Added an answer on May 10, 2026 at 11:38 pm

    According to the documentation iText supports the following image formats: JPEG, GIF, PNG, TIFF, BMP, WMF and EPS. I don’t know if this might be of any help but I have successfully used iTextSharp to embed vector WMF image in a pdf file:

    C#:

    using System; using System.IO; using iTextSharp.text; using iTextSharp.text.pdf;  public class Program  {      public static void Main()      {         Document document = new Document();         using (Stream outputPdfStream = new FileStream('output.pdf', FileMode.Create, FileAccess.Write, FileShare.None))         using (Stream imageStream = new FileStream('test.wmf', FileMode.Open, FileAccess.Read, FileShare.Read))         {             PdfWriter.GetInstance(document, outputPdfStream);             Image wmf = Image.GetInstance(imageStream);             document.Open();             document.Add(wmf);             document.Close();         }     } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer sounds like message duping: Deduping There may be also more… May 11, 2026 at 2:05 pm
  • added an answer You can load a texture from disk to memory on… May 11, 2026 at 2:05 pm
  • added an answer I get very nervous when I see people using very… May 11, 2026 at 2:05 pm

Related Questions

We use a data acquisition card to take readings from a device that increases
We use QuickBooks for financial management, and feed it from a variety of sources.
We use a CruiseControl.Net/NAnt/Subversion stack for CI. Doing a fresh checkout for every build
We use an ERP that has a bunch of reports in QuickReport format (.qr2).
First of all, I'm kinda new to the barcode formats and what I do

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.