Wrong ordering on add images of PDF file content - microsoft-graph-api

When i add a PDF to a OneNote page as a multipart request it seems like the ordering of the pages are sorted alphabetically instead of lexical order. The pages in the PDF are numbered (1-22) but when the page has been updated with the content from the PDF, the order of the images are 1, 10, 11, 12..2, 20, 21, 22)
I am using this as a reference: https://learn.microsoft.com/en-us/graph/onenote-images-files#add-images-of-pdf-file-contents
How can i prevent or control this behaviour?

I just tried a 22 page pdf - Wow! All of the pdfs I upload are less than 10 pages in length - I have never noticed this. Given the behaviour is predictable I guess the 2 "automated options" available are to split pdfs that are greater than 9 pages into separate pdfs each 9 pages or less and upload them sequentially maximum number 6 at a time (54 pages) or to disassemble the pdf then reassemble it in such a way that page 2 -> page 10, page 3 -> page 11, etc.

Related

Is it possible to configure a Printserver to use Alternating Papers for each Page?

Iam Trying to Configure a Print Server to use Alternating Paper Types for each page. To use Papertype 1 for Page 1, papertype 2 for page 2 and papertype 3 for page 3 and then repeat.
I didn't find any good advice on Google. I'am now searching for 6 to 7 houres.
The different paper types are in different paper trays.

Crystal Reports - printing terms and conditions on the back of every page, including the last one

There are several questions on here, but none quite answer what I am trying to do.
We have an invoice template in Crystal Reports which we use to generate invoices in both PDF and paper formats. Currently, we print single-sided onto paper which has our Terms and Conditions pre-printed on the reverse. What I need to do is edit the template so that the Terms and Conditions are included on every even-numbered page.
I have seen this answer Crystal Report 11 / Print "Terms and Conditions" on every alternate page which has a good solution except that this puts the Ts & Cs on every odd-numbered page. That means that when we make the PDF version the first page is Terms rather than invoice items. Also, for the paper version, the accounts office staff would have to physically turn over every piece of paper to get them in the right order and facing the correct way (invoice address in the envelope window).
My current design works - sort of. It prints the terms and conditions on the back of every page except the last one, which is no good if it is a 1-page invoice, and also the requirement is for Ts & Cs on the back of every page. There is no grouping.
Here is the layout:
Report Header: Suppressed (variable declaration only)
Page Header a: Addresses, suppressed on remainder(pagenumber,2)=0
Page Header b: Column Headings, suppressed on remainder(pagenumber,2)=0
Page Header c: Terms & Conditions, suppressed on remainder(pagenumber,2) <> 0
Details: New Page Before on change of delivery note number
Page Footer: Page numbering, suppressed on remainder(pagenumber,2)=0
Report Footer a: Charges
Report Footer b: Special instructions
Report Footer c: Notes
Report Footer d: VAT Analysis block, New Page After, Print at Bottom of Page
How do I get Crystal Reports to print Ts & Cs on the back of the last page? I can't find a way of making Crystal print them because there is no reason for it to have an extra page.
Many thanks,
At least one of the 3rd-party Crystal Reports automation tools listed here allows you to add Back-Pages. The process:
a) Exports the report to a pdf file
b) Inserts the standard back-page after each page and saves to a new or to the original pdf export, and
c) Prints and/or emails the resulting pdf file.
Just verified in Crystal, but only in a very simple sample report:
Insert a second details section below the current one,
let it have a "page break before",
and show new section only on last row, and when last page is odd ((Not OnLastRecord) Or Remainder(PageNumber,2) = 0).

Delphi WebAction - Request.ContentFields.Values['something'] size limit

Im having an issue with my web dll, compiled in XE5.
I use an AJAX POST via javascript to sumbit a base64 value for an image that was cropped.
The length is about 127 000 characters.
When logging the Request.ContentFields.Values['Base64Image'] in Delphi, the total length was reduced to 61 000, which then saves half an image.
Is there a size limit on Request.ContentFields.Text? If so, how do I overcome this? Can i save a base64 element directly from the HTML page?

Divide YouTube Video into different hyperlinks?

I have a YouTube Video (which was NOT uploaded by myself) with 50 min length:
The video talks about different contents, each content starts at different time for example:
content_x starts # 0minutes : 0Seconds
content_y starts #10minutes : 0Seconds
..etc
Now I would like to divide these contents according as hyperlink such that if i would like to watch any section, I can just click this link in the respective time (minutes & seconds).
I would prefer to do that in the description part for the YouTube video or in "About Section" so can you guide me how to do that? or any other simpler idea on how to reach different video contents in YouTube in dynamic and descriptive way?
You can append the time you want to the end of the youtube link
Eg
http://www.youtube.com/watch?v=XXX#t=31m08s
where 31m08s represents 31 minutes 8 seconds.
Similarly you can make links for the rest of the sections you want
Check this site : www.youtubetime.com it will generate a Youtube link with a specific starting time. Alternatively, tou can just write your time separated by spaces in a video's description (e.g.
very long description 0:00 part 1 1:00 part 2
etc... or you can write a comment with these time links and use it as an "index".
Hope that I've answered your question.
Right click the video and select Copy video URL at current time.
Then paste it anywhere.

Why does Document at a time scoring allow us to skip over parts of longer lists while doing intersection?

This is a information retrieval question. When we do document at a time scoring, why does DAAT allow us to skip over parts of longer lists. I am reading a research paper called Using Graphics Processors for High Perfomance IR Query Processing, in which they just mention the above property without any explanation. AN example will be appreciated. Thanks
Considering a "AND" query, for example:
"Gaga AND CD"
You can imagine that Gaga is much more rare than CD. In other words, the posting list (or inverted list as you will) of Gaga is much shorter than the one for CD.
Let's assume two small posting lists for the two words (I'm showing only the doc_ids, which are the objects of interest here):
Gaga -> [2, 10, 1023, 2030]
CD -> [1, 2, 6, 8, 15, 32, 43, 52, 92, 115, 326, 401, 560, 564, ... , 1924, 2030, ...]
In Document-at-a-time retrieval, we iterate through posting lists in paralell looking for docs that match the query (in a AND query, just every doc that occurs in both posting lists).
In this type of retrieval, we can skip documents by knowing the most rare term (Gaga). That way we can use its posting list as a "pivot".
The first doc_id to look for is 2, than is 10. Note that, we can skip all doc_ids between 2 and 10 in CD posting lists, because we know it won't match anything. Similarly, the next doc_id processed is 1023. When processing 1023 we can skip at least 10 documents (from 15 to something after 564), because we know it won't match anything.
The algorithm (for the AND query) is basically an array intersection. When you got a intersection you process it. Otherwise you keep skipping.
UPDATE: Many implementations use Skip Lists to avoid doing comparisons while processing inverted lists. In the example above, the system could use the skip list to "jump" to the next position of CD inverted list that has a doc_id close to 10. That way it won't need to compare with 6 and 8.

Resources