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

OpenAction support for printing #4833

Merged
merged 1 commit into from
May 28, 2014

Conversation

Koderok
Copy link

@Koderok Koderok commented May 23, 2014

Fixes #4698

@@ -475,6 +475,7 @@ var Catalog = (function CatalogClosure() {
var xref = this.xref;
var obj = this.catDict.get('Names');

// Parse javascript
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: revert this change

var action = openactionDict.get('N');
var isPrintAction = (isName(objType) && objType.name === 'Action' &&
isName(actionType) && actionType.name === 'Named' &&
isName(action) && action.name === 'Print');
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, lines 514 and 515 should be indented by one more space, but then 80 column limit was exceeded and linting tests failed. So, I left it as it is for the time being. Any suggestions?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. I can live with that. Normally we would do something like:

var isPrintAction = (isName(objType) && objType.name === 'Action' &&
  isName(actionType) && actionType.name === 'Named' &&
  isName(action) && action.name === 'Print');

but that makes it look worse here in my opinion. Let's keep it this way and await final review.

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/656f75cc7e347ca/output.txt

@yurydelendik
Copy link
Contributor

/botio-windows test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @yurydelendik received. Current queue size: 0

Live output at: http://107.22.172.223:8877/a5bf48b69003a04/output.txt

@yurydelendik
Copy link
Contributor

/botio-linux test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_test from @yurydelendik received. Current queue size: 0

Live output at: http://107.21.233.14:8877/20355c0632c1cbd/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/a5bf48b69003a04/output.txt

Total script time: 21.73 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://107.22.172.223:8877/a5bf48b69003a04/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/20355c0632c1cbd/output.txt

Total script time: 26.60 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

yurydelendik added a commit that referenced this pull request May 28, 2014
@yurydelendik yurydelendik merged commit d65df7d into mozilla:master May 28, 2014
@yurydelendik
Copy link
Contributor

Thank you for the patch

@timvandermeij timvandermeij mentioned this pull request Jun 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/OpenAction isn't always included in getJavascript(), breaks auto-printing
4 participants