I'd like to add a .pdf document as an image to my PowerPoint deck.
I tried using the ph_with(value = external_img(file.path()), but that fails. The .pdf doesn't appear on the slide.
Is there another way to call ph_with() which will insert the .pdf or will I have to convert the .pdf to a bitmap format to make this work?
Related
I'm attempting to convert .docx files to .pdf via soffice, using the following command:
soffice --convert-to pdf input.docx --outdir <outdir>
The conversion succeeds without any error. However, the hyperlinks do not work. The hyperlinks in the file are relative links to other PDF files in the same directory.
The hyperlinks do not work - no matter what PDF reader I use, the hyperlinks aren't clickable.
I tried the following to narrow down my issue:
Open the document in LibreOffice and “edit” the first hyperlink, open and close the dialog without doing anything.
Save the .docx file in LibreOffice, and then run the headlesss conversion CLI via soffice.
Observe that only the first hyperlink works - the one we “edited” without changing anything.
I opened the actual .docx internals, and found the _rels files were exactly identical. The only difference was that the hyperlink I “edited” had this additional tag in the word/document.xml:
<w:rStyle w:val="InternetLink" />
Some googling me found this unanswered issue. It appears that LibreOffice expects the InternetLink property to be present when converting hyperlinks to pdf.
My question is - how can I use soffice to convert the .docx to .pdf while retaining hyperlinks? Is there a code change I can make to the LibreOffice source code?
I have powerpoints that I need to convert to PDFs. I have the code to be able to convert the PPT to a PDF, but I would also like the script to add in the slide numbers before turning the PPT into a PDF. Is this possible by using an apple script? The slide number variable exists, but I am having trouble using it.
I have an excel sheet with too many columns, so when I save it as a PDF the file its in too many pages and its not easy to read . I need to save the sheet as pdf but before I want to change its orientation to horizontal so I can read the pdf with no problem. Is the same you can do when you print but I want it when I save an excel file as pdf.
Is there any option I can choose?
I dont mind if someone gives me a code for a macro using my selection as an object.
Under the "Page Layout" tab, click the "Orientation" option and then select "Landscape."
Then create your PDF as usual.
You can save Excel files in PDF, even without using Excel. I use a program Universal Document Converter (http://www.print-driver.com/how-to/save-excel-as-pdf). This program allows you to quickly and easily create print-ready PDF-files on the basis of the original spreadsheets Excel.
If you have an InPage Urdu file and you want to convert it to a pdf file for viewing then what should you do?
There can be many ways to achieve this task. The one which I found out to be most easy is described below:
You need MS Word or Some other PDF Maker that can convert multiple images into a single PDF.
I used MS Word.
First, Open the file in InPage, go to File, Export Page. From this menu you can export all the pages as images and then drag drop these images to MS Word and Save as PDF
Alternatively you can select Print option from File menu in InPage and send it to Adobe PDF if you have it installed.
I was sent some PowerPoint 2007 files with approximately 75 slides in each. On each slide is one photo. I need to extract the photo from each slide to save in a folder on my system. How can it be achieved?
If for some reason you NEED to do the job using VBA, follow the link David's provided.
If it's a one-shot need to extract the images, make a copy of the PPTX file to begin with.
Let's call it COPY.PPTX for purposes of argument.
Rename COPY.PPTX to COPY.ZIP or even COPY.PPTX.ZIP
Now open the zip file, browse to the media folder and there you'll find the images in the file. Drag them out to wherever you want to store them and you're done.
For Each Slide in ActivePresentation.Slides
Slide.Shapes(1).Export FileName:="folderPath\imageName.jpg" _
Filter:=ppShapeFormatJPG
Next Slide