[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More







A Portable Document Format (PDF) is a file format consisting of an electronic image resembling a printed document and can be viewed, printed, and electronically transmitted. PDF files can store various types of data, including formatted text, vector graphics, and raster images. The page layout defines the location, size, and shape of each page and each item on the page. The information looks the same no matter what device or program is used to open it.

Share tech news, updates, or what's on your mind.

Sign up to Post

I am using PDFSharp to print HTML content to a PDF.

It's working great and I have it printing and downloading to the browser, but the HTML is much larger than the original. The images, the fonts, everything are  just huge.

I've even tried wrapping my HTML in a div with the transform set to .75 and I even tried all the possible zooms and transforms and that didn't work either. So I don't know if PDFSharp doesn't support those.

    Private Sub ExportToPDF(ByVal html As String, ByVal filename As String)
        Dim config As New PdfGenerateConfig
        With config
            .PageOrientation = PageOrientation.Landscape
            .PageSize = PageSize.A4
            .MarginBottom = 36
            .MarginLeft = 36
            .MarginRight = 36
            .MarginTop = 36
        End With

       Dim sb As New StringBuilder()
        sb.Append("<div style=""transform: scale(.75);"">" & vbCrLf)
        html = sb.ToString & html & "</div>"

        Dim pdfDoc As New PdfDocument()
        pdfDoc = PdfGenerator.GeneratePdf(html, config)


Open in new window

Anyway, with all the things I've tried, I end up with a div at the top with every possibility:

<div style="transform: scale(.75);zoom: .65;  -webkit-transform: scale(.65);  -moz-transform: scale(.65);  -ms-transform: scale(.65);  -o-transform: scale(.65);  transform: scale(.65); ">

Open in new window

Which still doesn't work. Again, my HTML works great printing on an 8.5 x 11 normally and with another PDF renderer (telerik). But with this one it just renders it huge in the PDF.

Any suggestions?

Acronis Data Cloud 7.8 Enhances Cyber Protection
Acronis Data Cloud 7.8 Enhances Cyber Protection

A closer look at five essential enhancements that benefit end-users and help MSPs take their cloud data protection business further.

I'd like to print each one of these tickets on a envelope (#10), so I would like to output a single pdf document with 4 pages, one ticket per page. I don't know if it's possible to print my HTML content on an envelope sized 9.5" x 4.125". If you look at the screenshot attached, you'll see I have all 4 tickets on a single page. I want to create a single PDF document with multiple pages, again one ticket per page.
Here is my code I have so far:
// winning tickets pdf
function fetch_data() {  
      $output = '';
      $userID = ($_SESSION["loggedInUserID"]);
      //$conn = mysqli_connect("localhost", "lormar5_wo693", "sDieYQb752KZc!;", "lormar5_wo693");  connection to theme
      $conn = mysqli_connect("localhost", "root", "root", "db_hockeypoolfundraiser");
	  $sql = "SELECT * FROM participants LIMIT 1";  
      $result = mysqli_query($conn, $sql);  
      while($row = mysqli_fetch_array($result))  
      $output .= '<tr>
	  			<td style="border-bottom: 1px solid #dfdfe0;">
				<br><br><strong>Winners Name:</strong> '.$_SESSION["participantName"].'
				<br><br><strong>First Goal Time:</strong> '.$_SESSION["firstGoalTime"].'
				<br><br><strong>Game Date:</strong> '.$_SESSION["gameDate"].' <br><br>
				<td style="border-bottom: 1px solid #dfdfe0;">
				<br><br><strong>Phone:</strong> '.$_SESSION["participantPhone"].'
				<br><br><strong>Amount:</strong> $'.$_SESSION["priceFirstGoal"].'

Open in new window


I've seen some scrolling ebooks like one in above URL but somehow when I tried to print to PDF or
'Select All' & paste into MSWord, it's only partially printed/pasted.

Any tools/method to extract them out?
I need to update a few of our old Acrobat 9.5 pdf forms to the newer Acrobat 2017/DC pdf forms.  Is there a tool out there that will help speed this up?  Right now I'm having to export the Acrobat 9.5 forms to Word and then from Acrobat 2017/DC I import the Word doc using the Form wizard designer.

We have a DB driven application where all the business logic written in Microsoft SQL.
We need to create a bunch of dynamic PDFs (Fillable PDFs) as a result of the calculations. We are now creating the PDF using .Net API and PHP.
Is there any easy way to create the PDF using SQL Reporting Services or any other ways?
Once the PDF is generated, we will use Angular ng pdf viewer to show the preview in browser.
Please help?

Thanks in advance :)
hi i try to use https://pdfium.patagames.com/c-pdf-library/

I found above api/pdf tool that using for (Search for a Text in a PDF File). and return x and y coordiate value.
and I bulit my own codes which is almost the same.

The return is always 0,0 which look like the search keywords feature does not work well.
And anyone try and tell me how your test about?

 public static Tuple<float,float> ExtractTextInfo(string keyword)
            //Initialize the SDK library
            //You have to call this function before you can call any PDF processing functions.
            //Open and load a PDF document from a file.
            float x = 0;
            float y = 0;
            using (var doc = Patagames.Pdf.Net.PdfDocument.Load(@"C:\Users\ry24234u.23423\Documents\Workspaces\RNsadfasd\AppStore\ApsdfpMot324orHomeS3423hares\document\rentalcontract.pdf"))
                //Enumerate pages
                foreach (var page in doc.Pages)
                   var found = page.Text.Find("This", FindFlags.MatchWholeWord, 0);
                   if (found == null)
                       return new Tuple<float, float>(0,0);
                        var textInfo = found.FoundText;
                        foreach (var rect in textInfo.Rects)

Open in new window

I would like to have conditional formatting in a PDF using acrobat ver 2019.008.20080.

We have Signature lines and would only like to highlight areas only when text appears in a different field.

Right now everything is being highlighted only because no type of conditional formatting is in place.

See attached pic for a reference. In this example only the first signature and date field should be highlighted.

We are experiencing IE 11 Crashing or what it says is Stopped working...so when a few of our users that use State Tax Forms websites the get down to the PDF's and when they click on the PDF they need to view and it crashes IE11 or like I said it stops working.

Does anyone have any fixes or has anyone seen this happening?
I have below codes working fine.
but instead of drop the image into the fixed location (  image.SetAbsolutePosition(100, 100);)

Is it possible to do the look up e.g. if the text called 'signature' is shown on the pdf, then drop the image there on the right side of the 'signature' text?
Or if there is any textbox field called 'signature', drop the image next to it.

Is it possible?

using System.IO;
using iTextSharp.text;
using iTextSharp.text.pdf;

class Program
    static void Main(string[] args)
        using (Stream inputPdfStream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read))
        using (Stream inputImageStream = new FileStream("some_image.jpg", FileMode.Open, FileAccess.Read, FileShare.Read))
        using (Stream outputPdfStream = new FileStream("result.pdf", FileMode.Create, FileAccess.Write, FileShare.None))
            var reader = new PdfReader(inputPdfStream);
            var stamper = new PdfStamper(reader, outputPdfStream);
            var pdfContentByte = stamper.GetOverContent(1);

            Image image = Image.GetInstance(inputImageStream);
            image.SetAbsolutePosition(100, 100);

Open in new window

android 7 sending sms with pdf attachment

please dont tell me to use google drive or drop box or an online link. I want to send pdf
Creating Active Directory Users from a Text File
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Dear experts,

I can see my word document  with correct level of header and footer margin.

When i print it using my 'HP Deskjet GT 5810,' i find that the footer margin is very large.

So to check what was happening , i saved my above word document into a pdf document . I then I turned the pdf up-side down (turned it 180 degree). I printed the pdf document once again.  i found that the footer margin in the (180 degree turned doc) print out is still large ( irrespective of  the  swap )

Means there is no difference in the footer margin irrespective of how i print the page.

I understand from this observation that I might need to tweek my printer.

Kindly suggest if i need to make changes in my printer
I have been following a PDF from APC to user PowerChute Business Edition over a Serial connected Smart UPS to talk with the Linux install in the vMa appliance on a VMWARE ESXi 6.7 environment.  (Please don't suggest Network Shutdown, I've got the free version of VMware.)
It is entitled, "Using ESXi with PowerChute Business Edition"  
On page 17-18, it tells us to add the ESXi host using vMA, and asks for HOST IP address, user root and the password.  However, I get an error message that it won't add the HOST because if fails the SSL connection test.
When I run>  sudo vifp listservers    none are listed because they couldn't connect.

It seems like such a straight forward process, it detects the UPS and is ready to go, but I can't had the VM host to the PowerChute Business Edition installation.

I have ONE APC UPS which I'd like to have gracefully shut down 2 VM's and the VMHost in the event of a power outage.

Should I just run PCBE on one of my VM's and execute a shutdown command for the 2nd VM and let the VMHost crash on its own?

Has anyone got a solution?

I am looking to see if it is possible to take a screenshot of the div that contains an iframe displaying a PDF.

I have found a few JS scripts that take a screenshot but the fail (do not include) the contents of an iframe displaying a PDF.

Any help is appreciated.
Dear experts
I have attached a word document and pdf document.
The word document has multicoloured lines. I want to share this document with Goodnotes support so that they can adopt it into a template. I can then use this template in my good notes app (IOS). The basic idea of this template is to provide a set of four lines so that i can practice cursive writing.
I have the following challenge with this document:
Page titled Doc1 in the attached pdf document is the scanned image of word document printed. In the Doc 1 we can see top margin is much smaller than the bottom margin.
The help I need: can someone please change the settings in the word document in such a way that it closely resembles the page titled Doc 2 in the attached pdf document.
(Please ignore the message on third page in the pdf document.
Kindly delete page 2 in the word document. Kindly if anyone can please tell me how to delete the document.
Thank you
I have an Access application that can export fields to a PDF file.  However, for this work it needs the full version of Adobe installed.  Not just the reader.  So I was wondering if there was a way to check programmatically to see if Adobe Acrobat was loaded and not just the reader.

Thanks John
adobe reader (not sure name but it is free on adobe.com) free latest addition for windows10

if I save more that twice I can not add words to blank fields
color change from purple to white.
it does not know where I can add words
We use iTextSharp to create PDFs throughout our site.  We have a Comments field that can grow.
It doesn't look like iTextSharp supports dynamic attributes - or at least the way we are using it with a pre-defined template.

sample of the code for the comments section:

  stamper.AcroFields.SetField("Comments", sb.ToString());
  stamper.AcroFields.SetFieldProperty("Comments", "textsize", 6f, null);
I have a very large MS Excel file which I imported from a pdf.

The data looks like this for the most part (the | indicates the start of a new column):

<ID>   |   <Description>   |   <Address Line 1>
                                                    |   <Address Line 2>
                                                    |   <Address Line 3>

<ID>   |   <Description>    |   <Address Line 1>
                                          |   <Address Line 2>
                                          |   <Address Line 3>
                                          |     <Address Line 4>

<ID>   |   <Description>   |   <Address Line 1>
                                         |    <Address Line 2>

<ID>   |   <Description>   |   <Address Line 1>
<ID2> |  <Description2>  |    <Address Line 2>

Open in new window

The address lines sometimes span multiple rows and other times enlarge the height of the cell to accommodate the text.  I need to extract the country from wherever it is in the Address Lines and then calculate the percentage of the total countries in the spreadsheet.  Because the data isn't entirely clean, I'm wondering if this is possible.  Even if it isn't 100% exact, even an approximation will still be useful for me.

I want to know if there is a way to prevent Adobe Reader from showing the PDF while quick print from Outlook? A friend need to print many PDF from email and have to wait 5-10 secondes between each print. He want to click on email, and quick print the attach PDF and goes to next and print next PDF and so on. It is not productive for him to wait each time about Reader to show the PDF and minimize after each time. Sometime he have up to 100 PDF to print in a batch.

I checked all parameter in Adobe Reader and found nothing that could help. I tested in Windows with PDF, DOCX and XLSX and it had that same behavior. I  think this behavior come from Windows.

Is there a way to tell Windows, Outlook, or Adobe Reader to keep Adobe Reader minimized or hide while printing from Outlook or Windows?

Thank you!

Big Business Goals? Which KPIs Will Help You
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

I am looking through many pdf

I dont want to open all the pdf

windows10 file explorer
large icon
but I cant see 1 page of pdf

how can I see a preview of ALL the pdf

please add topics/zones

We need to convert the text on an  invoice which can be in the form of image/PDF into XML.

Any third party service which uses artificial intelligence to process different kind of invoice template, is needed.

Please let me know about any tool/service(free/paid) is available for same.
In net I can see many companies providing same but when we actually contact them, they deny.
Please help.

Hi. I have knocked out a Ruby On Rails website that lists HR documents; the plan being for a user to click on a button next to the document in the list and open the pdf with the HR policy.
Rails being Rails I have the list with 'Show' and 'Edit' buttons...but need a 'Display pdf' button, too. The pdfs are on the server, each named with the number of the primary key in the table (thus pdf /usr/var/www/html/docs/123456.pdf refers in the table to  id 123456). Does anybody know how to set up the code in the controller and view (index.html.erb) that can facilitate this, please?
I do not want my users to right in a iFrame and save the file onto the  computer.

I was able to control it on Chrome web browser but only version 60 and 64 versions of Chrome. I am able to right click in the iframe and save  the document in Internet Explorer and FIrefox browsers.

How can I disable right click in an iframe that display a PDF file or is there any way to ensure that the PDF file being viewed can disable the save/print options.
How to search pdf files for a key word like "Sticky" and report those pdf files with that key word. One example is attached.


Using Windows batch how can I rename up to 4 files, 1.pdf, 2.pdf, 3.pdf and 4.pdf all based on time stamp, 1.pdf being the file with the earliest time stamp..

At C:\Attachment\.... there could be several files all names differently, but all. pdf files.  
I want to rename each file based on when they were created etc..






A Portable Document Format (PDF) is a file format consisting of an electronic image resembling a printed document and can be viewed, printed, and electronically transmitted. PDF files can store various types of data, including formatted text, vector graphics, and raster images. The page layout defines the location, size, and shape of each page and each item on the page. The information looks the same no matter what device or program is used to open it.