Posts

Showing posts with the label Pdf

Animations In LaTeX

Image
Answer : Since the OP asks for creating an animated PDF using the animate package without the need to have the animation frames in a separate (PDF) file, the tikzpicture environment can be directly put into an animateinline environment: \documentclass{article} \usepackage{animate} \usepackage{tikz} \usetikzlibrary{lindenmayersystems} \pgfdeclarelindenmayersystem{A}{% \symbol{F}{\pgflsystemstep=0.6\pgflsystemstep\pgflsystemdrawforward} \rule{A->F[+A][-A]} } \begin{document} \begin{animateinline}[controls,autoplay,loop]{2} \multiframe{8}{n=1+1}{ \begin{tikzpicture}[scale=10,rotate=90] \draw (-.1,-.2) rectangle (.4,0.2); \draw [blue,opacity=0.5,line width=0.1cm,line cap=round] l-system [l-system={A,axiom=A,order=\n,angle=45,step=0.25cm}]; \end{tikzpicture} } \end{animateinline} \end{document} There are two things here, to produce a gif file (which we do here normally, in this site for uploading). to have the animation inside the pdf file. For ...

Change View-command In Emacs And AUCTeX (pdf Mode)

Answer : Solution: to use `TeX-view-program-list' in order to define a new viewer description (which contains an Evince command without sync). This new command will override the description of Evince defined in `TeX-view-program-list-builtin' (which contains the problematic command TeX-evince-sync-view ). To do so : M-x customize-variable <RET> TeX-view-program-list <RET> <INS> Name = Evince Command = evince --page-index=%(outpage) %o I have no idea why this code in .emacs does not work: (setq TeX-view-program-list '(("Evince" "evince --page-index=%(outpage) %o"))) Via configuration, I find the following works: (defun my-LaTeX-mode() (add-to-list 'TeX-view-program-list '("Evince" "evince --page-index=%(outpage) %o")) (setq TeX-view-program-selection '((output-pdf "Evince"))) ; Other mode specific config ) (add-hook 'LaTeX-mode-hook 'my-LaTeX-mode)

Bootstrap 3 - Print / PDF

Answer : I'm most case i will expect the print in the non horizontal version maybe? In your case you could try to apply the grid rules on the print media query. In the case you use the small grid (col-sm-*) default, b.e. <div class="container"> <div class="row"> <div class="col-sm-6">Left</div> <div class="col-sm-6">Right</div> </div> </div> <!-- /container --> In your grid.less replace @media (min-width: @screen-tablet) { with @media (min-width: @screen-tablet), print { (add print, see: CSS media queries: max-width OR max-height) Recompile bootstrap and your pdf will have left / right just like screen now. Without Less you could try to add specific css rules for your case like: @media print { body {width:1200px;} div[class|=col-]{float:left;} .col-sm-6{width:50%} } Note print.less contains specific rules for print media. This i...

Batch Convert Ai Files To Pdf / Png Etc

Answer : You can use GhostScript for batch output .ai to various formats, i.e. transparent PNG: gs -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r300 -sOutputFile=out.png in.ai Where -r300 is dpi resolution. For available devices with which you can convert .ai format, reference documentation. A typical .ai file (from version 9 up), saved the normal way (with PDF compatibility) does not need any special conversion (in most cases). For example, if you take a typical .ai file ...as I said, saved with PDF compatibility which is the default ... you can simply add .pdf to the end, and then open it in your default PDF viewer. No special conversion needed. On the other hand, if the file is not saved with PDF compatibility, the only option you have is to use Illustrator. All ai to pdf converters I have found require that the ai file have the PDF data to "convert" ... which they aren't really doing since its already a PDF to begin with (just change the extension to .pdf an...

Apple - Blocked Plug-in In Safari 10.1

Answer : Without clicking the back button (or Command-[ ) of the browser: Although the plugin is blocked, you can still use Command-S (or File > Save As) as well as File > Export as PDF to save the file to a folder. Alternatively, click the back button (or Command-[ ), and then: Option-click on the original link to download the file Command-click opens the PDF in a new tab (PDF will not be blocked) Ctrl-click yields the option "Download linked file as"

Can I Import Existing PDF Books Into Kindle For PC?

Answer : Right click on the PDF and open with Kindle for PC . If the option isn't there then browse and select the Kindle for PC shortcut from its location (desktop, documents, etc). This will permanently put the PDF in your Kindle library. The Kindle DX natively supports PDF files. If, however, you have a First generation Kindle, then you can convert the PDF to a .prc file using the Mobipocket eBook Creator You could also use Amazon's Kindle Personal Documents Service.

Best Tool For Inspecting PDF Files?

Image
Answer : Besides the GUI-based tools mentioned in the other answers, there are a few command line tools which can transform the original PDF source code into a different representation which lets you inspect the (now modified file) with a text editor. All of the tools below work on Linux, Mac OS X, other Unix systems or Windows. qpdf (my favorite) Use qpdf to uncompress (most) object's streams and also dissect ObjStm objects into individual indirect objects: qpdf --qdf --object-streams=disable orig.pdf uncompressed-qpdf.pdf qpdf describes itself as a tool that does "structural, content-preserving transformations on PDF files" . Then just open + inspect the uncompressed-qpdf.pdf file in your favorite text editor. Most of the previously compressed (and hence, binary) bytes will now be plain text. mutool There is also the mutool command line tool which comes bundled with the MuPDF PDF viewer (which is a sister product to Ghostscript, made by the same ...

Add A PDF Viewer To A WPF Application

Answer : As already suggested by @NawedNabiZada, one tried and straightforward way is to use embedded InternetExplorer to show Adobe PDF Reader ActiveX control. So it assumes you are running on Windows and have Adobe PDF Reader installed. Then you create a user control, window etc. that contains following control: <WebBrowser x:Name="pdfWebViewer"></WebBrowser> In the constructor navigate to blank page: pdfWebViewer.Navigate(new Uri("about:blank")); To load a PDF document to that control use this simple code: pdfWebViewer.Navigate(fullPathToPDF); This approach is used by many Windows software not only WPF apps including SAP client, but has a hidden problem, see this question. The Adobe PDF Reader Addon in Internet Explorer must be enabled for this to work. There are various problems with Acrobat Reader XI, better to use DC version. To enable Adobe PDF go to IE settings, add-ons and find Adobe PDF Reader and enable it (AR XI and above...