Error when uploading a pdf file on wiki - pdf

I want to upload a pdf file on my wiki page but i keep getting an error that says
Extension ".pdf--" does not correspond to the MIME type given in the file (application / pdf).
I have searched on the internet but can't quite find a solution to it. Please help and I'm new to this stuff so sorry if this is really easy.
Edit: picture of the filename
http://i.stack.imgur.com/gopaC.png

Related

How to convert pdf files to .dec

First of all, I would like to apologise if this is not the right place to post this, I am new here. I´ve been searching all over the internet for a way to convert pdf files into .dec files (not .dec to pdf). I would appreciate it if you could let me know how to do it as the only thing I found was https://www.dochub.com/en/functionalities/convert-pdf-to-dec#:~:text=Click%20the%20Select%20a%20file%20button%20above%2C%20or%20drag%20and,sign%20in%20to%20share%20it however, it only lets me edit the file, there is no way of downloading the file as a .dec file.
I really appreciate any help you can provide.

Link to load specific page of local PDF from Markdown document

I'm writing a Markdown document and want to make references back to specific pages in a local PDF document. I can achieve this with PDF documents on the web by appending #page=<page number> to the end of the URL. Is the an analogous way to do this with a local PDF file? I've got this Markdown document and the corresponding PDF in a repo on Github. I'd love to be able to examine the Markdown file on there and click on the links to the corresponding PDF and have the referenced page load. Appreciate any suggestions you may have!

Open local PDF file at a certain point

Thanks to a quick search on stackoverflow and google, I was able to find that we can directly open a PDF file from a URL at a certain point.
As explained below, we can do so using the "nameddest" parameter:
How can I programmaticly open a pdf at a certain point?
However, all the links I read talk about opening the pdf file from a URL. What if I want to open the pdf file in my local file system at a given location. For example, instead of the following:
http://example.org/doc.pdf#nameddest=Chapter6
say, I want to do this:
file:///D:/work/doc.pdf#nameddest=Chapter6
I tried the same, but it doesn't work. Any help/suggestions?
Regards,
Kapil
I don't have a solution for you using the file protocol but you can achieve it by invoking Acrobat or Adobe Reader directly:
acrobat.exe /a "page=2" "c:\Binder1.pdf"
acrord32.exe /a "page=2" "c:\Binder1.pdf"

Edit existing PDF file using FPDF

I have been search throughly on Google and stackoverflow, but it looks like I don't find any "clear" information regarding edit existing PDF file using FPDF ...
So, what I wan't to do is add a controlled copy marking on every PDF download from my site. To do this, the file source is already PDF file, and I want to edit them using FPDF ... But this "copy marking" is not on a new page, it is on the cover document. So there is no "add new page" process.
Any clue ?
Thank you for your help.
p.s. : Sorry for my bad english :p
U Could Have Used FPDI Library For this...
As I am using the same for exactly the same task...
see : My Question

How to debug a corrupt pdf file? [duplicate]

This question already has answers here:
How do you debug PDF files?
(8 answers)
Closed 5 years ago.
im generating pdf files using a ruby library called "prawn". I have one particular file that seems to be considered "Corrupt" by adobe reader. It shows up fine in both preview and in adobe reader. It gives errors like:
Sometimes I get:
"Could not find the XObject named '%s'.
Othertimes I get:
"Could not find the XObject named "Im4".
Then always I get:
"An error exists on this page. Acrobat may not display the page
correctly. Please contact the person who created the PDF document to
correct the problem."
Is there a way to open a pdf with some tool and have it tell you what is technically wrong with the pdf? Im sure I could figure it out quickly with something like this...
thanks
Joel
A PDF is a dump of PDF objects so it sounds like objects are missing or the references pointing to the object are wrong. You can view a PDF in a text editor and see the refs table and you can see the PDF objects in Acrobat (I wrote a blog article on this at (http://pdf.jpedal.org/java-pdf-blog/bid/10479/Viewing-PDF-objects).
Your best bet might to take an Open Source tool like IText which can read PDFs and add some debugging code to get it to show the object structures.
the general post about debugging pdf might have been also helpful as rups / pdfstreamdump etc is mentioned there How do you debug PDF files?