How to remove blank space in pdf

Q:
I really like the PDFNet SDK. I was looking into the HTML to PDF
functionality in the PDFNet SDK.

When I convert my HTML file to PDF, it adds 1 html page to 1 PDF
page. This makes almost 60% of each PDF page blank and size of my PDF
bulky.
Is there any way to avoid or minimize this blank space in each page?
Or let multiple html pages come in each PDF page?

---------------------

A: Each web page starts a new PDF page. So if you call
HTML2PDF.InsertFromUrl 4 times, then the resulting PDF will contain at
a minimum 4 pages. There are currently no plans to change this.

The only alternative I can offer at this time is to do some post
processing of the PDF. Using our ElementReader you can determine the
minimum bounding box containing the visible content on each page. You
can parse all the elements on a page using ElementReader, and for each
element get the bounding box, and union it with one master rectangle.
Once you have the visible content bounding box for each page, you
could determine if there is room to merge pages. If so, you would use
ElementWriter to write the elements from one page to the previous, but
with their y position shifted down to be below the previous content.

Please see the following links for more info
http://www.pdftron.com/pdfnet/samplecode/ElementReaderTest.cs
http://www.pdftron.com/pdfnet/samplecode/ElementBuilderTest.cs

Question

I have to rename hundreds of pdf files monthly, can your program help me to easily remove blank spaces or part of a PDF file name?

Solution

You can use "Advanced" script feature in A-PDF Rename (free download here) to remove blanks spaces or characters from PDF files names with ease:

  1. Start the program, click "File->Add PDF Document" or "File->Add Folder" to add PDFs to the file list;
  2. Choose "Advanced" Rename Method, then input script in box, use the "abc def ghij" as example:

    A. Delete blank spaces, use below script:

    Begin
    newFilename := AnsiReplaceStr(Filename, ' ', '');
    End.

    B. Delete part " def", use script below:

    Var
    p :Integer;
    Begin
    p := Pos('' def '', Filename);
    if p > 0 then
    newFilename := LeftStr(Filename, p - 1) + RightStr(Filename, Pos(ReverseString('' def ''), ReverseString(Filename)) - 1);
    End.;

  3. Run the script and preview the effect of renaming in the list, then click "Rename" button to rename all listed files.

  • A-PDF Rename - batch rename multiple PDF document based on content, metadata and file attributes(Size, Datetime) within PDF files. You can batch change or update multiple PDF files metadata (title, creator, producer, author, subject and keywords) as well as
  • A-PDF Preview and Rename - Preview PDF content easily, rename PDF based on content you previewed.
  • A-PDF Preview and Move - Preview content for multiple PDF files, then OCR page content to rename and define dest folder to move.

We always like improving our products based on your suggestions. Please send your feedback (or ask questions) to us in the contact page.

Return KB main page

How to remove blank space in pdf

Upload your document to the PDF editor

How to remove blank space in pdf

Type anywhere or sign your form

How to remove blank space in pdf

Print, email, fax, or export

How to remove blank space in pdf

Try it right now! Edit pdf

All-in-one PDF software

A single pill for all your PDF headaches. Edit, fill out, eSign, and share – on any device.

Instructions and Help about Remove Space in PDF

Within the contemporary world, it is exceptionally essential for pros to remain connected with their tasks and have access to their documents wherever they are. Nevertheless, being able to simply view files isn't enough. Generating fast adjustments towards the templates and approving them around the go with ease — that’s one of several main necessities men and women want from document editing options.

If you’re seeking such a tool to Remove Space in Blank, pdfFiller may be the proper selection for you. The editor comprises a full set of expert features for redaction and management, like fillable fields, legal electronic signatures, and other individuals. But, regardless of getting so feature-rich, it has an intuitive and user-friendly interface, producing it perfect even for those that are not tech-savvy. To effectively modify your Blank all you'll need is really a stable internet connection as well as a handful of minutes to save/send copies.

However redacting and sharing files isn't the only thing you can do with pdfFIller. The platform allows you to produce reusable forms from any document to facilitate quicker work. Rather than changing your Blank whenever you ought to complete and sign it, simply update it once with smart fillable fields for text, numbers, dates, dropdown lists, currencies, formulas, etc. The whole process is easy as ABC and takes only a few minutes to complete.

Quick steps to Remove Space in Blank in pdfFiller

01

Log in to your pdfFiller account utilizing your credentials or your Facebook or Google account.

02

Click the Add New button to upload a Blank from your device, cloud, template library, via email, or a secure link.

03

Utilize the editing toolbar to make all the required adjustments to your sample.

04

Check if everything is correct and click Done.

05

Share your file right from the platform with one of several choices in the right-side panel.

Right after you’ve completed your Blank and chosen the Convert to Template tool, you are able to proceed with two possibilities: use your document as it's using the existing info or add far more fillable fields to it by clicking around the appropriate button and dragging and dropping various fields onto your sample where you need them. Begin managing files like a pro with pdfFiller!

What our customers say about pdfFiller

See for yourself by reading reviews on the most popular resources:

Get a powerful PDF editor for your Mac or Windows PC

Install the desktop app to quickly edit PDFs, create fillable forms, and securely store your documents in the cloud.

Edit and manage PDFs from anywhere using your iOS or Android device

Install our mobile app and edit PDFs using an award-winning toolkit wherever you go.

Get a PDF editor in your Google Chrome browser

Install the pdfFiller extension for Google Chrome to fill out and edit PDFs straight from search results.

pdfFiller scores top ratings in multiple categories on G2

eSignature workflows made easy

Sign, send for signature, and track documents in real-time with signNow.

How do I remove white space from a PDF?

How do I get rid of white margins on a PDF? You can crop PDF documents to trim unwanted white space from PDF pages. Use this PDF tool to crop PDF files and remove white borders around all PDF pages. Just select the PDF files you want to crop and click the upload button.

How do I remove white space from a PDF online?

Online PDF crop tool.
Upload your document. ... .
If you want to select the part of the document for cropping manually, mark it in the preview window and then choose the Crop to selection option..
Choose Auto-crop to trim all the white margins automatically..
All pages in the processed documents will be cropped equally..

How do I remove spaces between PDF pages?

Click View > Page Display and there there is an option that should say Show Gaps Between Pages click on it so the checkmark doesn't appear and the gap is removed.