Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement [pdffile]_updates.plist in pdf parser #300

Open
libreliodev opened this issue Mar 30, 2015 · 16 comments
Open

Implement [pdffile]_updates.plist in pdf parser #300

libreliodev opened this issue Mar 30, 2015 · 16 comments
Assignees
Labels

Comments

@libreliodev
Copy link
Owner

This is related to libreliodev/iOS#141

@intrications intrications self-assigned this Apr 15, 2015
@intrications
Copy link
Collaborator

@libreliodev

As was a problem with the iOS version, I don't see anywhere that exposes the obj ID.

Was it decided to use "IndexAtPage" instead?

@libreliodev
Copy link
Owner Author

@intrications

Was it decided to use "IndexAtPage" instead?

Yes

@intrications
Copy link
Collaborator

@libreliodev

Does "p1" refer to page 1? (Which possible is referred to as page 0 when using a zero based array in the code.

@libreliodev
Copy link
Owner Author

@serverfire Can you answer this question:

Does "p1" refer to page 1? (Which possible is referred to as page 0 when using a zero based array in the code.

@AlirezaAlgo
Copy link

@libreliodev

Does "p1" refer to page 1? (Which possible is referred to as page 0 when using a zero based array in the code.

Yes. Iteration starts at 1 to n.

@libreliodev
Copy link
Owner Author

@intrications In case you missed it, yes, iteration starts at 1 to n. Thanks @serverfire

@intrications
Copy link
Collaborator

@libreliodev

I'm able to download wind_384_updates.plist using the com.developer.wind server.

This is meant to be the updates file of Wind 384 Sample, I think.

However, I don't understand where the clickable areas are meant to be in the magazine.

Does "p1" refer to the cover page on this issue? Clicking anywhere on it doesn't seem to do anything.

@AlirezaAlgo
Copy link

@intrications @libreliodev

Does "p1" refer to the cover page on this issue?

Yes. We checked it before. It was working.
Specified rect in plist file has the same coordinate system as pdf. rect is taken from pdf.js output which is exact value in pdf file.

@AlirezaAlgo
Copy link

Last comment has updated.

@intrications
Copy link
Collaborator

Which part of the cover should I click on to get a response? I want to make sure it is working correctly before I try to process the updates file. There is no point trying to remove a link that isn't even working.

@intrications
Copy link
Collaborator

It seems to me that only the paid version of the issue has these links.

@libreliodev
Copy link
Owner Author

@intrications You may want to use the javascript console to test links.

Go to https://admin.librelio.com, enter the credentials given to you by private message, and enter developeras folder name.

Then select application Windin upper menu, and then select wind_384in publications, then edit links

@intrications
Copy link
Collaborator

@libreliodev

That helps.

Is "Edit" a possible action in the plist? I can only create "Add" and "Remove".

@intrications
Copy link
Collaborator

The plist is no longer giving me "IndexAtPage", e.g.:

<dict>
  <key>p1</key>
  <array>
    <dict>
      <key>Action</key>
      <string>Remove</string>
      <key>ID</key>
      <integer>806</integer>
    </dict>
    <dict>
      <key>Action</key>
      <string>Add</string>
      <key>ID</key>
      <integer>807</integer>
      <key>Rect</key>
      <string>41.22120715294429 554.5056321471409 240.51727939964036 795.8057244548332</string>
      <key>Link</key>
      <string>goto://6</string>
    </dict>
  </array>
</dict>
</plist>

@libreliodev
Copy link
Owner Author

@intrications No, I don't think there is a Editaction in the plist. Edit = Remove + Add

cc @serverfire

@intrications
Copy link
Collaborator

@libreliodev Thanks for confirming. I'm trying to piece together the information from the various github issues and I saw an Edit action somewhere - can't find it anymore. But I did see that the plist now used Remove + Add to achieve the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants