PDF

304

Solutions

628

Contributors

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 have the codes using js datatable.
When the pdf is exported, I want to add company logo on the header and align center.
How can I do that? only PDF export. The rest does not change.


 $('#data-table').DataTable({
                            "dom": 'Bfrtip',                             
                            "buttons": ['copyHtml5', 'excelHtml5', 'pdfHtml5', 'csvHtml5'],
                            "paging": true,
                            "ordering": true,
                            "info": true,
                            "bDeferRender": true,
                            "pageLength": 100,
                            "scrollY": 600,
                            "bSort": true,
                            "stateSave": true,
                            "fixedHeader": true,
                            "responsive": true, 
                            "bDestroy": true
                        });

Open in new window

1
Become a Certified Penetration Testing Engineer
LVL 13
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

How can I create a pdf file from set of pictures in a folder with a command line?
0
export crystal report to pdf from vb6
0
We receive PDF files via outlook everyday but some of those files are received damaged or containing some issues for many reasons.
I am looking for an offline PDF repair tool that can solve most of the problems that get in PDF without uploading files online.
0
I working on a order form in PDF.  There are 2 fields that are needed to determine what options are available.  Below is the breakdown of the 2 fields.
"MODEL:" - Select what model you are interested in.
"LENGTH:" - Based on what "MODEL" is selected from the drop down available lengths will be shown in the drop down.  Those lengths are shown in the attachment named "test data".
"COST:" - Finally based on selection in "MODEL" and "LENGTH" the price will automatically be filled.  The cost is also listed in the "test data" attachment.

Can this be done in .pdf?
test-form.pdf
test-data.xlsx
0
Currently within Microsoft Flow, I have a flow which on a weekly basis loops through a SharePoint list and populates a Word Document for each item within the list and saves the result in a separate document library. Is there any way that these documents can be merged into one document (ideally as a pdf).

Where some complexity is added is that the number of documents that will need to be merged will vary, meaning the documents will need to be merged dynamically (perhaps using an array) rather than statically. Can this be done?
0
Could you please help me with formatting this template which I have inherited.  I am trying to replace the logo on the first page top left with the new one I stuck at the end of the document.  I am not familiar with page formatting and clicking here and there seem to not have much an effect.  Could you please please help modify this and also tell me for my own benefit, what needed to be done?

I converted from PDF to MS Word and it created all that black image on the second and third pages, not sure what this might be linked to the shading of the left column?

Also the whole document, does it have columns in it which is why text moves around in funny ways when I try to edit it?  is there a way to show the outlines of the columns or document formatting?
EE-sample-Governor-Newsletter-.docx
0
I'm having some difficulty generating a PDF using PhpSpreadsheet.

The general process is
  1. Load a template xlsx file (which include a small image)
  2. Edit the file by adding values
  3. Save it as a PDF

I'm having 2 immediate issues
  • The image does not display, instead I get a "Image not found or type unknown" block in the worksheet where the image should appear
  • The defined print area/fit is not being respected

I load the file by simply doing
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load( $sFile );
$sheet = $spreadsheet->getSheetByName('Item');

Open in new window

do some work
The setup things
// Page Setup
        $sheet->getPageSetup()
              ->setPaperSize(PageSetup::PAPERSIZE_LETTER);
        $sheet->getPageSetup()
              ->setOrientation(PageSetup::ORIENTATION_PORTRAIT);
        $sheet->getPageSetup()->setHorizontalCentered(true);
        //Set Margins
        $sheet->getPageMargins()->setTop(0.50);
        $sheet->getPageMargins()->setRight(0.50);
        $sheet->getPageMargins()->setLeft(0.50);
        $sheet->getPageMargins()->setBottom(0.50);
        //Set Print Area
        $sheet->getPageSetup()->setPrintArea('A1:L'.$i);
        $sheet->getPageSetup()->setFitToPage(true);
        $sheet->getPageSetup()->setFitToWidth(1);
        $sheet->getPageSetup()->setFitToHeight(0);
        $sheet->setShowGridlines(false);

Open in new window

Then try and generate the PDF
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Dompdf');
$writer->save($filePDF);

Open in new window

where $filePDF is a proper path/filename
0
I am unable to add a product pdf data sheet to my Project Bid file, prepared in Acrobat Pro, because it is password protected. Is this doable?
Aruba-300-Series-Data-Sheet--1-.pdf
0
Silent printing using pdf.js

Hello
I have simple page that prints pdf using pdf.js (without necesarylly open that

it works in chrome and FF, it does not work in IE, can you please tell me how can I modify that so it works everywhere
(in FF/Chrome it prints PDF, in IE it just print the browser page)

Here's the code (note that I made iframe visible, but it could be hidden ( height=0 width=0 and it still works in chrome/FF)

<!DOCTYPE html>
<html>
	<head>

		<script>
		function printPdf(){
			var url = 'helloworld1.pdf'; // thi is the pdf I want to print
			var viewerUrlurl = 'web/viewer.html?file=' + url;
			document.getElementById('iframe').src = viewerUrlurl;

				
			var printContentWindow = function () {
				var iframe = document.getElementById('iframe');
				if (iframe.contentWindow!=null && iframe.contentWindow.PDFViewerApplication !=null 
					&& iframe.contentWindow.PDFViewerApplication.overlayManager 
					&& iframe.contentWindow.PDFViewerApplication.pdfViewer.pageViewsReady) {
					
					console.info('pdf loaded and ready for printing');
				   
					iframe.contentWindow.print();
				} else {
					window.setTimeout(printContentWindow);
					
				}
			}
			
			printContentWindow();
		}
		</script>
	</head>
	<body>
		<h1>Test page for pdf.js printing</h1>
		<div>
			<input type="button" onclick="printPdf()" value="print test.pdf">
		</div>

		<div>
			Content of the page is not supposed to be printed at all
		</div>
		<iframe id="iframe" width="900" 

Open in new window

0
Ensure Business Longevity with As-A-Service
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

I am looking for ultra inexpensive printing services that can print standard 8-1/2 x 11 double-sided pages.  The local places seem to want 50 cents per side which feels exorbitant to me since I need to print 50 double-sided pages if they are printed on 8-1/2 x 11 standard sized paper.

I tried Vistaprint and one other service but "I think" it came down to the fact that I wasn't duplicating the same content, but was instead wanting to print from a PDF file that already had multiple pages with different content on each page.

Assistance in finding a reasonably priced service for this is greatly appreciated.
0
Environment - SharePoint 2016 On premise. Office Online Server deployed and is an option to open PDF files with word online. Adobe Reader DC (Newest version)

We sign PDF files electronically and that work fine. The issue is when a PDF file that is stored in a SharePoint document library is opened and signed, when the user goes to save the file Adobe Reader opens a Windows Explorer dialog asking the user where the file should be saved to. The SharePoint library is not mapped so it is not possible for the user to save back to SharePoint. The desired behavior, and what we had in SharePoint 2010, is that the file is saved from where is was opened, in this case a SharePoint 2016 document library. (The way office documents work when opened from SharePoint.)
So what am I missing? Why doesn't this work? Any suggestions or help is greatly appreciated.
0
I am a self taught Access database creator over the last ten years. I have created a system that is used to track information about various quality problems with in my organization. We have problems that are shared internally on a daily basis. I would like to create emails for each occurrence that notify my teams about each issue that is entered.

Currently, I have a table that holds all of this information and can navigate the records in a form. I would like to create a .PDF for each record that will be emailed announcing each issue.

I would like to be able to push a button and create a report in a .PDF file and save it to folder.

What is the best way to create this .PDF for each record?
0
I have a simple form to navigate some records in a table.

I'd like to be able to press a button to create a .PDF of that record that is active in the form.

With in that form I have three fields that I'd like to use as part of the name to save the .PDF in a predetermined file.
(If possible, I'd like to separate them with a space or an "_" or something.
Control Source
NAMC
PartName
TagNumber

Save it in a designated folder that is with the folder that the database is held in.
0
For example we have pdf's stored in on the network. We want the BIRT report display the actual pdf, not the link to the pdf. It is actually possible?
0
Hello Experts
I am looking for some guidance on how to download a chart created form c3.js libraries in to PDF
I have 4 charts in the HTML template and there are multiple tabs, Each tab has its own chart.
How can i download the chart into PDF with all the filter conditions in the HTML page.
Thank you
0
We have users who are complaining that their PDF Icons are clear next to the filename. When they click it, it still works. It is annoying.  They are accessing their files through Parallels (RDS solution). Thanks
0
I'm running a Red hat webserver with selinux.  We use wkhtmltopdf-amd64 to convert html files (custom generated reports) into pdf and then display them for the users.  
It all works, except that I get a lot of errors recorded in the messages log.  Running sealert returns the following information on one such occurrence. We have wkhtmltopdf-i386 linked to the -amd64 version only because our previous server required a different version of the program.  So when you see -i38 it's the same application.

SELinux is preventing wkhtmltopdf-i38 from read access on the file /etc/printcap.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that wkhtmltopdf-i38 should be allowed read access on the printcap file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'wkhtmltopdf-i38' --raw | audit2allow -M my-wkhtmltopdfi38
# semodule -i my-wkhtmltopdfi38.pp


Additional Information:
Source Context                system_u:system_r:httpd_sys_script_t:s0
Target Context                system_u:object_r:cupsd_rw_etc_t:s0
Target Objects                /etc/printcap [ file ]
Source                        wkhtmltopdf-i38
Source Path                   wkhtmltopdf-i38
Port                          <Unknown>
Host                          swan1
Source RPM Packages          
Target RPM Packages          
0
Windows 10 Default Applications.

I have a windows 10 machine that has adobe reader installed.    By default windows 10 sets the default programs for pdf to be Edge.  I however go into default apps and change this to adobe reader.  The next day the user logs in again and the default application for pdf is again changed back to Edge …

there are no GPO's that are being pushed to change this …..     Any thoughts ?

Joel
1
Active Protection takes the fight to cryptojacking
LVL 2
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

I had this question after viewing Close PDF file without Save prompt.

Novice here... trying to close Acrobat 7 (after opening a .tif  file) without having the "Do you want to save changes to  .... before closing" dialogue popping up.
I just want to open the .tif in Acrobat, then close it without having to say "no"
I think the above answer may work for what I'm doing but I do not know how to implement it
0
Trying to determine if this is even possible.

I am creating an employee review form in Acrobat form.  Part of the form is how well they perform in certain areas.  This is based on a scale where 4 is highest and 1 is lowest .  To keep the form a little more generic some areas may not be applicable to all employees.  I know I can do a simple calculation and average all of these numbers for an overall composite score.  However where I am having issues is when an area is not applicable to a certain person I DO NOT want to include that in the calculation for the overall calculation.
0
Hi Experts,
When I Preview a report in MS Access 2010 and want to save it as a PDF the File Name defaults to the Report Name.  e.g. Report 1

Is there a way to change the File Name to something Custom?  e.g. Report 1 - 2019-01-30.

Thanks,
Bob C.
0
I have developed a form with several text fields and a signature.
When I press the signature button it notifies that the fields have not been completed but immediately asks for the signature when it should not.

How can the signature be canceled in that case?
0
Hi, I have so far have the ability to view the contents of a PDF using an HTML Form Web part and something like the following script:  <object><embed src="http://pdf/xxx.pdf in the Source Editor of the control.

Taking this a step further, is there a way to 'click' or 'hover' over an uploaded pdf  (in a Documents web part) and view its contents in a the HTML Form Web part?

For info: I am using SharePoint 2016 on-prem

Thank you in advance.
0
I'm struggling with a label report in Access - A4, 2-column, 105mm x 74mm, no margins. Everything line up nicely when printed directly - when using the built-in PDF export, it's like some margins are Applied and everything is no long in its place when printed from the pdf - I've done numerous Little adjustments to try and correct it, but with no luck so far. Please advice :) It's the same result when run from another system.

DoCmd.OutputTo acOutputReport, rpt, "PDF Format (*.pdf)", strPDFTmp, False

Open in new window

0

PDF

304

Solutions

628

Contributors

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.