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 6704215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:15:48+00:00 2026-05-26T07:15:48+00:00

I have a system that converts pdf to tif. Basically it’s a program written

  • 0

I have a system that converts pdf to tif. Basically it’s a program written in csharp that uses iTextSharp to get metadata about the pdf and pdf2tif (http://pdftotif.sourceforge.net/) to convert to the file. I’ve noticed a number of pdf’s do not convert correctly. In Acrobat and Foxit they open as multi page forms but in any other viewer (Ghostscript…) they open as 1 page documents with the message

“To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade to the latest version of Adobe Reader from “www.adobe.com/products/acrobat/readstep2.html” For further support, go to http://www.adobe.com/support/products/acrreader.html“

Some goggling around told me that these are XFA dynamic PDF’s is there any way i can programmatically detect that so I can try to handle these pdf’s differently?

  • 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. Editorial Team
    Editorial Team
    2026-05-26T07:15:48+00:00Added an answer on May 26, 2026 at 7:15 am

    The iText API is a good start.

    In iTextSharp you access the object’s property instead of calling a method. (if you’ve done a moderate amount of work with iTextSharp you probably already know this)

    Anyway, here’s a simple example using an HTTP Handler:

    <%@ WebHandler Language="C#" Class="iTextXfa" %>
    using System;
    using System.Web;
    using iTextSharp.text;  
    using iTextSharp.text.pdf;
    
    public class iTextXfa : IHttpHandler {
      public void ProcessRequest (HttpContext context) {
        HttpServerUtility Server = context.Server;
        string[] testFiles = { 
          Server.MapPath("./non-XFA.pdf"), Server.MapPath("./XFA.pdf") 
        };
        foreach (string file in testFiles) {
          XfaForm xfa = new XfaForm(new PdfReader(file));
          context.Response.Write(string.Format(
            "<p>File: {0} is XFA: {1}</p>",
            file,
            xfa.XfaPresent ? "YES" : "NO"
          ));
        }
      }
      public bool IsReusable { get { return false; } }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have planned to develop a tool that converts a program written in a
I have a PHP program that uses a Bash script to convert a pdf.
We have system here that uses Java JNI to call a function in a
I have a system that uses a meta refresh to a logout page, which
I have a program that converts a byte[] to a string of hex: byte[]
We have a WinForms application written in C# that uses the AxAcroPDFLib.AxAcroPDF component to
Background: I have a winforms app written in C# that converts xlsx files to
I have an assignment that converts dates from one calendar system to another. The
I have a system that combines the best and worst of Java and PHP.
I have a system that creates an order and that order can be billed

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.