Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts
Sunday, October 19, 2014
Add Print as PDF Button in Your Blog!

Sometimes your blog or website reader may wanna save the post as PDF. Or they may want to print it. And there are many free tools to add Save as PDF button. But the problem is that, most of the free tools doesnt allow you to remove the background images of your site. I mean this is not print friendly. As a result whole web page is saved. And this is very irritating.
Today Im sharing a code that is free from this problem. It allows you to save only the text with related image. Lets try this-
- Sign in into your blog. Then go to design.
- From the left panel, hit on the Layout button.
- Now click on Add a Gadget.
- Choose HTML/ JavaScript.
- Now copy and paste the following code into the Content Box.
- Save the gadget and view your blog to see the change!
<script src="http://cdn.printfriendly.com/printfriendly.js" type="text/javascript"></script><script type="text/javascript">document.doAT = function(cl){var myclass = new RegExp("hentry");var myTitleContainer = new RegExp("post-title");var myPostContent = new RegExp("post-footer");var elem = this.getElementsByTagName("div");for (var i = 0; i < elem.length; i++){var classes = elem[i].className;if (myclass.test(classes)){var container = elem[i];for (var b = 0; b < container.childNodes.length; b++){var item = container.childNodes[b].className;if (myTitleContainer.test(item)){var link = container.childNodes[b].getElementsByTagName("a");if (typeof(link[0]) != "undefined"){var url = link[0].href;var index_page = true;}else{var url = document.url;var index_page = false;}if (typeof(url) == "undefined"|| url == "undefined" ){url = window.location.href;var index_page = false;}}if (myPostContent.test(item)){var footer = container.childNodes[b];}}var n = document.createElement("div");if (index_page == true) {var at = <a href= + url + ?pfstyle=wp + style="float:right; margin-right: 1em; color:#6D9F00; text-decoration:none;" class="printfriendly" title="Printer Friendly and PDF"><img style="border:none;" src="http://cdn.printfriendly.com/button-print-grnw20.png" alt="Print Friendly and PDF"/></a>;}else {var at = <a href="http://www.printfriendly.com" style="float:right; margin-right: 1em; color:#6D9F00; text-decoration:none;" class="printfriendly" onclick="window.print(); return false;" title="Printer Friendly and PDF"><img style="border:none;" src="http://cdn.printfriendly.com/button-print-grnw20.png" alt="Print Friendly and PDF"/></a>;}n.innerHTML = at;var origFooter = footer.innerHTML;footer.innerHTML = n.innerHTML + origFooter;footer.style.overflow = "hidden";}}return true;};document.doAT("hentry");</script>
If you wanna place the button at the left side then replace the red colored words as- float:left. And if you are expert in coding like html, CSS, then you can easily place this code anywhere you want.
Code for other Websites Other than Blogger:
<script src="http://cdn.printfriendly.com/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" style=" color:#6D9F00; text-decoration:none;" class="printfriendly" onclick="window.print(); return false;" title="Printer Friendly and PDF"><img style="border:none;" src="http://cdn.printfriendly.com/button-print-grnw20.png" alt="Print Friendly and PDF"/></a>
Stay with Marks PC Solution to get more interesting IT topics!
Monday, September 29, 2014
Recover Data from corrput PDF file by copy data from a damaged fileinto a new file
-->
PDF files are known as one of the most secure data files because owner can set different access levels for different type of uses. PDF documents need less memory space than other documents so these can be easily send through email. But these secure acrobat pdf documents may get corrupt at the time of download or upload. In the case of PDF file corruption there are two possibilities 1) Corrupt file will open but original data will not shown 2) Corrupt file will not open.
In both type of corruption you need to apply some PDF repair methods or use PDF recovery software to access your original data.
Few methods are available to repair corrupt PDF documents. You can copy and paste corrupt data in to new file is one such method. This method works for few cases not for severely damaged cases.
Following are the steps to apply above method..
- Open the damaged file, and then choose Object > Path > Cleanup to remove unwanted items (for example, stray points, unpainted objects, empty text paths) from the artwork.
- If the original file contains multiple layers, choose Paste Remembers Layers from the Layers Panel pop-up menu to ensure the artwork appears on the same layers when you paste it into the new file.
- Using the Selection tool, drag a marquee around the artwork.
- Choose Edit > Copy.
- Choose File > New to create a new file.
- In the new file, choose Edit > Paste In Front to paste the artwork in the correct position on the page.
- Choose File > Save.
This method will probably repair your corrupt PDF file. In case this method didnt work for you then use appropriate PDF repair software to get access of original data. You need to select an advanced repair tool which is compatible with your system configuration.
Saturday, September 27, 2014
Know the Causes of PDF File Corruption and How to Repair it
Like all other documents, PDF files may also get corrupt. There are several causes of PDF file corruption. When pdf file get damaged, it will generate several type of error messages. All error messages depend on causes of corruption. In the pdf file corruption situation you cannot open pdf documents or if it open then garbage data displayed. In this following post I will discuss about causes which leads to PDF file corruption and its solution.
Causes of PDF File Corruption: There could be much reason due to which PDF files may get corrupt. Some of most common causes are listed below.
- Improper Download Process: Most of PDF files are get corrupt due to incorrect downloading process. If Internet connection is disconnected while downloading PDF file then it has huge possibility that file get corrupt.
- Incorrect Creation process: There are several PDF creation programs are available some uses simple algo other uses very complicated process to create PDF file. It is possible that some programs could not able to create PDF file correctly so when user upload on Internet, it doesnt works and generate some error message.
- Incompatible Viewer Program: There are several PDF file viewer programs are available to view PDF. But all viewer programs don’t compatible with every PDF creator software. So it may get corrupt or generate incompatibility error.
- Improper system shutdown: While creating PDF file if suddenly system get shutdown then opened PDF document will damage.
- Virus attack: Like other documents virus or malware attack leads to PDF corruption.
Solutions: Corrupt PDF file can be repair and you can retrieve back your valuable data.Use these methods to repair corrupt PDF document.
- Adobe Acrobat has a built-in repair tool that automatically repairs PDF documents during the opening process. But this utility doesnt repair all damaged files. It works only when PDF files minor damaged.
- Third party PDF repair software will be very helpful if PDF file is severely damaged. These tools uses advanced and sophisticated algorithm to scan corrupt PDF file and remove corruption causes. Find advance PDF repair software which is compatible with your system configuration.
Hopefully the above post help reader to solve PDF corruption problem.
Foxit Reader Fast light and reliable PDF Reader
Almost every person working with computer and internet needs to use PDF file. What is PDF file and how to create PDF file are posted earlier in this blog. So in this post I am gonna discuss about PDF viewer/ reader.
The standard PDF reader is Adobe Reader. But day by day the size of this standard PDF viewer is increasing rapidly. Its download size has already exceeded 50 MB. And install size is more than 300 MB!
Consequently many users are fed up with this. They try to avoid it but cant as there is not pure alternative to this software.
But Foxit Reader can be an ideal alternative to Adobe Reader. Foxit Reader will provide you the following facilities:

- Small in size
- Fast and reliable
- Read out loud
- and more
Download Foxit Reader from link 1 or link 2.
Download Adobe Reader
Subscribe to:
Posts (Atom)