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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:02:15+00:00 2026-06-15T01:02:15+00:00

I have some tif files with multiple pages that I would like to convert

  • 0

I have some tif files with multiple pages that I would like to convert to a single long page. i.e. a file including two pages that are each 8.5×11 would be converted to a resulting file of size 8.5×22. Is there any way to remove the page breaks?

I am not asking how to convert multiple files into a single file.

  • 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-06-15T01:02:17+00:00Added an answer on June 15, 2026 at 1:02 am

    I have solved this. A good chunk of the following code comes from Scott Hanselman on this page.

    This C# function takes a filename for the source image and a save location for its tiff output:

    public static void RemovePageBreaks(string fileInput, string fileOutput)
            {
                using (Image image = Image.FromFile(fileInput))
                using (MemoryStream m = new MemoryStream())
                {
                    int width = image.Width;
                    int height = 0;
                    int pageCount = image.GetFrameCount(FrameDimension.Page);
                    height = image.Height * pageCount;
                    int pasteFrom = 0;
                    using (Bitmap compositeImage = new Bitmap(width, height))
                    using (Graphics compositeGraphics = Graphics.FromImage(compositeImage))
                    {
                        compositeGraphics.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceCopy;
                        for (int page = 0; page < pageCount; page++)
                        {
    
                            image.SelectActiveFrame(FrameDimension.Page, page);
                            image.Save(m, image.RawFormat);
                            Rectangle rect = new Rectangle(0, pasteFrom, image.Width, image.Height);
                            compositeGraphics.DrawImageUnscaledAndClipped(image, rect);
                            pasteFrom += image.Height;
                        }
                        compositeImage.Save(fileOutput, System.Drawing.Imaging.ImageFormat.Tiff);
                    }
    
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some text lines like that : vt_wildshade2^508^508 vt_ailleurs2^1188^1188 ... vt_high2^13652^13652 Is it
I'd like to output some data to a file. For example assume I have
I have written a service that monitors a file drop location for files from
I have a FileSystemWatcher monitoring a directory that receives TIF files from a scanning
I have to parse some numbers from file names that have no common logic.
I have some data loaded as a np.ndarray and need to convert it to
I have some arbitrary pixel data that I want to save as a PNG.
I have some tables roughly like so: Client: id name Employee id name Email
I have some code that will change the background color of a specific label
i have some problems with a Query seem IN dosen't work with Group_concat, that

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.